@xylabs/buffer 2.11.24 → 2.12.1

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.
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/node/bufferPolyfill.ts
21
+ var bufferPolyfill_exports = {};
22
+ __export(bufferPolyfill_exports, {
23
+ bufferPolyfill: () => bufferPolyfill
24
+ });
25
+ module.exports = __toCommonJS(bufferPolyfill_exports);
26
+ var bufferPolyfill = () => {
27
+ return;
28
+ };
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ bufferPolyfill
32
+ });
33
+ //# sourceMappingURL=bufferPolyfill.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/node/bufferPolyfill.ts"],"sourcesContent":["export const bufferPolyfill = () => {\n return\n}\n"],"mappings":";AAAO,IAAM,iBAAiB,MAAM;AAClC;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/node/bufferPolyfill.ts"],"sourcesContent":["export const bufferPolyfill = () => {\n return\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,IAAM,iBAAiB,MAAM;AAClC;AACF;","names":[]}
@@ -1,33 +1,8 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
1
  // src/node/bufferPolyfill.ts
21
- var bufferPolyfill_exports = {};
22
- __export(bufferPolyfill_exports, {
23
- bufferPolyfill: () => bufferPolyfill
24
- });
25
- module.exports = __toCommonJS(bufferPolyfill_exports);
26
2
  var bufferPolyfill = () => {
27
3
  return;
28
4
  };
29
- // Annotate the CommonJS export names for ESM import in node:
30
- 0 && (module.exports = {
5
+ export {
31
6
  bufferPolyfill
32
- });
7
+ };
33
8
  //# sourceMappingURL=bufferPolyfill.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/node/bufferPolyfill.ts"],"sourcesContent":["export const bufferPolyfill = () => {\n return\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,IAAM,iBAAiB,MAAM;AAClC;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/node/bufferPolyfill.ts"],"sourcesContent":["export const bufferPolyfill = () => {\n return\n}\n"],"mappings":";AAAO,IAAM,iBAAiB,MAAM;AAClC;AACF;","names":[]}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/node/index.ts
21
+ var node_exports = {};
22
+ __export(node_exports, {
23
+ Buffer: () => import_buffer.Buffer,
24
+ bufferPolyfill: () => bufferPolyfill
25
+ });
26
+ module.exports = __toCommonJS(node_exports);
27
+
28
+ // src/node/bufferPolyfill.ts
29
+ var bufferPolyfill = () => {
30
+ return;
31
+ };
32
+
33
+ // src/node/index.ts
34
+ var import_buffer = require("buffer");
35
+ // Annotate the CommonJS export names for ESM import in node:
36
+ 0 && (module.exports = {
37
+ Buffer,
38
+ bufferPolyfill
39
+ });
40
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/node/index.ts","../../src/node/bufferPolyfill.ts"],"sourcesContent":["export * from './bufferPolyfill'\nexport { Buffer } from 'buffer'\n","export const bufferPolyfill = () => {\n return\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAM,iBAAiB,MAAM;AAClC;AACF;;;ADDA,oBAAuB;","names":[]}
@@ -1,40 +1,12 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/node/index.ts
21
- var node_exports = {};
22
- __export(node_exports, {
23
- Buffer: () => import_buffer.Buffer,
24
- bufferPolyfill: () => bufferPolyfill
25
- });
26
- module.exports = __toCommonJS(node_exports);
27
-
28
1
  // src/node/bufferPolyfill.ts
29
2
  var bufferPolyfill = () => {
30
3
  return;
31
4
  };
32
5
 
33
6
  // src/node/index.ts
34
- var import_buffer = require("buffer");
35
- // Annotate the CommonJS export names for ESM import in node:
36
- 0 && (module.exports = {
7
+ import { Buffer } from "buffer";
8
+ export {
37
9
  Buffer,
38
10
  bufferPolyfill
39
- });
11
+ };
40
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/node/index.ts","../../src/node/bufferPolyfill.ts"],"sourcesContent":["export * from './bufferPolyfill'\nexport { Buffer } from 'buffer'\n","export const bufferPolyfill = () => {\n return\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAM,iBAAiB,MAAM;AAClC;AACF;;;ADDA,oBAAuB;","names":[]}
1
+ {"version":3,"sources":["../../src/node/bufferPolyfill.ts","../../src/node/index.ts"],"sourcesContent":["export const bufferPolyfill = () => {\n return\n}\n","export * from './bufferPolyfill'\nexport { Buffer } from 'buffer'\n"],"mappings":";AAAO,IAAM,iBAAiB,MAAM;AAClC;AACF;;;ACDA,SAAS,cAAc;","names":[]}
package/package.json CHANGED
@@ -12,7 +12,6 @@
12
12
  },
13
13
  "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
14
14
  "docs": "dist/docs.json",
15
- "types": "dist/node/node/index.d.ts",
16
15
  "exports": {
17
16
  ".": {
18
17
  "browser": {
@@ -21,17 +20,17 @@
21
20
  "default": "./dist/browser/index.cjs"
22
21
  },
23
22
  "import": {
24
- "types": "./dist/browser/browser/index.d.ts",
23
+ "types": "./dist/browser/browser/index.d.mts",
25
24
  "default": "./dist/browser/index.js"
26
25
  }
27
26
  },
28
27
  "require": {
29
28
  "types": "./dist/node/node/index.d.ts",
30
- "default": "./dist/node/index.js"
29
+ "default": "./dist/node/index.cjs"
31
30
  },
32
31
  "import": {
33
32
  "types": "./dist/node/node/index.d.mts",
34
- "default": "./dist/node/index.mjs"
33
+ "default": "./dist/node/index.js"
35
34
  }
36
35
  },
37
36
  "./docs": {
@@ -39,8 +38,6 @@
39
38
  },
40
39
  "./package.json": "./package.json"
41
40
  },
42
- "main": "dist/node/index.js",
43
- "module": "dist/node/index.mjs",
44
41
  "homepage": "https://xylabs.com",
45
42
  "keywords": [
46
43
  "xylabs",
@@ -66,7 +63,7 @@
66
63
  "url": "https://github.com/xylabs/sdk-js.git"
67
64
  },
68
65
  "sideEffects": false,
69
- "version": "2.11.24",
66
+ "version": "2.12.1",
70
67
  "xy": {
71
68
  "compile": {
72
69
  "browser": {
@@ -76,5 +73,6 @@
76
73
  "src/node": true
77
74
  }
78
75
  }
79
- }
76
+ },
77
+ "type": "module"
80
78
  }
@@ -1,8 +0,0 @@
1
- // src/node/bufferPolyfill.ts
2
- var bufferPolyfill = () => {
3
- return;
4
- };
5
- export {
6
- bufferPolyfill
7
- };
8
- //# sourceMappingURL=bufferPolyfill.mjs.map
@@ -1,12 +0,0 @@
1
- // src/node/bufferPolyfill.ts
2
- var bufferPolyfill = () => {
3
- return;
4
- };
5
-
6
- // src/node/index.ts
7
- import { Buffer } from "buffer";
8
- export {
9
- Buffer,
10
- bufferPolyfill
11
- };
12
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/node/bufferPolyfill.ts","../../src/node/index.ts"],"sourcesContent":["export const bufferPolyfill = () => {\n return\n}\n","export * from './bufferPolyfill'\nexport { Buffer } from 'buffer'\n"],"mappings":";AAAO,IAAM,iBAAiB,MAAM;AAClC;AACF;;;ACDA,SAAS,cAAc;","names":[]}