@power-plant/schema 0.0.37 → 0.0.39

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/dist/codegen.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_helpers = require('./helpers-DbFdMcOB.cjs');
2
+ const require_helpers = require('./helpers-Hae4JIm0.cjs');
3
3
  let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
4
4
  let _stryke_type_checks = require("@stryke/type-checks");
5
5
  let _stryke_string_format_list = require("@stryke/string-format/list");
@@ -0,0 +1,21 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_rolldown_runtime = require('./rolldown-runtime-BbWMFyz5.cjs');
3
+
4
+ //#region src/deepkit.ts
5
+ var deepkit_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({});
6
+ require_rolldown_runtime.__reExport(deepkit_exports, require("@deepkit/type-compiler"));
7
+
8
+ //#endregion
9
+ Object.defineProperty(exports, 'deepkit_exports', {
10
+ enumerable: true,
11
+ get: function () {
12
+ return deepkit_exports;
13
+ }
14
+ });
15
+ var _deepkit_type_compiler = require("@deepkit/type-compiler");
16
+ Object.keys(_deepkit_type_compiler).forEach(function (k) {
17
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
18
+ enumerable: true,
19
+ get: function () { return _deepkit_type_compiler[k]; }
20
+ });
21
+ });
@@ -0,0 +1 @@
1
+ export * from "@deepkit/type-compiler";
@@ -0,0 +1 @@
1
+ export * from "@deepkit/type-compiler";
@@ -0,0 +1,45 @@
1
+ export * from "@deepkit/type-compiler"
2
+
3
+ //#region \0rolldown/runtime.js
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __exportAll = (all, no_symbols) => {
9
+ let target = {};
10
+ for (var name in all) {
11
+ __defProp(target, name, {
12
+ get: all[name],
13
+ enumerable: true
14
+ });
15
+ }
16
+ if (!no_symbols) {
17
+ __defProp(target, Symbol.toStringTag, { value: "Module" });
18
+ }
19
+ return target;
20
+ };
21
+ var __copyProps = (to, from, except, desc) => {
22
+ if (from && typeof from === "object" || typeof from === "function") {
23
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
24
+ key = keys[i];
25
+ if (!__hasOwnProp.call(to, key) && key !== except) {
26
+ __defProp(to, key, {
27
+ get: ((k) => from[k]).bind(null, key),
28
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
29
+ });
30
+ }
31
+ }
32
+ }
33
+ return to;
34
+ };
35
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
36
+
37
+ //#endregion
38
+ //#region src/deepkit.ts
39
+ var deepkit_exports = /* @__PURE__ */ __exportAll({});
40
+ import * as import__deepkit_type_compiler from "@deepkit/type-compiler";
41
+ __reExport(deepkit_exports, import__deepkit_type_compiler);
42
+
43
+ //#endregion
44
+ export { deepkit_exports as t };
45
+ //# sourceMappingURL=deepkit.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deepkit.mjs","names":[],"sources":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('./rolldown-runtime-C_NdSu1c.cjs');
1
+ const require_rolldown_runtime = require('./rolldown-runtime-BbWMFyz5.cjs');
2
2
  const require_constants = require('./constants-CEmLvTDd.cjs');
3
3
  let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
4
4
  let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
package/dist/index.cjs CHANGED
@@ -1,14 +1,14 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_rolldown_runtime = require('./rolldown-runtime-C_NdSu1c.cjs');
2
+ const require_rolldown_runtime = require('./rolldown-runtime-BbWMFyz5.cjs');
3
3
  const require_constants = require('./constants-CEmLvTDd.cjs');
4
- const require_helpers = require('./helpers-DbFdMcOB.cjs');
4
+ const require_helpers = require('./helpers-Hae4JIm0.cjs');
5
+ const require_deepkit = require('./deepkit.cjs');
5
6
  const require_codegen = require('./codegen.cjs');
6
- const require_storage = require('./storage-B8aDmNpv.cjs');
7
+ const require_storage = require('./storage-C1R3j1aG.cjs');
7
8
  let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
8
9
  let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
9
10
  let _stryke_type_checks = require("@stryke/type-checks");
10
11
  let _deepkit_type = require("@deepkit/type");
11
- let _deepkit_type_compiler = require("@deepkit/type-compiler");
12
12
  let _stryke_convert_extract_file_reference = require("@stryke/convert/extract-file-reference");
