diff options
Diffstat (limited to 'node_modules/yaml/dist/schema/core/bool.js')
| -rw-r--r-- | node_modules/yaml/dist/schema/core/bool.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/node_modules/yaml/dist/schema/core/bool.js b/node_modules/yaml/dist/schema/core/bool.js deleted file mode 100644 index 4def73c7..00000000 --- a/node_modules/yaml/dist/schema/core/bool.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -var Scalar = require('../../nodes/Scalar.js'); - -const boolTag = { - identify: value => typeof value === 'boolean', - default: true, - tag: 'tag:yaml.org,2002:bool', - test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/, - resolve: str => new Scalar.Scalar(str[0] === 't' || str[0] === 'T'), - stringify({ source, value }, ctx) { - if (source && boolTag.test.test(source)) { - const sv = source[0] === 't' || source[0] === 'T'; - if (value === sv) - return source; - } - return value ? ctx.options.trueStr : ctx.options.falseStr; - } -}; - -exports.boolTag = boolTag; |
