diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-05-18 23:10:59 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-05-18 23:41:44 +0800 |
| commit | fc87c009806dcc98867f6b58efe29b042aa01dee (patch) | |
| tree | 8f59b3f4a5b66e9dfef2d40c8d318e258a521228 /node_modules/yaml/dist/schema/common | |
| parent | 3336b2356ee6152d9c6ae59bd9b87ccbc0958407 (diff) | |
node: updatemain
Diffstat (limited to 'node_modules/yaml/dist/schema/common')
| -rw-r--r-- | node_modules/yaml/dist/schema/common/map.d.ts | 2 | ||||
| -rw-r--r-- | node_modules/yaml/dist/schema/common/map.js | 19 | ||||
| -rw-r--r-- | node_modules/yaml/dist/schema/common/null.d.ts | 4 | ||||
| -rw-r--r-- | node_modules/yaml/dist/schema/common/null.js | 17 | ||||
| -rw-r--r-- | node_modules/yaml/dist/schema/common/seq.d.ts | 2 | ||||
| -rw-r--r-- | node_modules/yaml/dist/schema/common/seq.js | 19 | ||||
| -rw-r--r-- | node_modules/yaml/dist/schema/common/string.d.ts | 2 | ||||
| -rw-r--r-- | node_modules/yaml/dist/schema/common/string.js | 16 |
8 files changed, 0 insertions, 81 deletions
diff --git a/node_modules/yaml/dist/schema/common/map.d.ts b/node_modules/yaml/dist/schema/common/map.d.ts deleted file mode 100644 index 9b300f88..00000000 --- a/node_modules/yaml/dist/schema/common/map.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { CollectionTag } from '../types.js'; -export declare const map: CollectionTag; diff --git a/node_modules/yaml/dist/schema/common/map.js b/node_modules/yaml/dist/schema/common/map.js deleted file mode 100644 index 649c3b97..00000000 --- a/node_modules/yaml/dist/schema/common/map.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict'; - -var identity = require('../../nodes/identity.js'); -var YAMLMap = require('../../nodes/YAMLMap.js'); - -const map = { - collection: 'map', - default: true, - nodeClass: YAMLMap.YAMLMap, - tag: 'tag:yaml.org,2002:map', - resolve(map, onError) { - if (!identity.isMap(map)) - onError('Expected a mapping for this tag'); - return map; - }, - createNode: (schema, obj, ctx) => YAMLMap.YAMLMap.from(schema, obj, ctx) -}; - -exports.map = map; diff --git a/node_modules/yaml/dist/schema/common/null.d.ts b/node_modules/yaml/dist/schema/common/null.d.ts deleted file mode 100644 index 66abea5a..00000000 --- a/node_modules/yaml/dist/schema/common/null.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { ScalarTag } from '../types.js'; -export declare const nullTag: ScalarTag & { - test: RegExp; -}; diff --git a/node_modules/yaml/dist/schema/common/null.js b/node_modules/yaml/dist/schema/common/null.js deleted file mode 100644 index cb353a7a..00000000 --- a/node_modules/yaml/dist/schema/common/null.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -var Scalar = require('../../nodes/Scalar.js'); - -const nullTag = { - identify: value => value == null, - createNode: () => new Scalar.Scalar(null), - default: true, - tag: 'tag:yaml.org,2002:null', - test: /^(?:~|[Nn]ull|NULL)?$/, - resolve: () => new Scalar.Scalar(null), - stringify: ({ source }, ctx) => typeof source === 'string' && nullTag.test.test(source) - ? source - : ctx.options.nullStr -}; - -exports.nullTag = nullTag; diff --git a/node_modules/yaml/dist/schema/common/seq.d.ts b/node_modules/yaml/dist/schema/common/seq.d.ts deleted file mode 100644 index c038d30a..00000000 --- a/node_modules/yaml/dist/schema/common/seq.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { CollectionTag } from '../types.js'; -export declare const seq: CollectionTag; diff --git a/node_modules/yaml/dist/schema/common/seq.js b/node_modules/yaml/dist/schema/common/seq.js deleted file mode 100644 index 9c54bc96..00000000 --- a/node_modules/yaml/dist/schema/common/seq.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict'; - -var identity = require('../../nodes/identity.js'); -var YAMLSeq = require('../../nodes/YAMLSeq.js'); - -const seq = { - collection: 'seq', - default: true, - nodeClass: YAMLSeq.YAMLSeq, - tag: 'tag:yaml.org,2002:seq', - resolve(seq, onError) { - if (!identity.isSeq(seq)) - onError('Expected a sequence for this tag'); - return seq; - }, - createNode: (schema, obj, ctx) => YAMLSeq.YAMLSeq.from(schema, obj, ctx) -}; - -exports.seq = seq; diff --git a/node_modules/yaml/dist/schema/common/string.d.ts b/node_modules/yaml/dist/schema/common/string.d.ts deleted file mode 100644 index 539c9b17..00000000 --- a/node_modules/yaml/dist/schema/common/string.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { ScalarTag } from '../types.js'; -export declare const string: ScalarTag; diff --git a/node_modules/yaml/dist/schema/common/string.js b/node_modules/yaml/dist/schema/common/string.js deleted file mode 100644 index 76014200..00000000 --- a/node_modules/yaml/dist/schema/common/string.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -var stringifyString = require('../../stringify/stringifyString.js'); - -const string = { - identify: value => typeof value === 'string', - default: true, - tag: 'tag:yaml.org,2002:str', - resolve: str => str, - stringify(item, ctx, onComment, onChompKeep) { - ctx = Object.assign({ actualString: true }, ctx); - return stringifyString.stringifyString(item, ctx, onComment, onChompKeep); - } -}; - -exports.string = string; |