13
13
  let _stryke_fs_resolve = require("@stryke/fs/resolve");
14
14
  let _stryke_hash = require("@stryke/hash");
@@ -882,7 +882,7 @@ function extractSource(variant, input) {
882
882
  };
883
883
  throw new Error(`Failed to extract source information from the provided input. The input must be a Zod schema, a Standard JSON Schema, a JSON Schema object, an untyped schema, or a reflected Deepkit Type object.`);
884
884
  }
885
- const deepkitCache = new _deepkit_type_compiler.Cache();
885
+ const deepkitCache = new require_deepkit.deepkit_exports.Cache();
886
886
  function rewriteTypeOnlyImports(source) {
887
887
  return source.replaceAll(/\bimport\s+type\s+/g, "import ").replaceAll(/\bexport\s+type\s+\*\s+from/g, "export * from").replaceAll(/\bexport\s+type\s+\{/g, "export {");
888
888
  }
@@ -926,8 +926,8 @@ function transpileWithDeepkit(code, fileName, options) {
926
926
  compilerOptions: getCompilerOptions(options),
927
927
  fileName,
928
928
  transformers: {
929
- before: [(context) => new _deepkit_type_compiler.ReflectionTransformer(context, deepkitCache).withReflection(reflectionConfig)],
930
- after: [(context) => new _deepkit_type_compiler.DeclarationTransformer(context, deepkitCache).withReflection(reflectionConfig)]
929
+ before: [(context) => new require_deepkit.deepkit_exports.ReflectionTransformer(context, deepkitCache).withReflection(reflectionConfig)],
930
+ after: [(context) => new require_deepkit.deepkit_exports.DeclarationTransformer(context, deepkitCache).withReflection(reflectionConfig)]
931
931
  }
932
932
  });
