runtime-type-inspector 2.0.3 → 3.2.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.
- package/README.md +30 -2
- package/package.json +23 -13
- package/build/rti-transpiler.cjs +0 -2359
- package/build/rti-transpiler.mjs +0 -1979
package/README.md
CHANGED
|
@@ -34,8 +34,10 @@ https://www.youtube.com/watch?v=xOp3YWU6M1g
|
|
|
34
34
|
|
|
35
35
|
# Installation
|
|
36
36
|
|
|
37
|
+
Please take my two Pull Requests for [Transformers.js](https://github.com/xenova/transformers.js/pull/409) (using Webpack) and [PlayCanvas](https://github.com/playcanvas/engine/pull/5817) (using Rollup) as example.
|
|
38
|
+
|
|
37
39
|
```
|
|
38
|
-
npm install runtime-type-inspector
|
|
40
|
+
npm install @runtime-type-inspector/transpiler
|
|
39
41
|
```
|
|
40
42
|
|
|
41
43
|
Live demo: https://runtimetypeinspector.org/
|
|
@@ -44,4 +46,30 @@ Thank you for reading and testing! You can also open DevTools and run:
|
|
|
44
46
|
|
|
45
47
|
```js
|
|
46
48
|
console.log(rtiTranspiler)
|
|
47
|
-
```
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
# Available NPM packages
|
|
52
|
+
|
|
53
|
+
- https://www.npmjs.com/package/@runtime-type-inspector/runtime
|
|
54
|
+
- https://www.npmjs.com/package/@runtime-type-inspector/transpiler
|
|
55
|
+
- https://www.npmjs.com/package/@runtime-type-inspector/plugin-parcel1
|
|
56
|
+
- https://www.npmjs.com/package/@runtime-type-inspector/parcel-transformer (Parcel v2)
|
|
57
|
+
- https://www.npmjs.com/package/@runtime-type-inspector/plugin-rollup
|
|
58
|
+
- https://www.npmjs.com/package/@runtime-type-inspector/plugin-webpack (version independent)
|
|
59
|
+
- https://www.npmjs.com/package/@runtime-type-inspector/plugin-webpack4
|
|
60
|
+
- https://www.npmjs.com/package/@runtime-type-inspector/plugin-webpack5
|
|
61
|
+
|
|
62
|
+
# Acknowledgements
|
|
63
|
+
|
|
64
|
+
We are incredibly grateful for the support and contribution of our funders, [Sovereign Tech Fund](https://www.sovereigntechfund.de/). We would like to thank them for their support and contribution towards making this project possible. Their partnership and generous funding have been instrumental in the success and realization of [RuntimeTypeInspector.js](https://github.com/kungfooman/RuntimeTypeInspector.js).
|
|
65
|
+
|
|
66
|
+

|
|
67
|
+

|
|
68
|
+
|
|
69
|
+
> Open source, a treasure trove for all to embrace,
|
|
70
|
+
>
|
|
71
|
+
> But its potential is limited, without financial grace.
|
|
72
|
+
>
|
|
73
|
+
> Let's urge our governments, to invest in its light,
|
|
74
|
+
>
|
|
75
|
+
> For a resilient digital infrastructure, shining bright.
|
package/package.json
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "runtime-type-inspector",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "3.2.3",
|
|
4
4
|
"description": "Validating JSDoc types at runtime for high-quality types - Trust is good, control is better.",
|
|
5
|
-
"main": "build/rti-transpiler.cjs",
|
|
6
|
-
"module": "build/rti-transpiler.mjs",
|
|
7
5
|
"scripts": {
|
|
8
6
|
"build": "rollup -c",
|
|
7
|
+
"watch": "rollup -c -w",
|
|
9
8
|
"build:atBabelCore": "rollup -c --environment target:atBabelCore",
|
|
10
|
-
"
|
|
9
|
+
"build:dts": "tsc src-transpiler/index.js --outDir types/transpiler --allowJs --declaration --emitDeclarationOnly --target esnext",
|
|
10
|
+
"build:types": "npm run build:dts && rollup -c --environment target:types",
|
|
11
|
+
"test": "npm run test:update && node test.js && node test_runtime.js",
|
|
12
|
+
"test:update": "node gen_tests.js > test/typechecking.json",
|
|
13
|
+
"lint": "eslint --ext .js,.mjs,.cjs src-transpiler src-runtime",
|
|
14
|
+
"docs": "jsdoc -c jsdoc.json",
|
|
15
|
+
"publish": "npm run build && node npmhelper.js"
|
|
11
16
|
},
|
|
12
17
|
"repository": {
|
|
13
18
|
"type": "git",
|
|
@@ -20,8 +25,9 @@
|
|
|
20
25
|
},
|
|
21
26
|
"type": "module",
|
|
22
27
|
"homepage": "https://github.com/kungfooman/RuntimeTypeInspector.js#readme",
|
|
28
|
+
"files": [],
|
|
23
29
|
"devDependencies": {
|
|
24
|
-
"@
|
|
30
|
+
"@playcanvas/jsdoc-template": "^1.1.2",
|
|
25
31
|
"@rollup/plugin-babel": "^6.0.3",
|
|
26
32
|
"@rollup/plugin-commonjs": "^25.0.4",
|
|
27
33
|
"@rollup/plugin-json": "^6.0.0",
|
|
@@ -29,21 +35,25 @@
|
|
|
29
35
|
"@rollup/plugin-strip": "^3.0.2",
|
|
30
36
|
"@rollup/plugin-terser": "^0.4.3",
|
|
31
37
|
"@rollup/pluginutils": "^5.0.4",
|
|
32
|
-
"
|
|
38
|
+
"catharsis": "github:xenova/catharsis",
|
|
33
39
|
"eslint": "^8.44.0",
|
|
34
40
|
"eslint-plugin-import": "^2.28.1",
|
|
35
41
|
"eslint-plugin-jsdoc": "^46.6.0",
|
|
42
|
+
"jsdoc": "^4.0.2",
|
|
43
|
+
"jsdoc-tsimport-plugin": "^1.0.5",
|
|
36
44
|
"rollup": "^3.29.0",
|
|
37
45
|
"rollup-plugin-dts": "^6.0.1",
|
|
38
46
|
"rollup-plugin-jscc": "^2.0.0",
|
|
39
47
|
"rollup-plugin-visualizer": "^5.9.2",
|
|
40
48
|
"to-fast-properties": "^4.0.0",
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"@
|
|
47
|
-
"
|
|
49
|
+
"@runtime-type-inspector/runtime": "^3.2.3",
|
|
50
|
+
"@runtime-type-inspector/transpiler": "^3.2.3",
|
|
51
|
+
"@runtime-type-inspector/plugin-parcel1": "^3.2.3",
|
|
52
|
+
"@runtime-type-inspector/parcel-transformer": "^3.2.3",
|
|
53
|
+
"@runtime-type-inspector/plugin-rollup": "^3.2.3",
|
|
54
|
+
"@runtime-type-inspector/plugin-webpack": "^3.2.3",
|
|
55
|
+
"@runtime-type-inspector/plugin-webpack4": "^3.2.3",
|
|
56
|
+
"@runtime-type-inspector/plugin-webpack5": "^3.2.3",
|
|
57
|
+
"@runtime-type-inspector/repl": "^3.2.3"
|
|
48
58
|
}
|
|
49
59
|
}
|