@milaboratories/pl-model-common 1.19.19 → 1.20.0

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":"base64.cjs","sources":["../src/base64.ts"],"sourcesContent":["export type Base64Compatible<T> = T extends WithImplicitCoercion<Uint8Array | readonly number[] | string> ? T : never;\n\nexport type Base64Encoded<T = unknown> = Base64Compatible<T> extends never ? never : string & {\n __base64_encoded: T;\n};\n\nexport function base64Encode<T>(value: Base64Compatible<T>): Base64Encoded<T> {\n return Buffer.from(value).toString('base64') as Base64Encoded<T>;\n}\n\nexport function base64Decode<T extends string>(value: Base64Encoded<T>): T {\n return Buffer.from(value, 'base64').toString() as T;\n};\n"],"names":[],"mappings":";;AAMM,SAAU,YAAY,CAAI,KAA0B,EAAA;IACxD,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAqB;AAClE;AAEM,SAAU,YAAY,CAAmB,KAAuB,EAAA;IACpE,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAO;AACrD;;;;;"}
1
+ {"version":3,"file":"base64.cjs","sources":["../src/base64.ts"],"sourcesContent":["import type { WithImplicitCoercion } from 'node:buffer';\n\nexport type Base64Compatible<T> = T extends WithImplicitCoercion<Uint8Array | readonly number[] | string> ? T : never;\n\nexport type Base64Encoded<T = unknown> = Base64Compatible<T> extends never ? never : string & {\n __base64_encoded: T;\n};\n\nexport function base64Encode<T>(value: Base64Compatible<T>): Base64Encoded<T> {\n return Buffer.from(value).toString('base64') as Base64Encoded<T>;\n}\n\nexport function base64Decode<T extends string>(value: Base64Encoded<T>): T {\n return Buffer.from(value, 'base64').toString() as T;\n};\n"],"names":[],"mappings":";;AAQM,SAAU,YAAY,CAAI,KAA0B,EAAA;IACxD,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAqB;AAClE;AAEM,SAAU,YAAY,CAAmB,KAAuB,EAAA;IACpE,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAO;AACrD;;;;;"}
package/dist/base64.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { WithImplicitCoercion } from 'node:buffer';
1
2
  export type Base64Compatible<T> = T extends WithImplicitCoercion<Uint8Array | readonly number[] | string> ? T : never;
2
3
  export type Base64Encoded<T = unknown> = Base64Compatible<T> extends never ? never : string & {
3
4
  __base64_encoded: T;
@@ -1 +1 @@
1
- {"version":3,"file":"base64.d.ts","sourceRoot":"","sources":["../src/base64.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,CAAC,SAAS,oBAAoB,CAAC,UAAU,GAAG,SAAS,MAAM,EAAE,GAAG,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAEtH,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,OAAO,IAAI,gBAAgB,CAAC,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG;IAC5F,gBAAgB,EAAE,CAAC,CAAC;CACrB,CAAC;AAEF,wBAAgB,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAE5E;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,CAEzE"}
1
+ {"version":3,"file":"base64.d.ts","sourceRoot":"","sources":["../src/base64.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,CAAC,SAAS,oBAAoB,CAAC,UAAU,GAAG,SAAS,MAAM,EAAE,GAAG,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAEtH,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,OAAO,IAAI,gBAAgB,CAAC,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG;IAC5F,gBAAgB,EAAE,CAAC,CAAC;CACrB,CAAC;AAEF,wBAAgB,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAE5E;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,CAEzE"}
@@ -1 +1 @@
1
- {"version":3,"file":"base64.js","sources":["../src/base64.ts"],"sourcesContent":["export type Base64Compatible<T> = T extends WithImplicitCoercion<Uint8Array | readonly number[] | string> ? T : never;\n\nexport type Base64Encoded<T = unknown> = Base64Compatible<T> extends never ? never : string & {\n __base64_encoded: T;\n};\n\nexport function base64Encode<T>(value: Base64Compatible<T>): Base64Encoded<T> {\n return Buffer.from(value).toString('base64') as Base64Encoded<T>;\n}\n\nexport function base64Decode<T extends string>(value: Base64Encoded<T>): T {\n return Buffer.from(value, 'base64').toString() as T;\n};\n"],"names":[],"mappings":"AAMM,SAAU,YAAY,CAAI,KAA0B,EAAA;IACxD,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAqB;AAClE;AAEM,SAAU,YAAY,CAAmB,KAAuB,EAAA;IACpE,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAO;AACrD;;;;"}
1
+ {"version":3,"file":"base64.js","sources":["../src/base64.ts"],"sourcesContent":["import type { WithImplicitCoercion } from 'node:buffer';\n\nexport type Base64Compatible<T> = T extends WithImplicitCoercion<Uint8Array | readonly number[] | string> ? T : never;\n\nexport type Base64Encoded<T = unknown> = Base64Compatible<T> extends never ? never : string & {\n __base64_encoded: T;\n};\n\nexport function base64Encode<T>(value: Base64Compatible<T>): Base64Encoded<T> {\n return Buffer.from(value).toString('base64') as Base64Encoded<T>;\n}\n\nexport function base64Decode<T extends string>(value: Base64Encoded<T>): T {\n return Buffer.from(value, 'base64').toString() as T;\n};\n"],"names":[],"mappings":"AAQM,SAAU,YAAY,CAAI,KAA0B,EAAA;IACxD,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAqB;AAClE;AAEM,SAAU,YAAY,CAAmB,KAAuB,EAAA;IACpE,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAO;AACrD;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milaboratories/pl-model-common",
3
- "version": "1.19.19",
3
+ "version": "1.20.0",
4
4
  "description": "Platforma SDK Model",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -25,9 +25,9 @@
25
25
  "eslint": "^9.25.1",
26
26
  "typescript": "~5.6.3",
27
27
  "vitest": "^2.1.9",
28
- "@milaboratories/ts-builder": "1.0.5",
29
- "@platforma-sdk/eslint-config": "1.1.0",
30
28
  "@milaboratories/build-configs": "1.0.8",
29
+ "@platforma-sdk/eslint-config": "1.1.0",
30
+ "@milaboratories/ts-builder": "1.0.5",
31
31
  "@milaboratories/ts-configs": "1.0.6"
32
32
  },
33
33
  "scripts": {
package/src/base64.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import type { WithImplicitCoercion } from 'node:buffer';
2
+
1
3
  export type Base64Compatible<T> = T extends WithImplicitCoercion<Uint8Array | readonly number[] | string> ? T : never;
2
4
 
3
5
  export type Base64Encoded<T = unknown> = Base64Compatible<T> extends never ? never : string & {