933
933
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/compatibility.ts","../src/extract.ts","../src/helpers.ts","../src/metadata.ts","../src/type-checks.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAwGgB,yBACd,MAAM,YACN,UAAU,YACV;;;;;;;;;iBAqHc,6BACd,MAAM,YACN,UAAU,YACV;;;;;;;;;iBCuDc,iBAAiB,QAAQ,aAAa;;;;iBAgMtC,YACd,SAAS,qBACT,OAAO;;;;iBA+CO,kBAAkB,YAAY,OAAO;;;;;;;iBAcrC,kBAAkB,kBAAkB;;;;;;;;iBAoCpC,uBACd,OAAO,qBACN;;;;;;;iBA4Ba,eAAe,OAAO,eAAe;;;;;;;;;iBAsB/B,cACpB,OAAO,oBACP,UAAU,sBACT,QAAQ;;;;;;;;;iBAqCK,cACd,SAAS,qBACT,OAAO,qBACN;;;;;;;;;;;iBAgOmB,cACpB,OAAO,oBACP,UAAS,wBAAwB,SAAS,qBACzC,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2IW,wBAAwB,aAC5C,OAAO,cACP,UAAS,2BAA2B,SACnC,QAAQ,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyJb,QAAQ,aAC5B,OAAO,aAAa,QACpB,UAAS,2BAA2B,SACnC,QAAQ,iBAAiB;;;KCjoChB,oBAAoB;EAC9B;EACA;EACA;;;;;;;;;;;;iBAac,cAAc,OAAO,iBAAiB,aAAa;;;;;;;;;;;iBAmBnD,oBACd,OAAO,iBAAiB,aACvB;;;;;;;;;;iBAkBa,cACd,KAAK,iBAAiB,mBACrB,eAAe;;;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iBAuB3C,qBACd,iBACC,SAAS;;;;;;;iBAsCI,mBAAmB,iBAAiB,SAAS;;;;;;;iBA+B7C,oBACd,iBACC,SAAS;;;;;;;iBAUI,oBACd,iBACC,SAAS;;;;;;;iBAUI,mBAAmB,iBAAiB,SAAS;;;;;;;iBA2C7C,mBAAmB,iBAAiB,SAAS;;;;;;;iBA4B7C,gBAAgB,iBAAiB,SAAS;;;;;;;iBA8B1C,mBAAmB,iBAAiB,SAAS;;;;;;;iBAyB7C,kBAAkB,iBAAiB,SAAS;;;;;;;iBA8B5C,sBACd,iBACC,SAAS;;;;;;;iBAoBI,2BACd,iBACC,SAAS;;;;;;;iBAsEI,kBAAkB,iBAAiB,SAAS;;;;;;;iBAmB5C,oBACd,iBACC,SAAS;;;;;;;iBAUI,kBAAkB,iBAAiB,SAAS;;;;;;;iBAkB5C,gBAAgB,iBAAiB,SAAS;;;;;;;iBAgB1C,iBAAiB,iBAAiB,SAAS;;;;;;;iBAqB3C,gBACd,iBACC,SAAS;;;;;;;;;;;iBA2BI,6BAA6B;;;;;;;;;;iBAoB7B,aAAa,iBAAiB,SAAS;;;;;;;;;;iBAsCvC,qBAAqB,iBAAiB,SAAS;;;;;;;;;;iBAa/C,gBAAgB,iBAAiB,SAAS;;;;;;;;;;;iBAyD1C,sBAAsB,iBAAiB,SAAS;;;;;;;;;;;cAmBnD,uBAAc;iBAEX,gBAAgB,iBAAiB,SAAS;;;;;;;;;;;;cA2B7C,6BAAoB;iBAEjB,sBACd,iBACC,SAAS;;;;;;;iBAuBI,SAAS,iBAAiB,SAAS;;;;;;;iBAkBnC,WAAW,OACzB,iBACC,SAAS,iBAAiB;;;;;;;iBAUb,mBAAmB,iBAAiB,SAAS;;;;;;;iBAiB7C,eACd,iBACC,SAAS,eAAe"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/compatibility.ts","../src/extract.ts","../src/helpers.ts","../src/metadata.ts","../src/type-checks.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;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,sBACd,iBACC,SAAS;;;;;;;iBAoBI,2BACd,iBACC,SAAS;;;;;;;iBAsEI,kBAAkB,iBAAiB,SAAS;;;;;;;iBAmB5C,oBACd,iBACC,SAAS;;;;;;;iBAUI,kBAAkB,iBAAiB,SAAS;;;;;;;iBAkB5C,gBAAgB,iBAAiB,SAAS;;;;;;;iBAgB1C,iBAAiB,iBAAiB,SAAS;;;;;;;iBAqB3C,gBACd,iBACC,SAAS;;;;;;;;;;;iBA2BI,6BAA6B;;;;;;;;;;iBAoB7B,aAAa,iBAAiB,SAAS;;;;;;;;;;iBAsCvC,qBAAqB,iBAAiB,SAAS;;;;;;;;;;iBAa/C,gBAAgB,iBAAiB,SAAS;;;;;;;;;;;iBAyD1C,sBAAsB,iBAAiB,SAAS;;;;;;;;;;;cAmBnD,uBAAc;iBAEX,gBAAgB,iBAAiB,SAAS;;;;;;;;;;;;cA2B7C,6BAAoB;iBAEjB,sBACd,iBACC,SAAS;;;;;;;iBAuBI,SAAS,iBAAiB,SAAS;;;;;;;iBAkBnC,WAAW,OACzB,iBACC,SAAS,iBAAiB;;;;;;;iBAUb,mBAAmB,iBAAiB,SAAS;;;;;;;iBAiB7C,eACd,iBACC,SAAS,eAAe"}
package/dist/index.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  import { a as JsonSchemaTypeNames, c as SCHEMA_SINGLE_KEYWORDS, i as JSON_SCHEMA_TYPES, n as JSON_SCHEMA_METADATA_KEYS, o as SCHEMA_ARRAY_CONCAT_KEYWORDS, r as JSON_SCHEMA_PRIMITIVE_TYPES, s as SCHEMA_RECORD_KEYWORDS, t as JSON_SCHEMA_CONSTRUCTOR_KEY } from "./constants-BlppSDwG.mjs";
2
2
  import { $ as isUntypedConfig, A as isJsonSchemaNativeEnum, B as isJsonSchemaSet, C as isJsonSchemaDate, D as isJsonSchemaKeywords, E as isJsonSchemaInteger, F as isJsonSchemaObject, G as isJsonSchemaUnion, H as isJsonSchemaTuple, I as isJsonSchemaPrimitiveType, J as isSchema, K as isJsonSchemaUnknown, L as isJsonSchemaPrimitiveUnion, M as isJsonSchemaNull, N as isJsonSchemaNullable, O as isJsonSchemaLiteral, P as isJsonSchemaNumber, Q as isStandardSchema, R as isJsonSchemaRecord, S as isJsonSchemaBoolean, T as isJsonSchemaEnum, U as isJsonSchemaType, V as isJsonSchemaString, W as isJsonSchemaUndefined, X as isSchemaOf, Y as isSchemaObject, Z as isSchemaWithSource, _ as isJsonSchemaAllOf, a as getPropertiesList, at as isValibotSchema, b as isJsonSchemaArray, c as isSchemaNullable, ct as readSchemaTypes, d as merge, et as isUntypedConfigStrict, f as mergeMetadata, g as isJsonSchema, h as isFileReference, i as getProperties, it as isUntypedSchemaStrict, j as isJsonSchemaNever, k as isJsonSchemaMap, l as isValidSchemaConfigFile, m as hasJsonSchemaConstructorFlag, n as getJsonSchema, nt as isUntypedInputStrict, o as getProperty, ot as applyJsonSchemaMetadata, p as traverseSchema, q as isNullOnlyJsonSchema, r as getJsonSchemaObject, rt as isUntypedSchema, s as isPropertyOptional, st as getPrimarySchemaType, t as addProperty, tt as isUntypedInput, u as isValidSchemaInputFile, v as isJsonSchemaAny, w as isJsonSchemaDecimal, x as isJsonSchemaBigint, y as isJsonSchemaAnyOf, z as isJsonSchemaRef } from "./helpers-_8ADIMSN.mjs";
