@pezkuwi/dev 0.85.1 → 0.85.3

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.
Files changed (66) hide show
  1. package/.skip-deno +0 -0
  2. package/README.md +547 -0
  3. package/config/eslint.rules.js +1 -1
  4. package/package.json +19 -241
  5. package/scripts/pezkuwi-ci-ghact-build.mjs +4 -0
  6. package/tsconfig.build.json +18 -0
  7. package/tsconfig.build.tsbuildinfo +1 -0
  8. package/tsconfig.config.json +14 -0
  9. package/tsconfig.config.tsbuildinfo +1 -0
  10. package/tsconfig.scripts.json +14 -0
  11. package/tsconfig.scripts.tsbuildinfo +1 -0
  12. package/tsconfig.spec.json +18 -0
  13. package/tsconfig.spec.tsbuildinfo +1 -0
  14. package/LICENSE +0 -201
  15. package/cjs/detectOther.d.ts +0 -2
  16. package/cjs/detectOther.js +0 -3
  17. package/cjs/index.d.ts +0 -1
  18. package/cjs/index.js +0 -3
  19. package/cjs/package.json +0 -3
  20. package/cjs/packageInfo.d.ts +0 -6
  21. package/cjs/packageInfo.js +0 -4
  22. package/cjs/root.d.ts +0 -2
  23. package/cjs/root.js +0 -6
  24. package/cjs/rootJs/Clazz.d.ts +0 -18
  25. package/cjs/rootJs/Clazz.js +0 -36
  26. package/cjs/rootJs/Jsx.d.ts +0 -5
  27. package/cjs/rootJs/Jsx.js +0 -16
  28. package/cjs/rootJs/JsxChild.d.ts +0 -9
  29. package/cjs/rootJs/JsxChild.js +0 -9
  30. package/cjs/rootJs/augmented.d.ts +0 -8
  31. package/cjs/rootJs/augmented.js +0 -3
  32. package/cjs/rootJs/index.d.ts +0 -19
  33. package/cjs/rootJs/index.js +0 -51
  34. package/cjs/rootTests.d.ts +0 -2
  35. package/cjs/rootTests.js +0 -44
  36. package/cjs/sample.d.ts +0 -1
  37. package/cjs/sample.js +0 -4
  38. package/cjs/types.d.ts +0 -2
  39. package/cjs/types.js +0 -2
  40. package/detectOther.d.ts +0 -2
  41. package/detectOther.js +0 -1
  42. package/index.d.ts +0 -1
  43. package/index.js +0 -2
  44. package/package.json.new +0 -315
  45. package/packageInfo.d.ts +0 -6
  46. package/packageInfo.js +0 -1
  47. package/root.d.ts +0 -2
  48. package/root.js +0 -2
  49. package/rootJs/Clazz.d.ts +0 -18
  50. package/rootJs/Clazz.js +0 -32
  51. package/rootJs/Jsx.d.ts +0 -5
  52. package/rootJs/Jsx.js +0 -13
  53. package/rootJs/JsxChild.d.ts +0 -9
  54. package/rootJs/JsxChild.js +0 -6
  55. package/rootJs/augmented.d.ts +0 -8
  56. package/rootJs/augmented.js +0 -2
  57. package/rootJs/dynamic.d.mts +0 -8
  58. package/rootJs/dynamic.mjs +0 -13
  59. package/rootJs/index.d.ts +0 -19
  60. package/rootJs/index.js +0 -39
  61. package/rootJs/testJson.json +0 -5
  62. package/rootStatic/zagros.svg +0 -1
  63. package/rootTests.d.ts +0 -2
  64. package/rootTests.js +0 -41
  65. package/types.d.ts +0 -2
  66. package/types.js +0 -1
