fix(core): update
This commit is contained in:
parent
343c7dbe8b
commit
46602bcb44
@ -123,7 +123,7 @@ pages:
|
||||
stage: metadata
|
||||
script:
|
||||
- npmci node install lts
|
||||
- npmci command npm install -g @gitzone/tsdoc
|
||||
- npmci command npm install -g @git.zone/tsdoc
|
||||
- npmci npm prepare
|
||||
- npmci npm install
|
||||
- npmci command tsdoc
|
||||
|
902
package-lock.json
generated
902
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
13
package.json
13
package.json
@ -32,15 +32,14 @@
|
||||
},
|
||||
"homepage": "https://gitlab.com/pushrocks/smartyaml#README",
|
||||
"dependencies": {
|
||||
"@types/js-yaml": "^4.0.5",
|
||||
"js-yaml": "^4.1.0"
|
||||
"yaml": "^2.4.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gitzone/tsbuild": "^2.1.61",
|
||||
"@gitzone/tsrun": "^1.2.32",
|
||||
"@gitzone/tstest": "^1.0.71",
|
||||
"@pushrocks/tapbundle": "^5.0.3",
|
||||
"@types/node": "^17.0.35"
|
||||
"@git.zone/tsbuild": "^2.1.61",
|
||||
"@git.zone/tsrun": "^1.2.32",
|
||||
"@git.zone/tstest": "^1.0.71",
|
||||
"@push.rocks/tapbundle": "^5.0.3",
|
||||
"@types/node": "^20.12.7"
|
||||
},
|
||||
"browserslist": [
|
||||
"last 1 chrome versions"
|
||||
|
4737
pnpm-lock.yaml
generated
Normal file
4737
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
||||
import { expect, tap } from '@pushrocks/tapbundle';
|
||||
import { expect, tap } from '@push.rocks/tapbundle';
|
||||
|
||||
import * as smartyaml from '../ts/index.js';
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* autocreated commitinfo by @pushrocks/commitinfo
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@pushrocks/smartyaml',
|
||||
version: '3.0.1',
|
||||
description: 'handle yaml in smart ways'
|
||||
name: '@push.rocks/smartyaml',
|
||||
version: '3.0.2',
|
||||
description: 'A module for smart handling of YAML data with support for converting between YAML strings and JavaScript objects.'
|
||||
}
|
||||
|
14
ts/index.ts
14
ts/index.ts
@ -1,15 +1,17 @@
|
||||
import * as plugins from './smartyaml.plugins.js';
|
||||
|
||||
export let yamlStringToObject = async (
|
||||
yamlStringArg,
|
||||
optionsArg: plugins.jsYaml.LoadOptions = {}
|
||||
yamlStringArg: string,
|
||||
): Promise<any> => {
|
||||
return plugins.jsYaml.load(yamlStringArg);
|
||||
return plugins.yaml.parse(yamlStringArg);
|
||||
};
|
||||
|
||||
export let objectToYamlString = async (
|
||||
objectArg,
|
||||
optionsArg: plugins.jsYaml.DumpOptions = {}
|
||||
objectArg
|
||||
): Promise<string> => {
|
||||
return plugins.jsYaml.dump(objectArg);
|
||||
return plugins.yaml.stringify(objectArg);
|
||||
};
|
||||
|
||||
export let getYamlDocFromString = async (stringArg: string) => {
|
||||
return plugins.yaml.parseDocument(stringArg);
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
import * as jsYaml from 'js-yaml';
|
||||
import * as yaml from 'yaml';
|
||||
|
||||
export { jsYaml };
|
||||
export { yaml };
|
||||
|
Loading…
Reference in New Issue
Block a user