From 457c93328f5b51b3fc0aa1600ce8eb8b45a5c2a9 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sat, 9 Apr 2022 18:38:29 +0200 Subject: Snowjail v0.1 --- node_modules/yaml/browser/dist/schema/common/null.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 node_modules/yaml/browser/dist/schema/common/null.js (limited to 'node_modules/yaml/browser/dist/schema/common/null.js') diff --git a/node_modules/yaml/browser/dist/schema/common/null.js b/node_modules/yaml/browser/dist/schema/common/null.js new file mode 100644 index 0000000..fcbe1b7 --- /dev/null +++ b/node_modules/yaml/browser/dist/schema/common/null.js @@ -0,0 +1,15 @@ +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 }; -- cgit