From b22f6770c8bd084d66950655203c61dd701b3d90 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sat, 4 Jun 2022 08:51:19 +0200 Subject: Remove node_modules --- node_modules/yaml/dist/schema/core/bool.d.ts | 4 --- node_modules/yaml/dist/schema/core/bool.js | 21 ------------ node_modules/yaml/dist/schema/core/float.d.ts | 4 --- node_modules/yaml/dist/schema/core/float.js | 47 -------------------------- node_modules/yaml/dist/schema/core/int.d.ts | 4 --- node_modules/yaml/dist/schema/core/int.js | 42 ----------------------- node_modules/yaml/dist/schema/core/schema.d.ts | 1 - node_modules/yaml/dist/schema/core/schema.js | 25 -------------- 8 files changed, 148 deletions(-) delete mode 100644 node_modules/yaml/dist/schema/core/bool.d.ts delete mode 100644 node_modules/yaml/dist/schema/core/bool.js delete mode 100644 node_modules/yaml/dist/schema/core/float.d.ts delete mode 100644 node_modules/yaml/dist/schema/core/float.js delete mode 100644 node_modules/yaml/dist/schema/core/int.d.ts delete mode 100644 node_modules/yaml/dist/schema/core/int.js delete mode 100644 node_modules/yaml/dist/schema/core/schema.d.ts delete mode 100644 node_modules/yaml/dist/schema/core/schema.js (limited to 'node_modules/yaml/dist/schema/core') diff --git a/node_modules/yaml/dist/schema/core/bool.d.ts b/node_modules/yaml/dist/schema/core/bool.d.ts deleted file mode 100644 index e4bdc4c..0000000 --- a/node_modules/yaml/dist/schema/core/bool.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { ScalarTag } from '../types.js'; -export declare const boolTag: ScalarTag & { - test: RegExp; -}; 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 4def73c..0000000 --- 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; diff --git a/node_modules/yaml/dist/schema/core/float.d.ts b/node_modules/yaml/dist/schema/core/float.d.ts deleted file mode 100644 index 22f0249..0000000 --- a/node_modules/yaml/dist/schema/core/float.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { ScalarTag } from '../types.js'; -export declare const floatNaN: ScalarTag; -export declare const floatExp: ScalarTag; -export declare const float: ScalarTag; diff --git a/node_modules/yaml/dist/schema/core/float.js b/node_modules/yaml/dist/schema/core/float.js deleted file mode 100644 index a1c96dd..0000000 --- a/node_modules/yaml/dist/schema/core/float.js +++ /dev/null @@ -1,47 +0,0 @@ -'use strict'; - -var Scalar = require('../../nodes/Scalar.js'); -var stringifyNumber = require('../../stringify/stringifyNumber.js'); - -const floatNaN = { - identify: value => typeof value === 'number', - default: true, - tag: 'tag:yaml.org,2002:float', - test: /^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/, - resolve: str => str.slice(-3).toLowerCase() === 'nan' - ? NaN - : str[0] === '-' - ? Number.NEGATIVE_INFINITY - : Number.POSITIVE_INFINITY, - stringify: stringifyNumber.stringifyNumber -}; -const floatExp = { - identify: value => typeof value === 'number', - default: true, - tag: 'tag:yaml.org,2002:float', - format: 'EXP', - test: /^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/, - resolve: str => parseFloat(str), - stringify(node) { - const num = Number(node.value); - return isFinite(num) ? num.toExponential() : stringifyNumber.stringifyNumber(node); - } -}; -const float = { - identify: value => typeof value === 'number', - default: true, - tag: 'tag:yaml.org,2002:float', - test: /^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/, - resolve(str) { - const node = new Scalar.Scalar(parseFloat(str)); - const dot = str.indexOf('.'); - if (dot !== -1 && str[str.length - 1] === '0') - node.minFractionDigits = str.length - dot - 1; - return node; - }, - stringify: stringifyNumber.stringifyNumber -}; - -exports.float = float; -exports.floatExp = floatExp; -exports.floatNaN = floatNaN; diff --git a/node_modules/yaml/dist/schema/core/int.d.ts b/node_modules/yaml/dist/schema/core/int.d.ts deleted file mode 100644 index 35e2d4b..0000000 --- a/node_modules/yaml/dist/schema/core/int.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { ScalarTag } from '../types.js'; -export declare const intOct: ScalarTag; -export declare const int: ScalarTag; -export declare const intHex: ScalarTag; diff --git a/node_modules/yaml/dist/schema/core/int.js b/node_modules/yaml/dist/schema/core/int.js deleted file mode 100644 index fe4c9ca..0000000 --- a/node_modules/yaml/dist/schema/core/int.js +++ /dev/null @@ -1,42 +0,0 @@ -'use strict'; - -var stringifyNumber = require('../../stringify/stringifyNumber.js'); - -const intIdentify = (value) => typeof value === 'bigint' || Number.isInteger(value); -const intResolve = (str, offset, radix, { intAsBigInt }) => (intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix)); -function intStringify(node, radix, prefix) { - const { value } = node; - if (intIdentify(value) && value >= 0) - return prefix + value.toString(radix); - return stringifyNumber.stringifyNumber(node); -} -const intOct = { - identify: value => intIdentify(value) && value >= 0, - default: true, - tag: 'tag:yaml.org,2002:int', - format: 'OCT', - test: /^0o[0-7]+$/, - resolve: (str, _onError, opt) => intResolve(str, 2, 8, opt), - stringify: node => intStringify(node, 8, '0o') -}; -const int = { - identify: intIdentify, - default: true, - tag: 'tag:yaml.org,2002:int', - test: /^[-+]?[0-9]+$/, - resolve: (str, _onError, opt) => intResolve(str, 0, 10, opt), - stringify: stringifyNumber.stringifyNumber -}; -const intHex = { - identify: value => intIdentify(value) && value >= 0, - default: true, - tag: 'tag:yaml.org,2002:int', - format: 'HEX', - test: /^0x[0-9a-fA-F]+$/, - resolve: (str, _onError, opt) => intResolve(str, 2, 16, opt), - stringify: node => intStringify(node, 16, '0x') -}; - -exports.int = int; -exports.intHex = intHex; -exports.intOct = intOct; diff --git a/node_modules/yaml/dist/schema/core/schema.d.ts b/node_modules/yaml/dist/schema/core/schema.d.ts deleted file mode 100644 index 7663949..0000000 --- a/node_modules/yaml/dist/schema/core/schema.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const schema: (import("../types.js").ScalarTag | import("../types.js").CollectionTag)[]; diff --git a/node_modules/yaml/dist/schema/core/schema.js b/node_modules/yaml/dist/schema/core/schema.js deleted file mode 100644 index 6ab87f2..0000000 --- a/node_modules/yaml/dist/schema/core/schema.js +++ /dev/null @@ -1,25 +0,0 @@ -'use strict'; - -var map = require('../common/map.js'); -var _null = require('../common/null.js'); -var seq = require('../common/seq.js'); -var string = require('../common/string.js'); -var bool = require('./bool.js'); -var float = require('./float.js'); -var int = require('./int.js'); - -const schema = [ - map.map, - seq.seq, - string.string, - _null.nullTag, - bool.boolTag, - int.intOct, - int.int, - int.intHex, - float.floatNaN, - float.floatExp, - float.float -]; - -exports.schema = schema; -- cgit