summaryrefslogtreecommitdiff
path: root/node_modules/yaml/dist/schema
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/yaml/dist/schema')
-rw-r--r--node_modules/yaml/dist/schema/core/float.js2
-rw-r--r--node_modules/yaml/dist/schema/yaml-1.1/float.js2
-rw-r--r--node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts6
3 files changed, 5 insertions, 5 deletions
diff --git a/node_modules/yaml/dist/schema/core/float.js b/node_modules/yaml/dist/schema/core/float.js
index a1c96ddb..8756446e 100644
--- a/node_modules/yaml/dist/schema/core/float.js
+++ b/node_modules/yaml/dist/schema/core/float.js
@@ -7,7 +7,7 @@ const floatNaN = {
identify: value => typeof value === 'number',
default: true,
tag: 'tag:yaml.org,2002:float',
- test: /^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,
+ test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
resolve: str => str.slice(-3).toLowerCase() === 'nan'
? NaN
: str[0] === '-'
diff --git a/node_modules/yaml/dist/schema/yaml-1.1/float.js b/node_modules/yaml/dist/schema/yaml-1.1/float.js
index 4aea19a4..39f1eb0c 100644
--- a/node_modules/yaml/dist/schema/yaml-1.1/float.js
+++ b/node_modules/yaml/dist/schema/yaml-1.1/float.js
@@ -7,7 +7,7 @@ const floatNaN = {
identify: value => typeof value === 'number',
default: true,
tag: 'tag:yaml.org,2002:float',
- test: /^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,
+ test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
resolve: (str) => str.slice(-3).toLowerCase() === 'nan'
? NaN
: str[0] === '-'
diff --git a/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts b/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts
index 12727dc2..95b03c72 100644
--- a/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts
+++ b/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts
@@ -9,12 +9,12 @@ export declare class YAMLOMap extends YAMLSeq {
add: (pair: import("../../index.js").Pair<any, any> | {
key: any;
value: any;
- }, overwrite?: boolean | undefined) => void;
+ }, overwrite?: boolean) => void;
delete: (key: unknown) => boolean;
get: {
(key: unknown, keepScalar: true): import("../../index.js").Scalar<any> | undefined;
- (key: unknown, keepScalar?: false | undefined): any;
- (key: unknown, keepScalar?: boolean | undefined): any;
+ (key: unknown, keepScalar?: false): any;
+ (key: unknown, keepScalar?: boolean): any;
};
has: (key: unknown) => boolean;
set: (key: any, value: any) => void;