runtime-type-inspector 2.0.1 → 2.0.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 (55) hide show
  1. package/README.md +8 -5
  2. package/build/rti-transpiler.cjs +2359 -0
  3. package/build/rti-transpiler.mjs +1979 -0
  4. package/package.json +4 -2
  5. package/.eslintrc.js +0 -480
  6. package/jsconfig.json +0 -10
  7. package/plugin-parcel/index.mjs +0 -4
  8. package/plugin-rollup/index.mjs +0 -78
  9. package/plugin-webpack/index.mjs +0 -4
  10. package/rollup.config.mjs +0 -183
  11. package/src-runtime/assertType.mjs +0 -54
  12. package/src-runtime/createDiv.mjs +0 -69
  13. package/src-runtime/index.mjs +0 -21
  14. package/src-runtime/makeJSDoc.mjs +0 -40
  15. package/src-runtime/registerClass.mjs +0 -11
  16. package/src-runtime/registerTypedef.mjs +0 -12
  17. package/src-runtime/typecheckDiv.mjs +0 -3
  18. package/src-runtime/typecheckEvery.mjs +0 -21
  19. package/src-runtime/typecheckOptions.mjs +0 -60
  20. package/src-runtime/typecheckTable.mjs +0 -14
  21. package/src-runtime/typecheckWarn.mjs +0 -23
  22. package/src-runtime/validateArray.mjs +0 -26
  23. package/src-runtime/validateDivision.mjs +0 -31
  24. package/src-runtime/validateMap.mjs +0 -36
  25. package/src-runtime/validateNumber.mjs +0 -29
  26. package/src-runtime/validateObject.mjs +0 -43
  27. package/src-runtime/validateRecord.mjs +0 -31
  28. package/src-runtime/validateSet.mjs +0 -26
  29. package/src-runtime/validateTuple.mjs +0 -28
  30. package/src-runtime/validateType.mjs +0 -214
  31. package/src-runtime/validateTypedef.mjs +0 -18
  32. package/src-runtime/validateUnion.mjs +0 -19
  33. package/src-runtime/youCanAddABreakpointHere.mjs +0 -11
  34. package/src-transpiler/Stringifier.mjs +0 -1268
  35. package/src-transpiler/StringifierWithTypeAssertions.mjs +0 -478
  36. package/src-transpiler/addTypeChecks.mjs +0 -20
  37. package/src-transpiler/ast2json.mjs +0 -13
  38. package/src-transpiler/ast2jsonForComparison.mjs +0 -28
  39. package/src-transpiler/code2ast2code.mjs +0 -16
  40. package/src-transpiler/expandType.mjs +0 -187
  41. package/src-transpiler/expandTypeDepFree.mjs +0 -122
  42. package/src-transpiler/extractNameAndOptionality.mjs +0 -23
  43. package/src-transpiler/index.mjs +0 -13
  44. package/src-transpiler/parseJSDoc.mjs +0 -69
  45. package/src-transpiler/parseJSDocSetter.mjs +0 -16
  46. package/src-transpiler/parseJSDocTypedef.mjs +0 -69
  47. package/src-transpiler/simplifyType.mjs +0 -31
  48. package/src-transpiler/stat.mjs +0 -13
  49. package/ui/babel-core.mjs +0 -5
  50. package/ui/babel-helper-plugin-utils.mjs +0 -7
  51. package/ui/babel-parser.mjs +0 -8
  52. package/ui/babel-plugin-syntax-typescript.mjs +0 -58
  53. package/ui/importmap.js +0 -38
  54. package/ui/index.html +0 -30
  55. package/ui/index.mjs +0 -379
package/README.md CHANGED
@@ -1,8 +1,5 @@
1
1
  # `RuntimeTypeInspector.js` - your personal type-checking assistant 🕵️🐞🐛
2
2
 
3
- # Status: under construction,
4
- # preparing for first release 🚧🏗️🧰🚧
5
-
6
3
  `RuntimeTypeInspector.js` alongside `JSDoc` is a powerful tool which works in tandem with `Babel.js` and `TypeScript` to generate type-asserting JavaScript files. Assertion code is injected into debug builds to perform runtime type checking of each function and method at runtime - a step which is required beyond pure static typing to help emerge the Incident Management Lifecycle.
7
4
 
8
5
  The Incident Management Lifecycle is:
@@ -35,10 +32,16 @@ https://www.youtube.com/watch?v=xOp3YWU6M1g
35
32
 
36
33
  [![volumetric video bug fixing](https://img.youtube.com/vi/xOp3YWU6M1g/0.jpg)](https://www.youtube.com/watch?v=xOp3YWU6M1g)
37
34
 
38
- # Installation (project not published yet)
35
+ # Installation
39
36
 
40
37
  ```
41
38
  npm install runtime-type-inspector
42
39
  ```
43
40
 
44
- Live demo: https://jsdoc.killtube.org/
41
+ Live demo: https://runtimetypeinspector.org/
42
+
43
+ Thank you for reading and testing! You can also open DevTools and run:
44
+
45
+ ```js
46
+ console.log(rtiTranspiler)
47
+ ```