@lodestar/utils 1.7.0-dev.b56770b254 → 1.7.0-dev.b5e8b8b105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/yaml/schema.d.ts +2 -2
- package/lib/yaml/schema.js +6 -17
- package/lib/yaml/schema.js.map +1 -1
- package/package.json +7 -7
package/lib/yaml/schema.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const schema:
|
|
1
|
+
import yml from "js-yaml";
|
|
2
|
+
export declare const schema: yml.Schema;
|
|
3
3
|
//# sourceMappingURL=schema.d.ts.map
|
package/lib/yaml/schema.js
CHANGED
|
@@ -1,21 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
const { Schema } = yaml;
|
|
3
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
4
|
-
// @ts-ignore
|
|
5
|
-
import failsafe from "js-yaml/lib/js-yaml/schema/failsafe.js";
|
|
6
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
7
|
-
// @ts-ignore
|
|
8
|
-
import nullType from "js-yaml/lib/js-yaml/type/null.js";
|
|
9
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
10
|
-
// @ts-ignore
|
|
11
|
-
import boolType from "js-yaml/lib/js-yaml/type/bool.js";
|
|
12
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
13
|
-
// @ts-ignore
|
|
14
|
-
import floatType from "js-yaml/lib/js-yaml/type/float.js";
|
|
1
|
+
import yml, { FAILSAFE_SCHEMA } from "js-yaml";
|
|
15
2
|
import { intType } from "./int.js";
|
|
16
|
-
export const schema =
|
|
17
|
-
|
|
18
|
-
|
|
3
|
+
export const schema = FAILSAFE_SCHEMA.extend({
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
5
|
+
// @ts-expect-error
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
7
|
+
implicit: [yml.types.null, yml.types.bool, intType, yml.types.float],
|
|
19
8
|
explicit: [],
|
|
20
9
|
});
|
|
21
10
|
//# sourceMappingURL=schema.js.map
|
package/lib/yaml/schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/yaml/schema.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/yaml/schema.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,EAAE,EAAC,eAAe,EAAO,MAAM,SAAS,CAAC;AAEnD,OAAO,EAAC,OAAO,EAAC,MAAM,UAAU,CAAC;AAEjC,MAAM,CAAC,MAAM,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC;IAC3C,6DAA6D;IAC7D,mBAAmB;IACnB,sEAAsE;IACtE,QAAQ,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,IAAY,EAAE,GAAG,CAAC,KAAK,CAAC,IAAY,EAAE,OAAO,EAAE,GAAG,CAAC,KAAK,CAAC,KAAa,CAAC;IAC5F,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"bugs": {
|
|
12
12
|
"url": "https://github.com/ChainSafe/lodestar/issues"
|
|
13
13
|
},
|
|
14
|
-
"version": "1.7.0-dev.
|
|
14
|
+
"version": "1.7.0-dev.b5e8b8b105",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"exports": "./lib/index.js",
|
|
17
17
|
"files": [
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
"types": "lib/index.d.ts",
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@chainsafe/as-sha256": "^0.3.1",
|
|
42
|
-
"any-signal": "
|
|
42
|
+
"any-signal": "3.0.1",
|
|
43
43
|
"bigint-buffer": "^1.1.5",
|
|
44
44
|
"case": "^1.6.3",
|
|
45
|
-
"chalk": "^
|
|
46
|
-
"js-yaml": "^
|
|
47
|
-
"winston": "^3.
|
|
45
|
+
"chalk": "^5.2.0",
|
|
46
|
+
"js-yaml": "^4.1.0",
|
|
47
|
+
"winston": "^3.8.2"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@types/js-yaml": "^
|
|
50
|
+
"@types/js-yaml": "^4.0.5",
|
|
51
51
|
"@types/triple-beam": "^1.3.2",
|
|
52
52
|
"triple-beam": "^1.3.0"
|
|
53
53
|
},
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"beacon",
|
|
58
58
|
"blockchain"
|
|
59
59
|
],
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "561fe66e1e4ecc9ff2e087b7cdd10f61ab6a11e0"
|
|
61
61
|
}
|