@push.rocks/smartrust 1.1.0

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 (40) hide show
  1. package/.gitea/workflows/default_nottags.yaml +66 -0
  2. package/.gitea/workflows/default_tags.yaml +124 -0
  3. package/.vscode/launch.json +11 -0
  4. package/.vscode/settings.json +26 -0
  5. package/changelog.md +22 -0
  6. package/dist_ts/00_commitinfo_data.d.ts +8 -0
  7. package/dist_ts/00_commitinfo_data.js +9 -0
  8. package/dist_ts/classes.rustbinarylocator.d.ts +28 -0
  9. package/dist_ts/classes.rustbinarylocator.js +126 -0
  10. package/dist_ts/classes.rustbridge.d.ts +39 -0
  11. package/dist_ts/classes.rustbridge.js +231 -0
  12. package/dist_ts/index.d.ts +3 -0
  13. package/dist_ts/index.js +4 -0
  14. package/dist_ts/interfaces/config.d.ts +40 -0
  15. package/dist_ts/interfaces/config.js +2 -0
  16. package/dist_ts/interfaces/index.d.ts +2 -0
  17. package/dist_ts/interfaces/index.js +3 -0
  18. package/dist_ts/interfaces/ipc.d.ts +36 -0
  19. package/dist_ts/interfaces/ipc.js +2 -0
  20. package/dist_ts/paths.d.ts +1 -0
  21. package/dist_ts/paths.js +3 -0
  22. package/dist_ts/plugins.d.ts +8 -0
  23. package/dist_ts/plugins.js +11 -0
  24. package/npmextra.json +24 -0
  25. package/package.json +25 -0
  26. package/readme.md +5 -0
  27. package/test/helpers/mock-rust-binary.mjs +62 -0
  28. package/test/test.rustbinarylocator.node.ts +98 -0
  29. package/test/test.rustbridge.node.ts +191 -0
  30. package/test/test.ts +12 -0
  31. package/ts/00_commitinfo_data.ts +8 -0
  32. package/ts/classes.rustbinarylocator.ts +140 -0
  33. package/ts/classes.rustbridge.ts +256 -0
  34. package/ts/index.ts +3 -0
  35. package/ts/interfaces/config.ts +42 -0
  36. package/ts/interfaces/index.ts +2 -0
  37. package/ts/interfaces/ipc.ts +40 -0
  38. package/ts/paths.ts +5 -0
  39. package/ts/plugins.ts +13 -0
  40. package/tsconfig.json +12 -0
package/ts/paths.ts ADDED
@@ -0,0 +1,5 @@
1
+ import * as plugins from './plugins.js';
2
+ export const packageDir = plugins.path.join(
3
+ plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url),
4
+ '../'
5
+ );
package/ts/plugins.ts ADDED
@@ -0,0 +1,13 @@
1
+ // native scope
2
+ import * as path from 'path';
3
+ import * as fs from 'fs';
4
+ import * as childProcess from 'child_process';
5
+ import * as readline from 'readline';
6
+ import * as events from 'events';
7
+
8
+ export { path, fs, childProcess, readline, events };
9
+
10
+ // @push.rocks scope
11
+ import * as smartpath from '@push.rocks/smartpath';
12
+
13
+ export { smartpath };
package/tsconfig.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "NodeNext",
5
+ "moduleResolution": "NodeNext",
6
+ "esModuleInterop": true,
7
+ "verbatimModuleSyntax": true
8
+ },
9
+ "exclude": [
10
+ "dist_*/**/*.d.ts"
11
+ ]
12
+ }