@collctiv/l2s-models 1.0.115 → 1.0.117

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 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../global/types.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,QAAQ,GAAG,KAAK,CAAC;AAE7B,MAAM,MAAM,OAAO,GAAG,IAAI,CAAC;AAE3B,MAAM,MAAM,KAAK,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAInD,eAAO,MAAM,eAAe,GAAI,UAAU,UAAS,GAAG,EAAE,eAAe,GAAG,EAAE,SAAS,UAAS,GAAG,SAKhG,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,UAAU,UAAS,GAAG,EAAE,oBAAoB,GAAG,KAAG,UAAS,GAAG,GAAG,IAE/F,CAAA;AAED,eAAO,MAAM,IAAI;;;;;;CAMP,CAAC;AAEX,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,OAAO,IAAI,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../global/types.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,QAAQ,GAAG,KAAK,CAAC;AAE7B,MAAM,MAAM,OAAO,GAAG,IAAI,CAAC;AAE3B,MAAM,MAAM,KAAK,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAUnD,eAAO,MAAM,eAAe,GAAI,UAAU,UAAS,GAAG,EAAE,eAAe,GAAG,EAAE,SAAS,UAAS,GAAG,SAKhG,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,UAAU,UAAS,GAAG,EAAE,oBAAoB,GAAG,KAAG,UAAS,GAAG,GAAG,IAE/F,CAAA;AAED,eAAO,MAAM,IAAI;;;;;;CAMP,CAAC;AAEX,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,OAAO,IAAI,CAAC,CAAC"}
@@ -1,4 +1,8 @@
1
- const typeRegistry = new Map();
1
+ const REGISTRY_KEY = Symbol.for("@collctiv/l2s-models/typeRegistry");
2
+ if (!globalThis[REGISTRY_KEY]) {
3
+ globalThis[REGISTRY_KEY] = new Map();
4
+ }
5
+ const typeRegistry = globalThis[REGISTRY_KEY];
2
6
  export const registerSubType = (baseType, discriminator, subType) => {
3
7
  if (!typeRegistry.has(baseType)) {
4
8
  typeRegistry.set(baseType, new Map());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@collctiv/l2s-models",
3
- "version": "1.0.115",
3
+ "version": "1.0.117",
4
4
  "description": "L2S models, interfaces, types and enums",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",