summaryrefslogtreecommitdiff
path: root/node_modules/yaml/browser/dist/schema/common/string.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/yaml/browser/dist/schema/common/string.js')
-rw-r--r--node_modules/yaml/browser/dist/schema/common/string.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/node_modules/yaml/browser/dist/schema/common/string.js b/node_modules/yaml/browser/dist/schema/common/string.js
new file mode 100644
index 0000000..a064f7b
--- /dev/null
+++ b/node_modules/yaml/browser/dist/schema/common/string.js
@@ -0,0 +1,14 @@
+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 };