package/cjs/rootTests.js DELETED
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.runTests = runTests;
4
- function runTests({ Clazz, TEST_PURE, bigIntExp, dynamic, jsOpExp, json }) {
5
- describe('Clazz', () => {
6
- it('has staticProperty', () => {
7
- expect(Clazz.staticProperty).toBe('foobar');
8
- });
9
- it('creates an instance with get/set', () => {
10
- const c = new Clazz(456);
11
- expect(c.something).toBe(123_456_789 & 456);
12
- c.setSomething(123);
13
- expect(c.something).toBe(123 & 456);
14
- });
15
- });
16
- describe('TEST_PURE', () => {
17
- it('should have the correct value', () => {
18
- expect(TEST_PURE).toBe('testRoot');
19
- });
20
- });
21
- describe('dynamic()', () => {
22
- it('should allow dynamic import usage', async () => {
23
- expect(await dynamic(5, 37)).toBe(42);
24
- });
25
- });
26
- describe('bigIntExp()', () => {
27
- it('should return the correct value', () => {
28
- expect(bigIntExp()).toBe(123456789n * 137858491849n);
29
- });
30
- });
31
- describe('jsOpExp', () => {
32
- it('handles 0 ?? 42 correctly', () => {
33
- expect(jsOpExp(0)).toBe(0);
34
- });
35
- it('handles undefined ?? 42 correctly', () => {
36
- expect(jsOpExp()).toBe(42);
37
- });
38
- });
39
- describe('json()', () => {
40
- it('should return the correct value', () => {
41
- expect(json()).toBe('works');
42
- });
43
- });
44
- }
package/cjs/sample.d.ts DELETED
@@ -1 +0,0 @@
1
- export let foo: string;
package/cjs/sample.js DELETED
@@ -1,4 +0,0 @@
1
- // Copyright 2017-2025 @pezkuwi/dev authors & contributors
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- module.exports = { foo: 'bar' };
package/cjs/types.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export type EchoString = string;
2
- export type BlahType = number;
package/cjs/types.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/detectOther.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare const _default: never[];
2
- export default _default;
package/detectOther.js DELETED
@@ -1 +0,0 @@
1
- export default [];
package/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
package/index.js DELETED
@@ -1,2 +0,0 @@
1
- throw new Error('@pezkuwi/dev is not meant to be imported via root. Rather if provides a set of shared dependencies, a collection of scripts, base configs and some loaders accessed via the scripts. It is only meant to be used as a shared resource by all @pezkuwi/* projects');
2
- export {};
package/package.json.new DELETED
@@ -1,315 +0,0 @@
1
- {
2
- "name": "@pezkuwi/dev",
3
- "version": "0.84.3",
4
- "main": "./cjs/index.js",
5
- "exports": {
6
- "./cjs/package.json": "./cjs/package.json",
7
- "./cjs/*": "./cjs/*.js",
8
- ".": {
9
- "module": {
10
- "types": "./index.d.ts",
11
- "default": "./index.js"
12
- },
13
- "require": {
14
- "types": "./cjs/index.d.ts",
15
- "default": "./cjs/index.js"
16
- },
17
- "default": {
18
- "types": "./index.d.ts",
19
- "default": "./index.js"
20
- }
21
- },
22
- "./config/eslint": "./config/eslint.js",
23
- "./config/eslint.rules": "./config/eslint.rules.js",
24
- "./config/prettier.cjs": "./config/prettier.cjs",
25
- "./config/prettier": "./config/prettier.cjs",
26
- "./config/rollup": "./config/rollup.js",
27
- "./config/tsconfig.json": "./config/tsconfig.json",
28
- "./config/typedoc.cjs": "./config/typedoc.cjs",
29
- "./config/typedoc": "./config/typedoc.cjs",
30
- "./detectOther": {
31
- "module": {
32
- "types": "./detectOther.d.ts",
33
- "default": "./detectOther.js"
34
- },
35
- "require": {
36
- "types": "./cjs/detectOther.d.ts",
37
- "default": "./cjs/detectOther.js"
38
- },
39
- "default": {
40
- "types": "./detectOther.d.ts",
41
- "default": "./detectOther.js"
42
- }
43
- },
44
- "./package.json": {
45
- "require": "./cjs/package.json",
46
- "default": "./package.json"
47
- },
48
- "./packageInfo.js": {
49
- "module": {
50
- "types": "./packageInfo.d.ts",
51
- "default": "./packageInfo.js"
52
- },
53
- "require": {
54
- "types": "./cjs/packageInfo.d.ts",
55
- "default": "./cjs/packageInfo.js"
56
- },
57
- "default": {
58
- "types": "./packageInfo.d.ts",
59
- "default": "./packageInfo.js"
60
- }
61
- },
62
- "./packageInfo": {
63
- "module": {
64
- "types": "./packageInfo.d.ts",
65
- "default": "./packageInfo.js"
66
- },
67
- "require": {
68
- "types": "./cjs/packageInfo.d.ts",
69
- "default": "./cjs/packageInfo.js"
70
- },
71
- "default": {
72
- "types": "./packageInfo.d.ts",
73
- "default": "./packageInfo.js"
74
- }
75
- },
76
- "./root": {
77
- "module": {
78
- "types": "./root.d.ts",
79
- "default": "./root.js"
80
- },
81
- "require": {
82
- "types": "./cjs/root.d.ts",
83
- "default": "./cjs/root.js"
84
- },
85
- "default": {
86
- "types": "./root.d.ts",
87
- "default": "./root.js"
88
- }
89
- },
90
- "./rootJs": {
91
- "module": {
92
- "types": "./rootJs/index.d.ts",
93
- "default": "./rootJs/index.js"
94
- },
95
- "require": {
96
- "types": "./cjs/rootJs/index.d.ts",
97
- "default": "./cjs/rootJs/index.js"
98
- },
99
- "default": {
100
- "types": "./rootJs/index.d.ts",
101
- "default": "./rootJs/index.js"
102
- }
103
- },
104
- "./rootJs/augmented": {
105
- "module": {
106
- "types": "./rootJs/augmented.d.ts",
107
- "default": "./rootJs/augmented.js"
108
- },
109
- "require": {
110
- "types": "./cjs/rootJs/augmented.d.ts",
111
- "default": "./cjs/rootJs/augmented.js"
112
- },
113
- "default": {
114
- "types": "./rootJs/augmented.d.ts",
115
- "default": "./rootJs/augmented.js"
116
- }
117
- },
118
- "./rootJs/Clazz": {
119
- "module": {
120
- "types": "./rootJs/Clazz.d.ts",
121
- "default": "./rootJs/Clazz.js"
122
- },
123
- "require": {
124
- "types": "./cjs/rootJs/Clazz.d.ts",
125
- "default": "./cjs/rootJs/Clazz.js"
126
- },
127
- "default": {
128
- "types": "./rootJs/Clazz.d.ts",
129
- "default": "./rootJs/Clazz.js"
130
- }
131
- },
132
- "./rootJs/dynamic.d.mts": "./rootJs/dynamic.d.mts",
133
- "./rootJs/dynamic.mjs": "./rootJs/dynamic.mjs",
134
- "./rootJs/dynamic": "./rootJs/dynamic.mjs",
135
- "./rootJs/Jsx": {
136
- "module": {
137
- "types": "./rootJs/Jsx.d.ts",
138
- "default": "./rootJs/Jsx.js"
139
- },
140
- "require": {
141
- "types": "./cjs/rootJs/Jsx.d.ts",
142
- "default": "./cjs/rootJs/Jsx.js"
143
- },
144
- "default": {
145
- "types": "./rootJs/Jsx.d.ts",
146
- "default": "./rootJs/Jsx.js"
147
- }
148
- },
149
- "./rootJs/JsxChild": {
150
- "module": {
151
- "types": "./rootJs/JsxChild.d.ts",
152
- "default": "./rootJs/JsxChild.js"
153
- },
154
- "require": {
155
- "types": "./cjs/rootJs/JsxChild.d.ts",
156
- "default": "./cjs/rootJs/JsxChild.js"
157
- },
158
- "default": {
159
- "types": "./rootJs/JsxChild.d.ts",
160
- "default": "./rootJs/JsxChild.js"
161
- }
162
- },
163
- "./rootJs/testJson.json": "./rootJs/testJson.json",
164
- "./rootStatic/kusama.svg": "./rootStatic/kusama.svg",
165
- "./rootTests": {
166
- "module": {
167
- "types": "./rootTests.d.ts",
168
- "default": "./rootTests.js"
169
- },
170
- "require": {
171
- "types": "./cjs/rootTests.d.ts",
172
- "default": "./cjs/rootTests.js"
173
- },
174
- "default": {
175
- "types": "./rootTests.d.ts",
176
- "default": "./rootTests.js"
177
- }
178
- },
179
- "./scripts/polkadot-ci-ghact-build.mjs": "./scripts/polkadot-ci-ghact-build.mjs",
180
- "./scripts/polkadot-ci-ghact-build": "./scripts/polkadot-ci-ghact-build.mjs",
181
- "./scripts/polkadot-ci-ghact-docs.mjs": "./scripts/polkadot-ci-ghact-docs.mjs",
182
- "./scripts/polkadot-ci-ghact-docs": "./scripts/polkadot-ci-ghact-docs.mjs",
183
- "./scripts/polkadot-ci-ghpages-force.mjs": "./scripts/polkadot-ci-ghpages-force.mjs",
184
- "./scripts/polkadot-ci-ghpages-force": "./scripts/polkadot-ci-ghpages-force.mjs",
185
- "./scripts/polkadot-dev-build-docs.mjs": "./scripts/polkadot-dev-build-docs.mjs",
186
- "./scripts/polkadot-dev-build-docs": "./scripts/polkadot-dev-build-docs.mjs",
187
- "./scripts/polkadot-dev-build-ts.mjs": "./scripts/polkadot-dev-build-ts.mjs",
188
- "./scripts/polkadot-dev-build-ts": "./scripts/polkadot-dev-build-ts.mjs",
189
- "./scripts/polkadot-dev-circular.mjs": "./scripts/polkadot-dev-circular.mjs",
190
- "./scripts/polkadot-dev-circular": "./scripts/polkadot-dev-circular.mjs",
191
- "./scripts/polkadot-dev-clean-build.mjs": "./scripts/polkadot-dev-clean-build.mjs",
192
- "./scripts/polkadot-dev-clean-build": "./scripts/polkadot-dev-clean-build.mjs",
193
- "./scripts/polkadot-dev-contrib.mjs": "./scripts/polkadot-dev-contrib.mjs",
194
- "./scripts/polkadot-dev-contrib": "./scripts/polkadot-dev-contrib.mjs",
195
- "./scripts/polkadot-dev-copy-dir.mjs": "./scripts/polkadot-dev-copy-dir.mjs",
196
- "./scripts/polkadot-dev-copy-dir": "./scripts/polkadot-dev-copy-dir.mjs",
197
- "./scripts/polkadot-dev-copy-to.mjs": "./scripts/polkadot-dev-copy-to.mjs",
198
- "./scripts/polkadot-dev-copy-to": "./scripts/polkadot-dev-copy-to.mjs",
199
- "./scripts/polkadot-dev-deno-map.mjs": "./scripts/polkadot-dev-deno-map.mjs",
200
- "./scripts/polkadot-dev-deno-map": "./scripts/polkadot-dev-deno-map.mjs",
201
- "./scripts/polkadot-dev-run-lint.mjs": "./scripts/polkadot-dev-run-lint.mjs",
202
- "./scripts/polkadot-dev-run-lint": "./scripts/polkadot-dev-run-lint.mjs",
203
- "./scripts/polkadot-dev-run-node-ts.mjs": "./scripts/polkadot-dev-run-node-ts.mjs",
204
- "./scripts/polkadot-dev-run-node-ts": "./scripts/polkadot-dev-run-node-ts.mjs",
205
- "./scripts/polkadot-dev-run-test.mjs": "./scripts/polkadot-dev-run-test.mjs",
206
- "./scripts/polkadot-dev-run-test": "./scripts/polkadot-dev-run-test.mjs",
207
- "./scripts/polkadot-dev-version.mjs": "./scripts/polkadot-dev-version.mjs",
208
- "./scripts/polkadot-dev-version": "./scripts/polkadot-dev-version.mjs",
209
- "./scripts/polkadot-dev-yarn-only.mjs": "./scripts/polkadot-dev-yarn-only.mjs",
210
- "./scripts/polkadot-dev-yarn-only": "./scripts/polkadot-dev-yarn-only.mjs",
211
- "./scripts/polkadot-exec-eslint.mjs": "./scripts/polkadot-exec-eslint.mjs",
212
- "./scripts/polkadot-exec-eslint": "./scripts/polkadot-exec-eslint.mjs",
213
- "./scripts/polkadot-exec-ghpages.mjs": "./scripts/polkadot-exec-ghpages.mjs",
214
- "./scripts/polkadot-exec-ghpages": "./scripts/polkadot-exec-ghpages.mjs",
215
- "./scripts/polkadot-exec-ghrelease.mjs": "./scripts/polkadot-exec-ghrelease.mjs",
216
- "./scripts/polkadot-exec-ghrelease": "./scripts/polkadot-exec-ghrelease.mjs",
217
- "./scripts/polkadot-exec-node-test.mjs": "./scripts/polkadot-exec-node-test.mjs",
218
- "./scripts/polkadot-exec-node-test": "./scripts/polkadot-exec-node-test.mjs",
219
- "./scripts/polkadot-exec-rollup.mjs": "./scripts/polkadot-exec-rollup.mjs",
220
- "./scripts/polkadot-exec-rollup": "./scripts/polkadot-exec-rollup.mjs",
221
- "./scripts/polkadot-exec-tsc.mjs": "./scripts/polkadot-exec-tsc.mjs",
222
- "./scripts/polkadot-exec-tsc": "./scripts/polkadot-exec-tsc.mjs",
223
- "./scripts/polkadot-exec-webpack.mjs": "./scripts/polkadot-exec-webpack.mjs",
224
- "./scripts/polkadot-exec-webpack": "./scripts/polkadot-exec-webpack.mjs",
225
- "./scripts/util.mjs": "./scripts/util.mjs",
226
- "./scripts/util": "./scripts/util.mjs",
227
- "./types": {
228
- "module": {
229
- "types": "./types.d.ts",
230
- "default": "./types.js"
231
- },
232
- "require": {
233
- "types": "./cjs/types.d.ts",
234
- "default": "./cjs/types.js"
235
- },
236
- "default": {
237
- "types": "./types.d.ts",
238
- "default": "./types.js"
239
- }
240
- }
241
- },
242
- "bin": {
243
- "polkadot-ci-ghact-build": "./scripts/polkadot-ci-ghact-build.mjs",
244
- "polkadot-ci-ghact-docs": "./scripts/polkadot-ci-ghact-docs.mjs",
245
- "polkadot-ci-ghpages-force": "./scripts/polkadot-ci-ghpages-force.mjs",
246
- "polkadot-dev-build-docs": "./scripts/polkadot-dev-build-docs.mjs",
247
- "polkadot-dev-build-ts": "./scripts/polkadot-dev-build-ts.mjs",
248
- "polkadot-dev-circular": "./scripts/polkadot-dev-circular.mjs",
249
- "polkadot-dev-clean-build": "./scripts/polkadot-dev-clean-build.mjs",
250
- "polkadot-dev-contrib": "./scripts/polkadot-dev-contrib.mjs",
251
- "polkadot-dev-copy-dir": "./scripts/polkadot-dev-copy-dir.mjs",
252
- "polkadot-dev-copy-to": "./scripts/polkadot-dev-copy-to.mjs",
253
- "polkadot-dev-deno-map": "./scripts/polkadot-dev-deno-map.mjs",
254
- "polkadot-dev-run-lint": "./scripts/polkadot-dev-run-lint.mjs",
255
- "polkadot-dev-run-node-ts": "./scripts/polkadot-dev-run-node-ts.mjs",
256
- "polkadot-dev-run-test": "./scripts/polkadot-dev-run-test.mjs",
257
- "polkadot-dev-version": "./scripts/polkadot-dev-version.mjs",
258
- "polkadot-dev-yarn-only": "./scripts/polkadot-dev-yarn-only.mjs",
259
- "polkadot-exec-eslint": "./scripts/polkadot-exec-eslint.mjs",
260
- "polkadot-exec-ghpages": "./scripts/polkadot-exec-ghpages.mjs",
261
- "polkadot-exec-ghrelease": "./scripts/polkadot-exec-ghrelease.mjs",
262
- "polkadot-exec-node-test": "./scripts/polkadot-exec-node-test.mjs",
263
- "polkadot-exec-rollup": "./scripts/polkadot-exec-rollup.mjs",
264
- "polkadot-exec-tsc": "./scripts/polkadot-exec-tsc.mjs",
265
- "polkadot-exec-webpack": "./scripts/polkadot-exec-webpack.mjs"
266
- },
267
- "sideEffects": false,
268
- "type": "module",
269
- "dependencies": {
270
- "@eslint/js": "^8.56.0",
271
- "@polkadot/dev-test": "^0.83.3",
272
- "@polkadot/dev-ts": "^0.83.3",
273
- "@rollup/plugin-alias": "^5.1.1",
274
- "@rollup/plugin-commonjs": "^25.0.8",
275
- "@rollup/plugin-dynamic-import-vars": "^2.1.5",
276
- "@rollup/plugin-inject": "^5.0.5",
277
- "@rollup/plugin-json": "^6.1.0",
278
- "@rollup/plugin-node-resolve": "^15.3.1",
279
- "@tsconfig/strictest": "^2.0.2",
280
- "@typescript-eslint/eslint-plugin": "^6.19.1",
281
- "@typescript-eslint/parser": "^6.19.1",
282
- "eslint": "^8.56.0",
283
- "eslint-config-standard": "^17.1.0",
284
- "eslint-import-resolver-node": "^0.3.9",
285
- "eslint-import-resolver-typescript": "^3.6.1",
286
- "eslint-plugin-deprecation": "^2.0.0",
287
- "eslint-plugin-header": "^3.1.1",
288
- "eslint-plugin-import": "^2.29.1",
289
- "eslint-plugin-import-newlines": "^1.3.4",
290
- "eslint-plugin-jest": "^27.6.3",
291
- "eslint-plugin-n": "^16.6.2",
292
- "eslint-plugin-promise": "^6.1.1",
293
- "eslint-plugin-react": "^7.33.2",
294
- "eslint-plugin-react-hooks": "^4.6.0",
295
- "eslint-plugin-simple-import-sort": "^10.0.0",
296
- "eslint-plugin-sort-destructure-keys": "^1.5.0",
297
- "espree": "^9.6.1",
298
- "gh-pages": "^6.1.1",
299
- "gh-release": "^7.0.2",
300
- "globals": "^13.24.0",
301
- "json5": "^2.2.3",
302
- "madge": "^6.1.0",
303
- "rollup": "^4.9.6",
304
- "rollup-plugin-cleanup": "^3.2.1",
305
- "tslib": "^2.7.0",
306
- "typescript": "^5.5.4",
307
- "webpack": "^5.89.0",
308
- "webpack-cli": "^5.1.4",
309
- "webpack-dev-server": "^4.15.1",
310
- "webpack-merge": "^5.10.0",
311
- "webpack-subresource-integrity": "^5.2.0-rc.1",
312
- "yargs": "^17.7.2"
313
- },
314
- "peerDependencies": null
315
- }
package/packageInfo.d.ts DELETED
@@ -1,6 +0,0 @@
1
- export declare const packageInfo: {
2
- name: string;
3
- path: string;
4
- type: string;
5
- version: string;
6
- };
package/packageInfo.js DELETED
@@ -1 +0,0 @@
1
- export const packageInfo = { name: '@pezkuwi/dev', 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: '0.83.3' };
package/root.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './rootJs/index.js';
2
- export declare const TEST_PURE = "testRoot";
package/root.js DELETED
@@ -1,2 +0,0 @@
1
- export * from './rootJs/index.js';
2
- export const TEST_PURE = /*#__PURE__*/ 'testRoot';
package/rootJs/Clazz.d.ts DELETED
@@ -1,18 +0,0 @@
1
- export declare class Clazz {
2
- #private;
3
- readonly and: number;
4
- static staticProperty: string;
5
- static staticFunction: () => string | null;
6
- /**
7
- * @param and the number we should and with
8
- */
9
- constructor(and: number);
10
- get something(): number;
11
- doAsync(): Promise<boolean>;
12
- /**
13
- * @description Sets something to something
14
- * @param something The addition
15
- */
16
- setSomething: (something?: number) => number;
17
- toString(): string;
18
- }
package/rootJs/Clazz.js DELETED
@@ -1,32 +0,0 @@
1
- export class Clazz {
2
- #something = 123_456_789;
3
- and;
4
- static staticProperty = 'foobar';
5
- static staticFunction = () => Clazz.staticProperty;
6
- /**
7
- * @param and the number we should and with
8
- */
9
- constructor(and) {
10
- this.and = and;
11
- this.#something = this.#something & and;
12
- }
13
- get something() {
14
- return this.#something;
15
- }
16
- async doAsync() {
17
- const res = await new Promise((resolve) => resolve(true));
18
- console.log(res);
19
- return res;
20
- }
21
- /**
22
- * @description Sets something to something
23
- * @param something The addition
24
- */
25
- setSomething = (something) => {
26
- this.#something = (something ?? 123_456) & this.and;
27
- return this.#something;
28
- };
29
- toString() {
30
- return `something=${this.#something}`;
31
- }
32
- }
package/rootJs/Jsx.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import type { Props } from './JsxChild.js';
2
- import React from 'react';
3
- declare function Hidden({ children, className }: Props): React.ReactElement<Props>;
4
- declare const _default: React.MemoExoticComponent<typeof Hidden>;
5
- export default _default;
package/rootJs/Jsx.js DELETED
@@ -1,13 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import React, { useCallback, useState } from 'react';
3
- import { styled } from 'styled-components';
4
- import Child from './JsxChild.js';
5
- function Hidden({ children, className }) {
6
- const [isMessageVisible, setMessageVisibility] = useState(false);
7
- const onShow = useCallback((e) => setMessageVisibility(e.target.checked), []);
8
- return (_jsxs(StyledDiv, { className: className, children: [_jsx("label", { htmlFor: 'toggle', children: "Show Message" }), _jsx("input", { checked: isMessageVisible, id: 'toggle', onChange: onShow, type: 'checkbox' }), isMessageVisible && (_jsxs(_Fragment, { children: [children, _jsx(Child, { label: 'hello' })] }))] }));
9
- }
10
- const StyledDiv = styled.div `
11
- background: red;
12
- `;
13
- export default React.memo(Hidden);
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- export interface Props {
3
- children?: React.ReactNode;
4
- className?: string;
5
- label?: string;
6
- }
7
- declare function Child({ children, className, label }: Props): React.ReactElement<Props>;
8
- declare const _default: React.MemoExoticComponent<typeof Child>;
9
- export default _default;
@@ -1,6 +0,0 @@
1
- import { jsxs as _jsxs } from "react/jsx-runtime";
2
- import React from 'react';
3
- function Child({ children, className, label }) {
4
- return (_jsxs("div", { className: className, children: [label || '', children] }));
5
- }
6
- export default React.memo(Child);
@@ -1,8 +0,0 @@
1
- /** This tests augmentation outputs, e.g. as used in the pezkuwi-js/api */
2
- export interface Something {
3
- bar: string;
4
- foo: string;
5
- }
6
- declare module '@pezkuwi/dev/types' {
7
- const blah: string;
8
- }
@@ -1,2 +0,0 @@
1
- /* eslint-disable */
2
- export {};
@@ -1,8 +0,0 @@
1
- /**
2
- * Returns the sum of 2 numbers
3
- *
4
- * @param {number} a
5
- * @param {number} b
6
- * @returns {number}
7
- */
8
- export function sum(a: number, b: number): number;
@@ -1,13 +0,0 @@
1
- // Copyright 2017-2025 @pezkuwi/dev authors & contributors
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- /**
5
- * Returns the sum of 2 numbers
6
- *
7
- * @param {number} a
8
- * @param {number} b
9
- * @returns {number}
10
- */
11
- export function sum (a, b) {
12
- return a + b;
13
- }
package/rootJs/index.d.ts DELETED
@@ -1,19 +0,0 @@
1
- /** This should appear as-is in the output with: 1. extension added, 2. augmented.d.ts correct */
2
- import './augmented.js';
3
- /** Double double work, i.e. re-exports */
4
- export { Clazz } from './Clazz.js';
5
- /** Function to ensure that BigInt does not have the Babel Math.pow() transform */
6
- export declare function bigIntExp(): bigint;
7
- /** Function to ensure that dynamic imports work */
8
- export declare function dynamic(a: number, b: number): Promise<number>;
9
- /** Function to ensure we have json correctly imported */
10
- export declare function json(): string;
11
- /** Check support for the ?? operator */
12
- export declare function jsOpExp(a?: number): number;
13
- /** This is an actual check to ensure PURE is all-happy */
14
- export declare const pureOpExp: number;
15
- declare const fooA = 1;
16
- declare const fooB = 2;
17
- declare const fooC = 3;
18
- declare const fooD = 4;
19
- export { fooA, fooB, fooC, fooD };
package/rootJs/index.js DELETED
@@ -1,39 +0,0 @@
1
- /** This should appear as-is in the output with: 1. extension added, 2. augmented.d.ts correct */
2
- import './augmented.js';
3
- /** This import should appear as-in in the ouput (cjs without asserts) */
4
- import testJson from '@pezkuwi/dev/rootJs/testJson.json' assert { type: 'json' };
5
- /** Double double work, i.e. re-exports */
6
- export { Clazz } from './Clazz.js';
7
- /** Function to ensure that BigInt does not have the Babel Math.pow() transform */
8
- export function bigIntExp() {
9
- // 123_456n * 137_858_491_849n
10
- return 123456789n * (13n ** 10n);
11
- }
12
- /** Function to ensure that dynamic imports work */
13
- export async function dynamic(a, b) {
14
- // NOTE we go via this path so it points to the same location in both ESM
15
- // and CJS output (a './dynamic' import would be different otherwise)
16
- const { sum } = await import('@pezkuwi/dev/rootJs/dynamic.mjs');
17
- // eslint-disable-next-line @typescript-eslint/no-unsafe-return
18
- return sum(a, b);
19
- }
20
- /** Function to ensure we have json correctly imported */
21
- export function json() {
22
- return testJson.test.json;
23
- }
24
- /** Check support for the ?? operator */
25
- export function jsOpExp(a) {
26
- const defaults = {
27
- a: 42,
28
- b: 43,
29
- c: 44
30
- };
31
- return a ?? defaults.a;
32
- }
33
- /** This is an actual check to ensure PURE is all-happy */
34
- export const pureOpExp = /*#__PURE__*/ jsOpExp();
35
- const fooA = 1;
36
- const fooB = 2;
37
- const fooC = 3;
38
- const fooD = 4;
39
- export { fooA, fooB, fooC, fooD };
@@ -1,5 +0,0 @@
1
- {
2
- "test": {
3
- "json": "works"
4
- }
5
- }
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 441 441"><defs><style>.cls-1{stroke:#000;stroke-miterlimit:10;}.cls-2{fill:#fff;}</style></defs><title>kusama-ksm-logo</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><rect class="cls-1" x="0.5" y="0.5" width="440" height="440"/><path class="cls-2" d="M373.6,127.4c-5.2-4.1-11.4-9.7-22.7-11.1-10.6-1.4-21.4,5.7-28.7,10.4s-21.1,18.5-26.8,22.7-20.3,8.1-43.8,22.2-115.7,73.3-115.7,73.3l24,.3-107,55.1H63.6L48.2,312s13.6,3.6,25-3.6v3.3s127.4-50.2,152-37.2l-15,4.4c1.3,0,25.5,1.6,25.5,1.6a34.34,34.34,0,0,0,15.4,24.8c14.6,9.6,14.9,14.9,14.9,14.9s-7.6,3.1-7.6,7c0,0,11.2-3.4,21.6-3.1a82.64,82.64,0,0,1,19.5,3.1s-.8-4.2-10.9-7-20.1-13.8-25-19.8a28,28,0,0,1-4.1-27.4c3.5-9.1,15.7-14.1,40.9-27.1,29.7-15.4,36.5-26.8,40.7-35.7s10.4-26.6,13.9-34.9c4.4-10.7,9.8-16.4,14.3-19.8s24.5-10.9,24.5-10.9S378.5,131.3,373.6,127.4Z"/></g></g></svg>
package/rootTests.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import type * as testRoot from './root.js';
2
- export declare function runTests({ Clazz, TEST_PURE, bigIntExp, dynamic, jsOpExp, json }: typeof testRoot): void;