mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +03:00
fix(TOML tools): replace iarna_toml-esm by smol-toml
This commit is contained in:
1 parent
ab7f046386
commit
ca3c3a6b91
12 files changed
+21
-16
No files matched your search
@@ -264,6 +264,7 @@
|
||||
"shiki": "1.29.2",
|
||||
"silly-password-generator": "^1.0.29",
|
||||
"slashes": "^3.0.12",
|
||||
"smol-toml": "^1.4.2",
|
||||
"spdx-satisfies": "^5.0.1",
|
||||
"sql-formatter": "^15.6.6",
|
||||
"sshpk": "^1.18.0",
|
||||
|
||||
Generated
+8
@@ -680,6 +680,9 @@ dependencies:
|
||||
slashes:
|
||||
specifier: ^3.0.12
|
||||
version: 3.0.12
|
||||
smol-toml:
|
||||
specifier: ^1.4.2
|
||||
version: 1.4.2
|
||||
spdx-satisfies:
|
||||
specifier: ^5.0.1
|
||||
version: 5.0.1
|
||||
@@ -16604,6 +16607,11 @@ packages:
|
||||
resolution: {integrity: sha512-g6T+p7QO8npa+/hNx9ohv1E5pVCmWrVCUzUXJyLdMmftX6ER0oiWY/w9knEonLpnOp6b6FenKnMfR8gqwWdwig==}
|
||||
dev: true
|
||||
|
||||
/smol-toml@1.4.2:
|
||||
resolution: {integrity: sha512-rInDH6lCNiEyn3+hH8KVGFdbjc099j47+OSgbMrfDYX1CmXLfdKd7qi6IfcWj2wFxvSVkuI46M+wPGYfEOEj6g==}
|
||||
engines: {node: '>= 18'}
|
||||
dev: false
|
||||
|
||||
/snake-case@2.1.0:
|
||||
resolution: {integrity: sha512-FMR5YoPFwOLuh4rRz92dywJjyKYZNLpMn1R5ujVpIYkbA9p01fq8RMg0FkO4M+Yobt4MjHeLTJVm5xFFBHSV2Q==}
|
||||
dependencies:
|
||||
|
||||
Vendored
-5
@@ -10,11 +10,6 @@ declare module '*.md' {
|
||||
export default Component;
|
||||
}
|
||||
|
||||
declare module 'iarna-toml-esm' {
|
||||
export const parse: (toml: string) => any;
|
||||
export const stringify: (obj: any) => string;
|
||||
}
|
||||
|
||||
declare module 'emojilib' {
|
||||
const lib: Record<string, string[]>;
|
||||
export default lib;
|
||||
|
||||
@@ -10,6 +10,6 @@ export const tool = defineTool({
|
||||
component: () => import('./json-to-toml.vue'),
|
||||
icon: Braces,
|
||||
createdAt: new Date('2023-06-23'),
|
||||
npmPackages: ['json5', 'iarna-toml-esm'],
|
||||
npmPackages: ['json5', 'smol-toml'],
|
||||
category: 'JSON',
|
||||
});
|
||||
@@ -1,6 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { stringify as stringifyToml } from 'smol-toml';
|
||||
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { stringify as stringifyToml } from 'iarna-toml-esm';
|
||||
import JSON5 from 'json5';
|
||||
import { withDefaultOnError } from '../../utils/defaults';
|
||||
import type { UseValidationRule } from '@/composable/validation';
|
||||
|
||||
@@ -11,6 +11,6 @@ export const tool = defineTool({
|
||||
component: () => import('./toml-to-json.vue'),
|
||||
icon: BracketIcon,
|
||||
createdAt: new Date('2023-06-23'),
|
||||
npmPackages: ['yaml', 'iarna-toml-esm'],
|
||||
category: 'JSON',
|
||||
npmPackages: ['yaml', 'smol-toml'],
|
||||
category: 'TOML',
|
||||
});
|
||||
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { parse as parseToml } from 'iarna-toml-esm';
|
||||
import { parse as parseToml } from 'smol-toml';
|
||||
import { withDefaultOnError } from '../../utils/defaults';
|
||||
import { isValidToml } from './toml.services';
|
||||
import type { UseValidationRule } from '@/composable/validation';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { parse as parseToml } from 'iarna-toml-esm';
|
||||
import { parse as parseToml } from 'smol-toml';
|
||||
import { isNotThrowing } from '../../utils/boolean';
|
||||
|
||||
export { isValidToml };
|
||||
|
||||
@@ -10,6 +10,6 @@ export const tool = defineTool({
|
||||
component: () => import('./toml-to-yaml.vue'),
|
||||
icon: BracketIcon,
|
||||
createdAt: new Date('2023-06-23'),
|
||||
npmPackages: ['yaml', 'iarna-toml-esm'],
|
||||
category: 'YAML',
|
||||
npmPackages: ['yaml', 'smol-toml'],
|
||||
category: 'TOML',
|
||||
});
|
||||
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { parse as parseToml } from 'iarna-toml-esm';
|
||||
import { parse as parseToml } from 'smol-toml';
|
||||
import { stringify as stringifyToYaml } from 'yaml';
|
||||
import { withDefaultOnError } from '../../utils/defaults';
|
||||
import { isValidToml } from '../toml-to-json/toml.services';
|
||||
|
||||
@@ -10,6 +10,6 @@ export const tool = defineTool({
|
||||
component: () => import('./yaml-to-toml.vue'),
|
||||
icon: AlignJustified,
|
||||
createdAt: new Date('2023-06-23'),
|
||||
npmPackages: ['yaml', 'iarna-toml-esm'],
|
||||
npmPackages: ['yaml', 'smol-toml'],
|
||||
category: 'YAML',
|
||||
});
|
||||
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { stringify as stringifyToml } from 'iarna-toml-esm';
|
||||
import { stringify as stringifyToml } from 'smol-toml';
|
||||
import { parse as parseYaml } from 'yaml';
|
||||
import { withDefaultOnError } from '../../utils/defaults';
|
||||
import type { UseValidationRule } from '@/composable/validation';
|
||||
|
||||
Reference in new issue
Block a user