3
+ import { t as deepkit_exports } from "./deepkit.mjs";
3
4
  import { getJsonSchemaType } from "./codegen.mjs";
4
5
  import { n as createStoragePromises, r as normalizeKey, t as mapStorageToFileSystem } from "./storage-C3BT2Xh-.mjs";
5
6
  import { isSetObject } from "@stryke/type-checks/is-set-object";
6
7
  import { isSetString } from "@stryke/type-checks/is-set-string";
7
8
  import { isBigInt, isBoolean, isInteger, isNull, isNumber, isRegExp, isSetArray, isSetObject as isSetObject$1, isSetString as isSetString$1, isString, isUndefined } from "@stryke/type-checks";
8
9
  import { ReflectionClass, ReflectionKind, TypeNumberBrand, isType, reflect, stringifyType } from "@deepkit/type";
9
- import { Cache, DeclarationTransformer, ReflectionTransformer } from "@deepkit/type-compiler";
10
10
  import { extractFileReference } from "@stryke/convert/extract-file-reference";
11
11
  import { resolveSafe } from "@stryke/fs/resolve";
12
12
  import { murmurhash } from "@stryke/hash";
@@ -878,7 +878,7 @@ function extractSource(variant, input) {
878
878
  };
879
879
  throw new Error(`Failed to extract source information from the provided input. The input must be a Zod schema, a Standard JSON Schema, a JSON Schema object, an untyped schema, or a reflected Deepkit Type object.`);
880
880
  }
881
- const deepkitCache = new Cache();
881
+ const deepkitCache = new deepkit_exports.Cache();
882
882
  function rewriteTypeOnlyImports(source) {
883
883
  return source.replaceAll(/\bimport\s+type\s+/g, "import ").replaceAll(/\bexport\s+type\s+\*\s+from/g, "export * from").replaceAll(/\bexport\s+type\s+\{/g, "export {");
884
884
  }
@@ -922,8 +922,8 @@ function transpileWithDeepkit(code, fileName, options) {
922
922
  compilerOptions: getCompilerOptions(options),
923
923
  fileName,
924
924
  transformers: {
925
- before: [(context) => new ReflectionTransformer(context, deepkitCache).withReflection(reflectionConfig)],
926
- after: [(context) => new DeclarationTransformer(context, deepkitCache).withReflection(reflectionConfig)]
925
+ before: [(context) => new deepkit_exports.ReflectionTransformer(context, deepkitCache).withReflection(reflectionConfig)],
926
+ after: [(context) => new deepkit_exports.DeclarationTransformer(context, deepkitCache).withReflection(reflectionConfig)]
927
927
  }
928
928
  });
929
929
  }
