fix(core): update
This commit is contained in:
parent
343c7dbe8b
commit
46602bcb44
@ -123,7 +123,7 @@ pages:
|
|||||||
stage: metadata
|
stage: metadata
|
||||||
script:
|
script:
|
||||||
- npmci node install lts
|
- npmci node install lts
|
||||||
- npmci command npm install -g @gitzone/tsdoc
|
- npmci command npm install -g @git.zone/tsdoc
|
||||||
- npmci npm prepare
|
- npmci npm prepare
|
||||||
- npmci npm install
|
- npmci npm install
|
||||||
- npmci command tsdoc
|
- 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",
|
"homepage": "https://gitlab.com/pushrocks/smartyaml#README",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/js-yaml": "^4.0.5",
|
"yaml": "^2.4.2"
|
||||||
"js-yaml": "^4.1.0"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.61",
|
"@git.zone/tsbuild": "^2.1.61",
|
||||||
"@gitzone/tsrun": "^1.2.32",
|
"@git.zone/tsrun": "^1.2.32",
|
||||||
"@gitzone/tstest": "^1.0.71",
|
"@git.zone/tstest": "^1.0.71",
|
||||||
"@pushrocks/tapbundle": "^5.0.3",
|
"@push.rocks/tapbundle": "^5.0.3",
|
||||||
"@types/node": "^17.0.35"
|
"@types/node": "^20.12.7"
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"last 1 chrome versions"
|
"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';
|
import * as smartyaml from '../ts/index.js';
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* autocreated commitinfo by @pushrocks/commitinfo
|
* autocreated commitinfo by @pushrocks/commitinfo
|
||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@pushrocks/smartyaml',
|
name: '@push.rocks/smartyaml',
|
||||||
version: '3.0.1',
|
version: '3.0.2',
|
||||||
description: 'handle yaml in smart ways'
|
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';
|
import * as plugins from './smartyaml.plugins.js';
|
||||||
|
|
||||||
export let yamlStringToObject = async (
|
export let yamlStringToObject = async (
|
||||||
yamlStringArg,
|
yamlStringArg: string,
|
||||||
optionsArg: plugins.jsYaml.LoadOptions = {}
|
|
||||||
): Promise<any> => {
|
): Promise<any> => {
|
||||||
return plugins.jsYaml.load(yamlStringArg);
|
return plugins.yaml.parse(yamlStringArg);
|
||||||
};
|
};
|
||||||
|
|
||||||
export let objectToYamlString = async (
|
export let objectToYamlString = async (
|
||||||
objectArg,
|
objectArg
|
||||||
optionsArg: plugins.jsYaml.DumpOptions = {}
|
|
||||||
): Promise<string> => {
|
): 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