From b22f6770c8bd084d66950655203c61dd701b3d90 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sat, 4 Jun 2022 08:51:19 +0200 Subject: Remove node_modules --- .../yaml/browser/dist/schema/yaml-1.1/bool.js | 26 ---------------------- 1 file changed, 26 deletions(-) delete mode 100644 node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js (limited to 'node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js') diff --git a/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js b/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js deleted file mode 100644 index 1ced791..0000000 --- a/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +++ /dev/null @@ -1,26 +0,0 @@ -import { Scalar } from '../../nodes/Scalar.js'; - -function boolStringify({ value, source }, ctx) { - const boolObj = value ? trueTag : falseTag; - if (source && boolObj.test.test(source)) - return source; - return value ? ctx.options.trueStr : ctx.options.falseStr; -} -const trueTag = { - identify: value => value === true, - default: true, - tag: 'tag:yaml.org,2002:bool', - test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/, - resolve: () => new Scalar(true), - stringify: boolStringify -}; -const falseTag = { - identify: value => value === false, - default: true, - tag: 'tag:yaml.org,2002:bool', - test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i, - resolve: () => new Scalar(false), - stringify: boolStringify -}; - -export { falseTag, trueTag }; -- cgit