@@ -5,6 +5,19 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __exportAll = (all, no_symbols) => {
9
+ let target = {};
10
+ for (var name in all) {
11
+ __defProp(target, name, {
12
+ get: all[name],
13
+ enumerable: true
14
+ });
15
+ }
16
+ if (!no_symbols) {
17
+ __defProp(target, Symbol.toStringTag, { value: "Module" });
18
+ }
19
+ return target;
20
+ };
8
21
  var __copyProps = (to, from, except, desc) => {
9
22
  if (from && typeof from === "object" || typeof from === "function") {
10
23
  for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
@@ -19,6 +32,7 @@ var __copyProps = (to, from, except, desc) => {
19
32
  }
20
33
  return to;
21
34
  };
35
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
22
36
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
37
  value: mod,
24
38
  enumerable: true
@@ -26,6 +40,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
40
 
27
41
  //#endregion
28
42
 
43
+ Object.defineProperty(exports, '__exportAll', {
44
+ enumerable: true,
45
+ get: function () {
46
+ return __exportAll;
47
+ }
48
+ });
49
+ Object.defineProperty(exports, '__reExport', {
50
+ enumerable: true,
51
+ get: function () {
52
+ return __reExport;
53
+ }
54
+ });
29
55
  Object.defineProperty(exports, '__toESM', {
30
56
  enumerable: true,
31
57
  get: function () {
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_storage = require('../storage-B8aDmNpv.cjs');
2
+ const require_storage = require('../storage-C1R3j1aG.cjs');
3
3
 
4
4
  exports.createStoragePromises = require_storage.createStoragePromises;
5
5
  exports.mapStorageToFileSystem = require_storage.mapStorageToFileSystem;
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require('./rolldown-runtime-C_NdSu1c.cjs');
1
+ const require_rolldown_runtime = require('./rolldown-runtime-BbWMFyz5.cjs');
2
2
  let node_events = require("node:events");
3
3
  let node_fs = require("node:fs");
4
4
  node_fs = require_rolldown_runtime.__toESM(node_fs, 1);
package/dist/valibot.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_rolldown_runtime = require('./rolldown-runtime-C_NdSu1c.cjs');
2
+ const require_rolldown_runtime = require('./rolldown-runtime-BbWMFyz5.cjs');
3
3
  const require_constants = require('./constants-CEmLvTDd.cjs');
4
4
  let valibot = require("valibot");
5
5
  valibot = require_rolldown_runtime.__toESM(valibot, 1);
package/dist/zod.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_rolldown_runtime = require('./rolldown-runtime-C_NdSu1c.cjs');
2
+ const require_rolldown_runtime = require('./rolldown-runtime-BbWMFyz5.cjs');
3
3
  const require_constants = require('./constants-CEmLvTDd.cjs');
4
- const require_helpers = require('./helpers-DbFdMcOB.cjs');
4
+ const require_helpers = require('./helpers-Hae4JIm0.cjs');
5
5
  let _stryke_helpers_deep_clone = require("@stryke/helpers/deep-clone");
6
6
  let zod_mini = require("zod/mini");
7
7
  zod_mini = require_rolldown_runtime.__toESM(zod_mini, 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@power-plant/schema",
3
- "version": "0.0.37",
3
+ "version": "0.0.39",
4
4
  "private": false,
5
5
  "description": "A Power Plant utility package to help managing schemas.",
6
6
  "keywords": [
@@ -77,6 +77,20 @@
77
77
  "default": "./dist/codegen.mjs"
78
78
  }
79
79
  },
80
+ "./deepkit": {
81
+ "require": {
82
+ "types": "./dist/deepkit.d.cts",
83
+ "default": "./dist/deepkit.cjs"
84
+ },
85
+ "import": {
86
+ "types": "./dist/deepkit.d.mts",
87
+ "default": "./dist/deepkit.mjs"
88
+ },
89
+ "default": {
90
+ "types": "./dist/deepkit.d.mts",
91
+ "default": "./dist/deepkit.mjs"
92
+ }
93
+ },
80
94
  "./package.json": "./package.json",
81
95
  "./storage": {
82
96
  "require": {
@@ -161,5 +175,5 @@
161
175
  "zod": { "optional": true }
162
176
  },
163
177
  "publishConfig": { "access": "public" },
164
- "gitHead": "696e761e446be1a91a1b4ff8971852df26ae3ac1"
178
+ "gitHead": "37b84a827f385676be7ea6b18f2b7a15ea13c19c"
165
179
  }