@pezkuwi/x-bundle 14.0.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.
- package/README.md +3 -0
- package/package.json +25 -0
- package/src/buffer.ts +8 -0
- package/src/cjs/bn.js +7 -0
- package/src/cjs/package.json +3 -0
- package/src/crypto.ts +4 -0
- package/src/dummy.ts +8 -0
- package/src/empty.ts +4 -0
- package/src/index.ts +6 -0
- package/src/inherits.ts +28 -0
- package/src/packageInfo.ts +6 -0
- package/tsconfig.build.json +11 -0
package/README.md
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "Jaco Greeff <jacogr@gmail.com>",
|
|
3
|
+
"bugs": "https://github.com/pezkuwichain/pezkuwi-common/issues",
|
|
4
|
+
"description": "A bundler helper",
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">=18"
|
|
7
|
+
},
|
|
8
|
+
"homepage": "https://github.com/pezkuwichain/pezkuwi-common/tree/master/packages/x-bundle#readme",
|
|
9
|
+
"license": "Apache-2.0",
|
|
10
|
+
"name": "@pezkuwi/x-bundle",
|
|
11
|
+
"repository": {
|
|
12
|
+
"directory": "packages/x-bundle",
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/pezkuwichain/pezkuwi-common.git"
|
|
15
|
+
},
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"type": "module",
|
|
18
|
+
"version": "14.0.1",
|
|
19
|
+
"main": "index.js",
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@pezkuwi/util": "14.0.1",
|
|
22
|
+
"buffer-es6": "^4.9.3",
|
|
23
|
+
"tslib": "^2.8.0"
|
|
24
|
+
}
|
|
25
|
+
}
|
package/src/buffer.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Copyright 2017-2025 @polkadot/x-bundle authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
// @ts-expect-error Only used in rollup bundling, we are not adding a declaration
|
|
5
|
+
import { Buffer } from 'buffer-es6';
|
|
6
|
+
|
|
7
|
+
export default Buffer;
|
|
8
|
+
export { Buffer };
|
package/src/cjs/bn.js
ADDED
package/src/crypto.ts
ADDED
package/src/dummy.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Copyright 2017-2025 @polkadot/x-bundle authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
// This is a dummy, aka we don't check requires and then have
|
|
5
|
+
// some issues with the fact that we have a util reference
|
|
6
|
+
import { BN } from '@pezkuwi/util';
|
|
7
|
+
|
|
8
|
+
export { BN };
|
package/src/empty.ts
ADDED
package/src/index.ts
ADDED
package/src/inherits.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Copyright 2017-2025 @polkadot/x-bundle authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
// Adapted from https://github.com/isaacs/inherits/blob/dbade4c47c548aa7259017eca8874d61c8aaad2b/inherits_browser.js
|
|
5
|
+
// The ISC License
|
|
6
|
+
// Copyright (c) Isaac Z. Schlueter
|
|
7
|
+
|
|
8
|
+
interface Class {
|
|
9
|
+
prototype: object;
|
|
10
|
+
super_: Class;
|
|
11
|
+
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default function inherits (child: Class, parent: Class): void {
|
|
16
|
+
if (parent) {
|
|
17
|
+
child.super_ = parent;
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
19
|
+
child.prototype = Object.create(parent.prototype, {
|
|
20
|
+
constructor: {
|
|
21
|
+
configurable: true,
|
|
22
|
+
enumerable: false,
|
|
23
|
+
value: child,
|
|
24
|
+
writable: true
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|