@lodestar/utils 1.7.0-dev.b56770b254 → 1.7.0-dev.c65e1a428c

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.
@@ -1,3 +1,3 @@
1
- import yaml from "js-yaml";
2
- export declare const schema: yaml.Schema;
1
+ import yml from "js-yaml";
2
+ export declare const schema: yml.Schema;
3
3
  //# sourceMappingURL=schema.d.ts.map
@@ -1,21 +1,10 @@
1
- import yaml from "js-yaml";
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 = new Schema({
17
- include: [failsafe],
18
- implicit: [nullType, boolType, intType, floatType],
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
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/yaml/schema.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,MAAM,EAAC,MAAM,EAAC,GAAG,IAAI,CAAC;AACtB,6DAA6D;AAC7D,aAAa;AACb,OAAO,QAAQ,MAAM,wCAAwC,CAAC;AAC9D,6DAA6D;AAC7D,aAAa;AACb,OAAO,QAAQ,MAAM,kCAAkC,CAAC;AACxD,6DAA6D;AAC7D,aAAa;AACb,OAAO,QAAQ,MAAM,kCAAkC,CAAC;AACxD,6DAA6D;AAC7D,aAAa;AACb,OAAO,SAAS,MAAM,mCAAmC,CAAC;AAC1D,OAAO,EAAC,OAAO,EAAC,MAAM,UAAU,CAAC;AAEjC,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC;IAC/B,OAAO,EAAE,CAAC,QAAQ,CAAC;IACnB,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;IAClD,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
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.b56770b254",
14
+ "version": "1.7.0-dev.c65e1a428c",
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": "2.1.2",
42
+ "any-signal": "3.0.1",
43
43
  "bigint-buffer": "^1.1.5",
44
44
  "case": "^1.6.3",
45
- "chalk": "^4.1.2",
46
- "js-yaml": "^3.13.1",
47
- "winston": "^3.3.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": "^3.12.1",
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": "cd53283ba1e3ec29660cdd7c486d3df70f3b2a03"
60
+ "gitHead": "0ec859b15cc6e9e1060a77e75cfd4d23fd3f67be"
61
61
  }