@pezkuwi/x-bundle 14.0.10 → 14.0.11

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/buffer.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import { Buffer } from 'buffer-es6';
2
+ export default Buffer;
3
+ export { Buffer };
package/buffer.js ADDED
@@ -0,0 +1,3 @@
1
+ import { Buffer } from 'buffer-es6';
2
+ export default Buffer;
3
+ export { Buffer };
package/cjs/bn.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export = BN;
2
+ import { BN } from "@pezkuwi/util/bn/index";
package/cjs/bn.js ADDED
@@ -0,0 +1,7 @@
1
+ // Copyright 2017-2025 @pezkuwi/x-bundle authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ // @ts-expect-error In dev mode we don't have export maps...
5
+ const { BN } = require('@pezkuwi/util');
6
+
7
+ module.exports = BN;
@@ -0,0 +1,3 @@
1
+ import { Buffer } from 'buffer-es6';
2
+ export default Buffer;
3
+ export { Buffer };
package/cjs/buffer.js ADDED
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Buffer = void 0;
4
+ const buffer_es6_1 = require("buffer-es6");
5
+ Object.defineProperty(exports, "Buffer", { enumerable: true, get: function () { return buffer_es6_1.Buffer; } });
6
+ exports.default = buffer_es6_1.Buffer;
@@ -0,0 +1,2 @@
1
+ declare const _default: {};
2
+ export default _default;
package/cjs/crypto.js ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {};
package/cjs/dummy.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import { BN } from '@pezkuwi/util';
2
+ export { BN };
package/cjs/dummy.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BN = void 0;
4
+ const util_1 = require("@pezkuwi/util");
5
+ Object.defineProperty(exports, "BN", { enumerable: true, get: function () { return util_1.BN; } });
package/cjs/empty.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ declare const _default: {};
2
+ export default _default;
package/cjs/empty.js ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {};
package/cjs/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export { packageInfo } from './packageInfo.js';
package/cjs/index.js ADDED
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.packageInfo = void 0;
4
+ var packageInfo_js_1 = require("./packageInfo.js");
5
+ Object.defineProperty(exports, "packageInfo", { enumerable: true, get: function () { return packageInfo_js_1.packageInfo; } });
6
+ console.error('@pezkuwi/x-bundle is not meant to be used directly');
@@ -0,0 +1,7 @@
1
+ interface Class {
2
+ prototype: object;
3
+ super_: Class;
4
+ [key: string]: unknown;
5
+ }
6
+ export default function inherits(child: Class, parent: Class): void;
7
+ export {};
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = inherits;
4
+ function inherits(child, parent) {
5
+ if (parent) {
6
+ child.super_ = parent;
7
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
8
+ child.prototype = Object.create(parent.prototype, {
9
+ constructor: {
10
+ configurable: true,
11
+ enumerable: false,
12
+ value: child,
13
+ writable: true
14
+ }
15
+ });
16
+ }
17
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -0,0 +1,6 @@
1
+ export declare const packageInfo: {
2
+ name: string;
3
+ path: string;
4
+ type: string;
5
+ version: string;
6
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.packageInfo = void 0;
4
+ exports.packageInfo = { name: '@pezkuwi/x-bundle', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.10' };
package/crypto.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ declare const _default: {};
2
+ export default _default;
package/crypto.js ADDED
@@ -0,0 +1 @@
1
+ export default {};
package/dummy.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import { BN } from '@pezkuwi/util';
2
+ export { BN };
package/dummy.js ADDED
@@ -0,0 +1,2 @@
1
+ import { BN } from '@pezkuwi/util';
2
+ export { BN };
package/empty.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ declare const _default: {};
2
+ export default _default;
package/empty.js ADDED
@@ -0,0 +1 @@
1
+ export default {};
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export { packageInfo } from './packageInfo.js';
package/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export { packageInfo } from './packageInfo.js';
2
+ console.error('@pezkuwi/x-bundle is not meant to be used directly');
package/inherits.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ interface Class {
2
+ prototype: object;
3
+ super_: Class;
4
+ [key: string]: unknown;
5
+ }
6
+ export default function inherits(child: Class, parent: Class): void;
7
+ export {};
package/inherits.js ADDED
@@ -0,0 +1,14 @@
1
+ export default function inherits(child, parent) {
2
+ if (parent) {
3
+ child.super_ = parent;
4
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
5
+ child.prototype = Object.create(parent.prototype, {
6
+ constructor: {
7
+ configurable: true,
8
+ enumerable: false,
9
+ value: child,
10
+ writable: true
11
+ }
12
+ });
13
+ }
14
+ }
package/package.json CHANGED
@@ -15,11 +15,133 @@
15
15
  },
16
16
  "sideEffects": false,
17
17
  "type": "module",
18
- "version": "14.0.10",
19
- "main": "index.js",
18
+ "version": "14.0.11",
19
+ "main": "./cjs/index.js",
20
+ "module": "./index.js",
21
+ "types": "./index.d.ts",
22
+ "exports": {
23
+ "./cjs/package.json": "./cjs/package.json",
24
+ "./cjs/*": "./cjs/*.js",
25
+ ".": {
26
+ "module": {
27
+ "types": "./index.d.ts",
28
+ "default": "./index.js"
29
+ },
30
+ "require": {
31
+ "types": "./cjs/index.d.ts",
32
+ "default": "./cjs/index.js"
33
+ },
34
+ "default": {
35
+ "types": "./index.d.ts",
36
+ "default": "./index.js"
37
+ }
38
+ },
39
+ "./buffer": {
40
+ "module": {
41
+ "types": "./buffer.d.ts",
42
+ "default": "./buffer.js"
43
+ },
44
+ "require": {
45
+ "types": "./cjs/buffer.d.ts",
46
+ "default": "./cjs/buffer.js"
47
+ },
48
+ "default": {
49
+ "types": "./buffer.d.ts",
50
+ "default": "./buffer.js"
51
+ }
52
+ },
53
+ "./crypto": {
54
+ "module": {
55
+ "types": "./crypto.d.ts",
56
+ "default": "./crypto.js"
57
+ },
58
+ "require": {
59
+ "types": "./cjs/crypto.d.ts",
60
+ "default": "./cjs/crypto.js"
61
+ },
62
+ "default": {
63
+ "types": "./crypto.d.ts",
64
+ "default": "./crypto.js"
65
+ }
66
+ },
67
+ "./dummy": {
68
+ "module": {
69
+ "types": "./dummy.d.ts",
70
+ "default": "./dummy.js"
71
+ },
72
+ "require": {
73
+ "types": "./cjs/dummy.d.ts",
74
+ "default": "./cjs/dummy.js"
75
+ },
76
+ "default": {
77
+ "types": "./dummy.d.ts",
78
+ "default": "./dummy.js"
79
+ }
80
+ },
81
+ "./empty": {
82
+ "module": {
83
+ "types": "./empty.d.ts",
84
+ "default": "./empty.js"
85
+ },
86
+ "require": {
87
+ "types": "./cjs/empty.d.ts",
88
+ "default": "./cjs/empty.js"
89
+ },
90
+ "default": {
91
+ "types": "./empty.d.ts",
92
+ "default": "./empty.js"
93
+ }
94
+ },
95
+ "./inherits": {
96
+ "module": {
97
+ "types": "./inherits.d.ts",
98
+ "default": "./inherits.js"
99
+ },
100
+ "require": {
101
+ "types": "./cjs/inherits.d.ts",
102
+ "default": "./cjs/inherits.js"
103
+ },
104
+ "default": {
105
+ "types": "./inherits.d.ts",
106
+ "default": "./inherits.js"
107
+ }
108
+ },
109
+ "./package.json": {
110
+ "require": "./cjs/package.json",
111
+ "default": "./package.json"
112
+ },
113
+ "./packageInfo.js": {
114
+ "module": {
115
+ "types": "./packageInfo.d.ts",
116
+ "default": "./packageInfo.js"
117
+ },
118
+ "require": {
119
+ "types": "./cjs/packageInfo.d.ts",
120
+ "default": "./cjs/packageInfo.js"
121
+ },
122
+ "default": {
123
+ "types": "./packageInfo.d.ts",
124
+ "default": "./packageInfo.js"
125
+ }
126
+ },
127
+ "./packageInfo": {
128
+ "module": {
129
+ "types": "./packageInfo.d.ts",
130
+ "default": "./packageInfo.js"
131
+ },
132
+ "require": {
133
+ "types": "./cjs/packageInfo.d.ts",
134
+ "default": "./cjs/packageInfo.js"
135
+ },
136
+ "default": {
137
+ "types": "./packageInfo.d.ts",
138
+ "default": "./packageInfo.js"
139
+ }
140
+ }
141
+ },
20
142
  "dependencies": {
21
- "@pezkuwi/util": "14.0.10",
143
+ "@pezkuwi/util": "14.0.11",
22
144
  "buffer-es6": "^4.9.3",
23
145
  "tslib": "^2.8.0"
24
146
  }
25
- }
147
+ }
@@ -0,0 +1,6 @@
1
+ export declare const packageInfo: {
2
+ name: string;
3
+ path: string;
4
+ type: string;
5
+ version: string;
6
+ };
package/packageInfo.js ADDED
@@ -0,0 +1 @@
1
+ export const packageInfo = { name: '@pezkuwi/x-bundle', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '14.0.10' };