summaryrefslogtreecommitdiff
path: root/node_modules/yaml/browser/dist/schema/common
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2026-05-18 23:10:59 +0800
committerlittleblack111 <littleblack11111@gmail.com>2026-05-18 23:41:44 +0800
commitfc87c009806dcc98867f6b58efe29b042aa01dee (patch)
tree8f59b3f4a5b66e9dfef2d40c8d318e258a521228 /node_modules/yaml/browser/dist/schema/common
parent3336b2356ee6152d9c6ae59bd9b87ccbc0958407 (diff)
node: updatemain
Diffstat (limited to 'node_modules/yaml/browser/dist/schema/common')
-rw-r--r--node_modules/yaml/browser/dist/schema/common/map.js17
-rw-r--r--node_modules/yaml/browser/dist/schema/common/null.js15
-rw-r--r--node_modules/yaml/browser/dist/schema/common/seq.js17
-rw-r--r--node_modules/yaml/browser/dist/schema/common/string.js14
4 files changed, 0 insertions, 63 deletions
diff --git a/node_modules/yaml/browser/dist/schema/common/map.js b/node_modules/yaml/browser/dist/schema/common/map.js
deleted file mode 100644
index af97b787..00000000
--- a/node_modules/yaml/browser/dist/schema/common/map.js
+++ /dev/null
@@ -1,17 +0,0 @@
-import { isMap } from '../../nodes/identity.js';
-import { YAMLMap } from '../../nodes/YAMLMap.js';
-
-const map = {
- collection: 'map',
- default: true,
- nodeClass: YAMLMap,
- tag: 'tag:yaml.org,2002:map',
- resolve(map, onError) {
- if (!isMap(map))
- onError('Expected a mapping for this tag');
- return map;
- },
- createNode: (schema, obj, ctx) => YAMLMap.from(schema, obj, ctx)
-};
-
-export { map };
diff --git a/node_modules/yaml/browser/dist/schema/common/null.js b/node_modules/yaml/browser/dist/schema/common/null.js
deleted file mode 100644
index fcbe1b7a..00000000
--- a/node_modules/yaml/browser/dist/schema/common/null.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import { Scalar } from '../../nodes/Scalar.js';
-
-const nullTag = {
- identify: value => value == null,
- createNode: () => new Scalar(null),
- default: true,
- tag: 'tag:yaml.org,2002:null',
- test: /^(?:~|[Nn]ull|NULL)?$/,
- resolve: () => new Scalar(null),
- stringify: ({ source }, ctx) => typeof source === 'string' && nullTag.test.test(source)
- ? source
- : ctx.options.nullStr
-};
-
-export { nullTag };
diff --git a/node_modules/yaml/browser/dist/schema/common/seq.js b/node_modules/yaml/browser/dist/schema/common/seq.js
deleted file mode 100644
index 1915b605..00000000
--- a/node_modules/yaml/browser/dist/schema/common/seq.js
+++ /dev/null
@@ -1,17 +0,0 @@
-import { isSeq } from '../../nodes/identity.js';
-import { YAMLSeq } from '../../nodes/YAMLSeq.js';
-
-const seq = {
- collection: 'seq',
- default: true,
- nodeClass: YAMLSeq,
- tag: 'tag:yaml.org,2002:seq',
- resolve(seq, onError) {
- if (!isSeq(seq))
- onError('Expected a sequence for this tag');
- return seq;
- },
- createNode: (schema, obj, ctx) => YAMLSeq.from(schema, obj, ctx)
-};
-
-export { seq };
diff --git a/node_modules/yaml/browser/dist/schema/common/string.js b/node_modules/yaml/browser/dist/schema/common/string.js
deleted file mode 100644
index a064f7b3..00000000
--- a/node_modules/yaml/browser/dist/schema/common/string.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import { stringifyString } from '../../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(item, ctx, onComment, onChompKeep);
- }
-};
-
-export { string };