mirror of
https://github.com/deployphp/action.git
synced 2025-06-29 04:34:15 +00:00
Add node_modules
This commit is contained in:
parent
e1f786311a
commit
554eb0b122
994 changed files with 195567 additions and 0 deletions
4
node_modules/yaml/dist/schema/core/bool.d.ts
generated
vendored
Normal file
4
node_modules/yaml/dist/schema/core/bool.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
import type { ScalarTag } from '../types.js';
|
||||
export declare const boolTag: ScalarTag & {
|
||||
test: RegExp;
|
||||
};
|
21
node_modules/yaml/dist/schema/core/bool.js
generated
vendored
Normal file
21
node_modules/yaml/dist/schema/core/bool.js
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
'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;
|
4
node_modules/yaml/dist/schema/core/float.d.ts
generated
vendored
Normal file
4
node_modules/yaml/dist/schema/core/float.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
import type { ScalarTag } from '../types.js';
|
||||
export declare const floatNaN: ScalarTag;
|
||||
export declare const floatExp: ScalarTag;
|
||||
export declare const float: ScalarTag;
|
47
node_modules/yaml/dist/schema/core/float.js
generated
vendored
Normal file
47
node_modules/yaml/dist/schema/core/float.js
generated
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
'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;
|
4
node_modules/yaml/dist/schema/core/int.d.ts
generated
vendored
Normal file
4
node_modules/yaml/dist/schema/core/int.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
import type { ScalarTag } from '../types.js';
|
||||
export declare const intOct: ScalarTag;
|
||||
export declare const int: ScalarTag;
|
||||
export declare const intHex: ScalarTag;
|
42
node_modules/yaml/dist/schema/core/int.js
generated
vendored
Normal file
42
node_modules/yaml/dist/schema/core/int.js
generated
vendored
Normal file
|
@ -0,0 +1,42 @@
|
|||
'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;
|
1
node_modules/yaml/dist/schema/core/schema.d.ts
generated
vendored
Normal file
1
node_modules/yaml/dist/schema/core/schema.d.ts
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
export declare const schema: (import("../types.js").ScalarTag | import("../types.js").CollectionTag)[];
|
25
node_modules/yaml/dist/schema/core/schema.js
generated
vendored
Normal file
25
node_modules/yaml/dist/schema/core/schema.js
generated
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
'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;
|
Loading…
Add table
Add a link
Reference in a new issue