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