@proteinjs/reflection-build 1.4.1 → 1.4.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 (57) hide show
  1. package/dist/test/examples/source-repository/a/generated/index.js +1 -1
  2. package/dist/test/examples/source-repository/a/generated/index.js.map +1 -1
  3. package/dist/test/examples/source-repository/b/generated/index.js +1 -1
  4. package/dist/test/examples/source-repository/b/generated/index.js.map +1 -1
  5. package/package.json +4 -4
  6. package/test/examples/source-repository/a/dist/generated/index.js +1 -1
  7. package/test/examples/source-repository/a/dist/generated/index.js.map +1 -1
  8. package/test/examples/source-repository/a/generated/index.ts +1 -1
  9. package/test/examples/source-repository/a/node_modules/.package-lock.json +20 -16
  10. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/package.json +2 -2
  11. package/test/examples/source-repository/a/node_modules/@proteinjs/util/CHANGELOG.md +11 -0
  12. package/test/examples/source-repository/a/node_modules/@proteinjs/util/dist/src/isInstanceOf.d.ts +1 -1
  13. package/test/examples/source-repository/a/node_modules/@proteinjs/util/dist/src/isInstanceOf.js +0 -1
  14. package/test/examples/source-repository/a/node_modules/@proteinjs/util/dist/src/isInstanceOf.js.map +1 -1
  15. package/test/examples/source-repository/a/node_modules/@proteinjs/util/package.json +2 -2
  16. package/test/examples/source-repository/a/node_modules/@proteinjs/util/src/isInstanceOf.ts +1 -2
  17. package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/CHANGELOG.md +41 -0
  18. package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/dist/src/Fs.d.ts +1 -0
  19. package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/dist/src/Fs.js +52 -17
  20. package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/dist/src/Fs.js.map +1 -1
  21. package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/package.json +3 -3
  22. package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/src/Fs.ts +47 -18
  23. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/.target.mk +2 -2
  24. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/Makefile +5 -5
  25. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/Release/.deps/Release/.node.d +1 -1
  26. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/Release/.deps/Release/obj.target/fse/fsevents.o.d.raw +69 -65
  27. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/Release/.node +0 -0
  28. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/fse.target.mk +24 -21
  29. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/gyp-mac-tool +100 -106
  30. package/test/examples/source-repository/a/package-lock.json +24 -20
  31. package/test/examples/source-repository/a/package.json +4 -4
  32. package/test/examples/source-repository/b/dist/generated/index.js +1 -1
  33. package/test/examples/source-repository/b/dist/generated/index.js.map +1 -1
  34. package/test/examples/source-repository/b/generated/index.ts +1 -1
  35. package/test/examples/source-repository/b/node_modules/.package-lock.json +16 -12
  36. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/package.json +2 -2
  37. package/test/examples/source-repository/b/node_modules/@proteinjs/util/CHANGELOG.md +11 -0
  38. package/test/examples/source-repository/b/node_modules/@proteinjs/util/dist/src/isInstanceOf.d.ts +1 -1
  39. package/test/examples/source-repository/b/node_modules/@proteinjs/util/dist/src/isInstanceOf.js +0 -1
  40. package/test/examples/source-repository/b/node_modules/@proteinjs/util/dist/src/isInstanceOf.js.map +1 -1
  41. package/test/examples/source-repository/b/node_modules/@proteinjs/util/package.json +2 -2
  42. package/test/examples/source-repository/b/node_modules/@proteinjs/util/src/isInstanceOf.ts +1 -2
  43. package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/CHANGELOG.md +41 -0
  44. package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/dist/src/Fs.d.ts +1 -0
  45. package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/dist/src/Fs.js +52 -17
  46. package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/dist/src/Fs.js.map +1 -1
  47. package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/package.json +3 -3
  48. package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/src/Fs.ts +47 -18
  49. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/.target.mk +2 -2
  50. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/Makefile +5 -5
  51. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/Release/.deps/Release/.node.d +1 -1
  52. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/Release/.deps/Release/obj.target/fse/fsevents.o.d.raw +69 -65
  53. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/Release/.node +0 -0
  54. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/fse.target.mk +24 -21
  55. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/gyp-mac-tool +100 -106
  56. package/test/examples/source-repository/b/package-lock.json +20 -16
  57. package/test/examples/source-repository/b/package.json +4 -4
@@ -12,7 +12,7 @@ import 'jsesc';
12
12
 
13
13
  /** Generate Source Graph */
14
14
 
15
- const sourceGraph = "{\"options\":{\"directed\":true,\"multigraph\":false,\"compound\":false},\"nodes\":[{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignType\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"LoadableForeignType\",\"filePath\":\"/Users/brentbahry/repos/n3xa/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/LoadableForeignType\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"typeParameters\":[],\"directParents\":null},{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"{ z: number }\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/{ z: number }\",\"typeParameters\":[],\"directParents\":null}],\"sourceType\":1}},{\"v\":\"@proteinjs/reflection/Loadable\"},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignType\",\"filePath\":\"/Users/brentbahry/repos/n3xa/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"typeParameters\":[],\"directParents\":null},{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"{ z: number }\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/{ z: number }\",\"typeParameters\":[],\"directParents\":null}],\"sourceType\":1}},{\"v\":\"@proteinjs/reflection-build-test-b/implementsOptionalLoadableForeignType\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"implementsOptionalLoadableForeignType\",\"filePath\":\"/Users/brentbahry/repos/n3xa/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/implementsOptionalLoadableForeignType\",\"type\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignType\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignType\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"typeParameters\":[],\"directParents\":null}]},\"isExported\":true,\"isConst\":true,\"sourceType\":0}},{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignInterface\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"LoadableForeignInterface\",\"filePath\":\"/Users/brentbahry/repos/n3xa/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/LoadableForeignInterface\",\"properties\":[{\"name\":\"z\",\"type\":{\"packageName\":\"\",\"name\":\"number\",\"filePath\":null,\"qualifiedName\":\"/number\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"sourceType\":3}},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignInterface\",\"filePath\":\"/Users/brentbahry/repos/n3xa/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"properties\":[{\"name\":\"z\",\"type\":{\"packageName\":\"\",\"name\":\"number\",\"filePath\":null,\"qualifiedName\":\"/number\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"sourceType\":3}},{\"v\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignInterface\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"ImplementsOptionalLoadableForeignInterface\",\"filePath\":\"/Users/brentbahry/repos/n3xa/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignInterface\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"z\",\"type\":null,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignInterface\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"directParentClasses\":[],\"sourceType\":2}},{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignAbstractClass\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"LoadableForeignAbstractClass\",\"filePath\":\"/Users/brentbahry/repos/n3xa/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/LoadableForeignAbstractClass\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"z\",\"type\":{\"packageName\":\"\",\"name\":\"number\",\"filePath\":null,\"qualifiedName\":\"/number\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"directParentClasses\":[],\"sourceType\":2}},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignAbstractClass\",\"filePath\":\"/Users/brentbahry/repos/n3xa/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"z\",\"type\":{\"packageName\":\"\",\"name\":\"number\",\"filePath\":null,\"qualifiedName\":\"/number\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"directParentClasses\":[],\"sourceType\":2}},{\"v\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignAbstractClass\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"ImplementsOptionalLoadableForeignAbstractClass\",\"filePath\":\"/Users/brentbahry/repos/n3xa/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignAbstractClass\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"z\",\"type\":null,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[],\"directParentClasses\":[{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignAbstractClass\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[],\"directParentClasses\":[]}],\"sourceType\":2}}],\"edges\":[{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignType\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"extends type\"},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"extends type\"},{\"v\":\"@proteinjs/reflection-build-test-b/implementsOptionalLoadableForeignType\",\"w\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"value\":\"has type\"},{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignInterface\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"extends interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"extends interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignInterface\",\"w\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"value\":\"implements interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignAbstractClass\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"implements interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"implements interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignAbstractClass\",\"w\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"value\":\"extends class\"}]}";
15
+ const sourceGraph = "{\"options\":{\"directed\":true,\"multigraph\":false,\"compound\":false},\"nodes\":[{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignType\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"LoadableForeignType\",\"filePath\":\"/Users/brentbahry/repos/farm/n3xa4/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/LoadableForeignType\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"typeParameters\":[],\"directParents\":null},{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"{ z: number }\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/{ z: number }\",\"typeParameters\":[],\"directParents\":null}],\"sourceType\":1}},{\"v\":\"@proteinjs/reflection/Loadable\"},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignType\",\"filePath\":\"/Users/brentbahry/repos/farm/n3xa4/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"typeParameters\":[],\"directParents\":null},{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"{ z: number }\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/{ z: number }\",\"typeParameters\":[],\"directParents\":null}],\"sourceType\":1}},{\"v\":\"@proteinjs/reflection-build-test-b/implementsOptionalLoadableForeignType\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"implementsOptionalLoadableForeignType\",\"filePath\":\"/Users/brentbahry/repos/farm/n3xa4/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/implementsOptionalLoadableForeignType\",\"type\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignType\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignType\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"typeParameters\":[],\"directParents\":null}]},\"isExported\":true,\"isConst\":true,\"sourceType\":0}},{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignInterface\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"LoadableForeignInterface\",\"filePath\":\"/Users/brentbahry/repos/farm/n3xa4/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/LoadableForeignInterface\",\"properties\":[{\"name\":\"z\",\"type\":{\"packageName\":\"\",\"name\":\"number\",\"filePath\":null,\"qualifiedName\":\"/number\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"sourceType\":3}},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignInterface\",\"filePath\":\"/Users/brentbahry/repos/farm/n3xa4/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"properties\":[{\"name\":\"z\",\"type\":{\"packageName\":\"\",\"name\":\"number\",\"filePath\":null,\"qualifiedName\":\"/number\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"sourceType\":3}},{\"v\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignInterface\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"ImplementsOptionalLoadableForeignInterface\",\"filePath\":\"/Users/brentbahry/repos/farm/n3xa4/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignInterface\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"z\",\"type\":null,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignInterface\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"directParentClasses\":[],\"sourceType\":2}},{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignAbstractClass\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"LoadableForeignAbstractClass\",\"filePath\":\"/Users/brentbahry/repos/farm/n3xa4/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/LoadableForeignAbstractClass\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"z\",\"type\":{\"packageName\":\"\",\"name\":\"number\",\"filePath\":null,\"qualifiedName\":\"/number\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"directParentClasses\":[],\"sourceType\":2}},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignAbstractClass\",\"filePath\":\"/Users/brentbahry/repos/farm/n3xa4/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"z\",\"type\":{\"packageName\":\"\",\"name\":\"number\",\"filePath\":null,\"qualifiedName\":\"/number\",\"typeParameters\":null,\"directParents\":null},\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"directParentClasses\":[],\"sourceType\":2}},{\"v\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignAbstractClass\",\"value\":{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"ImplementsOptionalLoadableForeignAbstractClass\",\"filePath\":\"/Users/brentbahry/repos/farm/n3xa4/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/src/LoadableForeignType.ts\",\"qualifiedName\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignAbstractClass\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[{\"name\":\"z\",\"type\":null,\"isOptional\":false,\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\"}],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[],\"directParentClasses\":[{\"packageName\":\"@proteinjs/reflection-build-test-b\",\"name\":\"OptionalLoadableForeignAbstractClass\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"isAbstract\":false,\"isStatic\":false,\"visibility\":\"public\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParentInterfaces\":[],\"directParentClasses\":[]}],\"sourceType\":2}}],\"edges\":[{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignType\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"extends type\"},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"extends type\"},{\"v\":\"@proteinjs/reflection-build-test-b/implementsOptionalLoadableForeignType\",\"w\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignType\",\"value\":\"has type\"},{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignInterface\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"extends interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"extends interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignInterface\",\"w\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignInterface\",\"value\":\"implements interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/LoadableForeignAbstractClass\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"implements interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"implements interface\"},{\"v\":\"@proteinjs/reflection-build-test-b/ImplementsOptionalLoadableForeignAbstractClass\",\"w\":\"@proteinjs/reflection-build-test-b/OptionalLoadableForeignAbstractClass\",\"value\":\"extends class\"}]}";
16
16
 
17
17
 
18
18
  /** Generate Source Links */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proteinjs/reflection-build-test-b",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
@@ -44,6 +44,7 @@
44
44
  "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.4.tgz",
45
45
  "integrity": "sha512-MBVlMXP+kkl5394RBLSxxk/iLTeVGuXTV3cIDXavPpMMqnSnt6apKgan/U8O3USWZCWZT/TbgfEpKa4uMgN4Dg==",
46
46
  "dev": true,
47
+ "peer": true,
47
48
  "dependencies": {
48
49
  "@ampproject/remapping": "^2.2.0",
49
50
  "@babel/code-frame": "^7.24.2",
@@ -1053,19 +1054,19 @@
1053
1054
  }
1054
1055
  },
1055
1056
  "node_modules/@proteinjs/reflection": {
1056
- "version": "1.1.10",
1057
- "resolved": "https://registry.npmjs.org/@proteinjs/reflection/-/reflection-1.1.10.tgz",
1058
- "integrity": "sha512-Li8iEn2vKt5iHJJmmtquVju+JL+f1Arh602dTvV57+Y2jO7kYl734sSWpPPMDOho8htxY6yJrkP2vCv6q7znoQ==",
1057
+ "version": "1.1.11",
1058
+ "resolved": "https://registry.npmjs.org/@proteinjs/reflection/-/reflection-1.1.11.tgz",
1059
+ "integrity": "sha512-ErhLtcMS+uTsbwNpf6GDVPs+mvQ2AjkvxIkWD8cxsXv25bRGFib4wNhevn1pro2IyMgL+x8Zwime/wQr+S3R2A==",
1059
1060
  "license": "ISC",
1060
1061
  "dependencies": {
1061
1062
  "@dagrejs/graphlib": "2.1.4",
1062
- "@proteinjs/util": "1.5.0"
1063
+ "@proteinjs/util": "^1.6.0"
1063
1064
  }
1064
1065
  },
1065
1066
  "node_modules/@proteinjs/util": {
1066
- "version": "1.5.0",
1067
- "resolved": "https://registry.npmjs.org/@proteinjs/util/-/util-1.5.0.tgz",
1068
- "integrity": "sha512-ZyKCk3kuXUJfeB1ufGLj3TUTOuKdumESwtu6CywFg6ijUF4wh0nfj+MpeH4hToklJTw0Udlj0Q5ONHcsIHka+A==",
1067
+ "version": "1.6.0",
1068
+ "resolved": "https://registry.npmjs.org/@proteinjs/util/-/util-1.6.0.tgz",
1069
+ "integrity": "sha512-U1N6ZhA00VtZcdokBJ3g6yd+BH7+ZKSezfS/h80OgCLVu9pMXMwWqkeAy2rHlmLxQ9MEWwK4axkXyB1QMmrTcg==",
1069
1070
  "license": "ISC",
1070
1071
  "dependencies": {
1071
1072
  "@dagrejs/graphlib": "2.1.4",
@@ -1073,13 +1074,13 @@
1073
1074
  }
1074
1075
  },
1075
1076
  "node_modules/@proteinjs/util-node": {
1076
- "version": "1.6.0",
1077
- "resolved": "https://registry.npmjs.org/@proteinjs/util-node/-/util-node-1.6.0.tgz",
1078
- "integrity": "sha512-gSv/+q9LX+7hCV+SBz8P8j2sNrJo48fv2/ldFuE0RwSYy6tb6IhKV7JpUvVtvJwxUG7ggE9sKDrvgZxmVrxPVQ==",
1077
+ "version": "1.7.2",
1078
+ "resolved": "https://registry.npmjs.org/@proteinjs/util-node/-/util-node-1.7.2.tgz",
1079
+ "integrity": "sha512-fWeUKnsEYO5t2NzN0PMpUUjHM+QZozpm8RvNmDOZc6/P3HX2Uw9iPj27IzVVGncZR5Dda75rjoGXA0Z2LCPtGA==",
1079
1080
  "license": "ISC",
1080
1081
  "dependencies": {
1081
1082
  "@dagrejs/graphlib": "2.1.4",
1082
- "@proteinjs/util": "^1.5.0",
1083
+ "@proteinjs/util": "^1.6.0",
1083
1084
  "fs-extra": "11.1.1",
1084
1085
  "globby": "11.0.1",
1085
1086
  "typescript": "5.2.2"
@@ -1851,6 +1852,7 @@
1851
1852
  "url": "https://github.com/sponsors/ai"
1852
1853
  }
1853
1854
  ],
1855
+ "peer": true,
1854
1856
  "dependencies": {
1855
1857
  "caniuse-lite": "^1.0.30001587",
1856
1858
  "electron-to-chromium": "^1.4.668",
@@ -4357,6 +4359,7 @@
4357
4359
  "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz",
4358
4360
  "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==",
4359
4361
  "dev": true,
4362
+ "peer": true,
4360
4363
  "dependencies": {
4361
4364
  "@jest/core": "^29.7.0",
4362
4365
  "@jest/types": "^29.6.3",
@@ -7639,6 +7642,7 @@
7639
7642
  "version": "5.2.2",
7640
7643
  "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz",
7641
7644
  "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==",
7645
+ "peer": true,
7642
7646
  "bin": {
7643
7647
  "tsc": "bin/tsc",
7644
7648
  "tsserver": "bin/tsserver"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proteinjs/reflection",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "description": "Source introspection and loader apis",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@dagrejs/graphlib": "2.1.4",
27
- "@proteinjs/util": "1.5.0"
27
+ "@proteinjs/util": "^1.6.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/graphlib": "2.1.6",
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.6.0](https://github.com/proteinjs/util/compare/@proteinjs/util@1.5.0...@proteinjs/util@1.6.0) (2026-03-06)
7
+
8
+
9
+ ### Features
10
+
11
+ * `isInstanceOf` is now a type guard. ([49c491b](https://github.com/proteinjs/util/commit/49c491b297ce021e7e853ec21d3d8738d555aef7))
12
+
13
+
14
+
15
+
16
+
6
17
  # [1.5.0](https://github.com/proteinjs/util/compare/@proteinjs/util@1.4.1...@proteinjs/util@1.5.0) (2025-04-11)
7
18
 
8
19
 
@@ -1,3 +1,3 @@
1
1
  type ClassConstructor<T> = new (...args: any[]) => T;
2
- export declare function isInstanceOf<T>(obj: any, cls: ClassConstructor<T>): boolean;
2
+ export declare function isInstanceOf<T>(obj: unknown, cls: ClassConstructor<T>): obj is T;
3
3
  export {};
@@ -5,7 +5,6 @@ function isInstanceOf(obj, cls) {
5
5
  if (!obj) {
6
6
  return false;
7
7
  }
8
- // Traverse the prototype chain to support inheritance
9
8
  var currentProto = Object.getPrototypeOf(obj);
10
9
  while (currentProto) {
11
10
  if (currentProto.constructor.name === cls.name) {
@@ -1 +1 @@
1
- {"version":3,"file":"isInstanceOf.js","sourceRoot":"","sources":["../../src/isInstanceOf.ts"],"names":[],"mappings":";;;AAEA,SAAgB,YAAY,CAAI,GAAQ,EAAE,GAAwB;IAChE,IAAI,CAAC,GAAG,EAAE;QACR,OAAO,KAAK,CAAC;KACd;IAED,sDAAsD;IACtD,IAAI,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;IAC9C,OAAO,YAAY,EAAE;QACnB,IAAI,YAAY,CAAC,WAAW,CAAC,IAAI,KAAK,GAAG,CAAC,IAAI,EAAE;YAC9C,OAAO,IAAI,CAAC;SACb;QAED,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;KACpD;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAhBD,oCAgBC"}
1
+ {"version":3,"file":"isInstanceOf.js","sourceRoot":"","sources":["../../src/isInstanceOf.ts"],"names":[],"mappings":";;;AAEA,SAAgB,YAAY,CAAI,GAAY,EAAE,GAAwB;IACpE,IAAI,CAAC,GAAG,EAAE;QACR,OAAO,KAAK,CAAC;KACd;IAED,IAAI,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;IAC9C,OAAO,YAAY,EAAE;QACnB,IAAI,YAAY,CAAC,WAAW,CAAC,IAAI,KAAK,GAAG,CAAC,IAAI,EAAE;YAC9C,OAAO,IAAI,CAAC;SACb;QAED,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;KACpD;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAfD,oCAeC"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proteinjs/util",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "Runtime-agnostic util libs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -37,5 +37,5 @@
37
37
  "eslint-plugin-prettier": "5.1.3",
38
38
  "typescript": "5.2.2"
39
39
  },
40
- "gitHead": "3b1ff320173f164081139d6a7ca982a6e6b8f455"
40
+ "gitHead": "44d96f568d374f78c3adc6fa6d130bc5b060220f"
41
41
  }
@@ -1,11 +1,10 @@
1
1
  type ClassConstructor<T> = new (...args: any[]) => T;
2
2
 
3
- export function isInstanceOf<T>(obj: any, cls: ClassConstructor<T>): boolean {
3
+ export function isInstanceOf<T>(obj: unknown, cls: ClassConstructor<T>): obj is T {
4
4
  if (!obj) {
5
5
  return false;
6
6
  }
7
7
 
8
- // Traverse the prototype chain to support inheritance
9
8
  let currentProto = Object.getPrototypeOf(obj);
10
9
  while (currentProto) {
11
10
  if (currentProto.constructor.name === cls.name) {
@@ -3,6 +3,47 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.7.2](https://github.com/proteinjs/util/compare/@proteinjs/util-node@1.7.1...@proteinjs/util-node@1.7.2) (2026-03-06)
7
+
8
+ **Note:** Version bump only for package @proteinjs/util-node
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.7.1](https://github.com/proteinjs/util/compare/@proteinjs/util-node@1.7.0...@proteinjs/util-node@1.7.1) (2026-01-26)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * `Fs.grep` configure `cmd` call to no longer write to stderr and stdout (still returns their content). ([0a7d7e6](https://github.com/proteinjs/util/commit/0a7d7e6a5704ab1939061c41263e535cbd2254d8))
20
+
21
+
22
+
23
+
24
+
25
+ # [1.7.0](https://github.com/proteinjs/util/compare/@proteinjs/util-node@1.6.1...@proteinjs/util-node@1.7.0) (2026-01-23)
26
+
27
+
28
+ ### Features
29
+
30
+ * `Fs` added `deleteFiles`. ([cbed0a1](https://github.com/proteinjs/util/commit/cbed0a1e3c9486efd7ad00555f8a944d397253c6))
31
+
32
+
33
+
34
+
35
+
36
+ ## [1.6.1](https://github.com/proteinjs/util/compare/@proteinjs/util-node@1.6.0...@proteinjs/util-node@1.6.1) (2025-12-10)
37
+
38
+
39
+ ### Bug Fixes
40
+
41
+ * `Fs.grep` exclude `package-lock.json`s by default. ([33b4c13](https://github.com/proteinjs/util/commit/33b4c13b59058d41fc8ed907648771535c50cb8c))
42
+
43
+
44
+
45
+
46
+
6
47
  # [1.6.0](https://github.com/proteinjs/util/compare/@proteinjs/util-node@1.5.0...@proteinjs/util-node@1.6.0) (2025-10-31)
7
48
 
8
49
 
@@ -23,6 +23,7 @@ export declare class Fs {
23
23
  static readFiles(filePaths: string[]): Promise<FileContentMap>;
24
24
  static readFile(filePath: string): Promise<string>;
25
25
  static writeFiles(files: File[]): Promise<void>;
26
+ static deleteFiles(paths: string[]): Promise<void>;
26
27
  /** Produces a join only if the relative path does not escape the base path */
27
28
  static baseContainedJoin(basePath: string, relativePath: string): string;
28
29
  static relativeFilePath(fromRelativePath: string, toRelativePath: string): string;
@@ -165,6 +165,41 @@ var Fs = /** @class */ (function () {
165
165
  });
166
166
  });
167
167
  };
168
+ Fs.deleteFiles = function (paths) {
169
+ return __awaiter(this, void 0, void 0, function () {
170
+ var _i, paths_1, p, fp, stat;
171
+ return __generator(this, function (_a) {
172
+ switch (_a.label) {
173
+ case 0:
174
+ _i = 0, paths_1 = paths;
175
+ _a.label = 1;
176
+ case 1:
177
+ if (!(_i < paths_1.length)) return [3 /*break*/, 6];
178
+ p = paths_1[_i];
179
+ fp = "".concat(p);
180
+ return [4 /*yield*/, fs_extra_1.default.exists(fp)];
181
+ case 2:
182
+ if (!(_a.sent())) {
183
+ throw new Error("File does not exist at path: ".concat(fp));
184
+ }
185
+ return [4 /*yield*/, fs_extra_1.default.lstat(fp)];
186
+ case 3:
187
+ stat = _a.sent();
188
+ if (stat.isDirectory()) {
189
+ throw new Error("Path is a directory, not a file: ".concat(fp));
190
+ }
191
+ return [4 /*yield*/, promises_1.default.unlink(fp)];
192
+ case 4:
193
+ _a.sent();
194
+ _a.label = 5;
195
+ case 5:
196
+ _i++;
197
+ return [3 /*break*/, 1];
198
+ case 6: return [2 /*return*/];
199
+ }
200
+ });
201
+ });
202
+ };
168
203
  /** Produces a join only if the relative path does not escape the base path */
169
204
  Fs.baseContainedJoin = function (basePath, relativePath) {
170
205
  if (relativePath.includes('..')) {
@@ -306,7 +341,7 @@ var Fs = /** @class */ (function () {
306
341
  */
307
342
  Fs.grep = function (params) {
308
343
  return __awaiter(this, void 0, void 0, function () {
309
- var _a, pattern, dir, maxResults, maxColumns, cwd, args, shEscape, cols, grepCmd, pipeline, res, res, e_1, code, stdout, stderr;
344
+ var _a, pattern, dir, maxResults, maxColumns, cwd, args, shEscape, cols, grepCmd, pipeline, res, res;
310
345
  return __generator(this, function (_b) {
311
346
  switch (_b.label) {
312
347
  case 0:
@@ -328,6 +363,7 @@ var Fs = /** @class */ (function () {
328
363
  '--exclude-dir=generated',
329
364
  '--exclude-dir=protein',
330
365
  '--exclude=CHANGELOG.md',
366
+ '--exclude=package-lock.json',
331
367
  ];
332
368
  if (typeof maxResults === 'number' && maxResults > 0) {
333
369
  args.push('-m', String(maxResults));
@@ -336,28 +372,27 @@ var Fs = /** @class */ (function () {
336
372
  args.push('-e', pattern, '.');
337
373
  shEscape = function (s) { return "'".concat(String(s).replace(/'/g, "'\\''"), "'"); };
338
374
  cols = typeof maxColumns === 'number' ? maxColumns : 500;
339
- _b.label = 1;
340
- case 1:
341
- _b.trys.push([1, 6, , 7]);
342
- if (!(cols > 0)) return [3 /*break*/, 3];
375
+ if (!(cols > 0)) return [3 /*break*/, 2];
343
376
  grepCmd = __spreadArray(['grep'], args, true).map(shEscape).join(' ');
344
377
  pipeline = "set -o pipefail; ".concat(grepCmd, " | cut -c1-").concat(cols);
345
- return [4 /*yield*/, (0, cmd_1.cmd)('bash', ['-lc', pipeline], { cwd: cwd })];
346
- case 2:
378
+ return [4 /*yield*/, (0, cmd_1.cmd)('bash', ['-lc', pipeline], { cwd: cwd }, {
379
+ omitLogs: {
380
+ stdout: { omit: true },
381
+ stderr: { omit: true },
382
+ },
383
+ })];
384
+ case 1:
347
385
  res = _b.sent();
348
386
  return [2 /*return*/, res]; // { code: 0, stdout, stderr: '' } on success
349
- case 3: return [4 /*yield*/, (0, cmd_1.cmd)('grep', args, { cwd: cwd })];
350
- case 4:
387
+ case 2: return [4 /*yield*/, (0, cmd_1.cmd)('grep', args, { cwd: cwd }, {
388
+ omitLogs: {
389
+ stdout: { omit: true },
390
+ stderr: { omit: true },
391
+ },
392
+ })];
393
+ case 3:
351
394
  res = _b.sent();
352
395
  return [2 /*return*/, res];
353
- case 5: return [3 /*break*/, 7];
354
- case 6:
355
- e_1 = _b.sent();
356
- code = typeof (e_1 === null || e_1 === void 0 ? void 0 : e_1.code) === 'number' ? e_1.code : -1;
357
- stdout = typeof (e_1 === null || e_1 === void 0 ? void 0 : e_1.stdout) === 'string' ? e_1.stdout : '';
358
- stderr = typeof (e_1 === null || e_1 === void 0 ? void 0 : e_1.stderr) === 'string' ? e_1.stderr : String(e_1);
359
- return [2 /*return*/, { code: code, stdout: stdout, stderr: stderr }];
360
- case 7: return [2 /*return*/];
361
396
  }
362
397
  });
363
398
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Fs.js","sourceRoot":"","sources":["../../src/Fs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAwB;AACxB,sDAA+B;AAC/B,yDAA6B;AAC7B,kDAA4B;AAC5B,6BAA4B;AAwB5B;IAAA;IA+LA,CAAC;IA9Lc,SAAM,GAAnB,UAAoB,IAAY;;;;4BACvB,qBAAM,kBAAO,CAAC,MAAM,CAAC,IAAI,CAAC,EAAA;4BAAjC,sBAAO,SAA0B,EAAC;;;;KACnC;IAEY,eAAY,GAAzB,UAA0B,IAAY;;;;4BACpC,qBAAM,kBAAE,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAA;;wBAAzC,SAAyC,CAAC;;;;;KAC3C;IAEY,eAAY,GAAzB,UAA0B,IAAY;;;;4BACpC,qBAAM,kBAAO,CAAC,MAAM,CAAC,IAAI,CAAC,EAAA;;wBAA1B,SAA0B,CAAC;;;;;KAC5B;IAEY,YAAS,GAAtB,UAAuB,SAAmB;;;;;;wBAClC,OAAO,GAAmB,EAAE,CAAC;8BACH,EAAT,uBAAS;;;6BAAT,CAAA,uBAAS,CAAA;wBAArB,QAAQ;wBACX,EAAE,GAA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QAAQ,EAAE;gCACR,MAAM,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;gCACtB,MAAM,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;6BACvB;yBACF,CACF,EAAA;;wBAVK,GAAG,GAAG,SAUX;wBACD,sBAAO,GAAG,EAAC;;;;KAEd;IACH,SAAC;AAAD,CAAC,AA5ND,IA4NC;AA5NY,gBAAE"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proteinjs/util-node",
3
- "version": "1.6.0",
3
+ "version": "1.7.2",
4
4
  "description": "Util libs for node",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@dagrejs/graphlib": "2.1.4",
27
- "@proteinjs/util": "^1.5.0",
27
+ "@proteinjs/util": "^1.6.0",
28
28
  "fs-extra": "11.1.1",
29
29
  "globby": "11.0.1",
30
30
  "typescript": "5.2.2"
@@ -42,5 +42,5 @@
42
42
  "jest": "^29.6.4",
43
43
  "ts-jest": "^29.1.1"
44
44
  },
45
- "gitHead": "a05a3f8b56b774b385fca30242ddf84094e06b64"
45
+ "gitHead": "44d96f568d374f78c3adc6fa6d130bc5b060220f"
46
46
  }
@@ -68,6 +68,22 @@ export class Fs {
68
68
  }
69
69
  }
70
70
 
71
+ static async deleteFiles(paths: string[]) {
72
+ for (const p of paths) {
73
+ const fp = `${p}`;
74
+ if (!(await fsExtra.exists(fp))) {
75
+ throw new Error(`File does not exist at path: ${fp}`);
76
+ }
77
+
78
+ const stat = await fsExtra.lstat(fp);
79
+ if (stat.isDirectory()) {
80
+ throw new Error(`Path is a directory, not a file: ${fp}`);
81
+ }
82
+
83
+ await fs.unlink(fp);
84
+ }
85
+ }
86
+
71
87
  /** Produces a join only if the relative path does not escape the base path */
72
88
  static baseContainedJoin(basePath: string, relativePath: string) {
73
89
  if (relativePath.includes('..')) {
@@ -183,6 +199,7 @@ export class Fs {
183
199
  '--exclude-dir=generated',
184
200
  '--exclude-dir=protein',
185
201
  '--exclude=CHANGELOG.md',
202
+ '--exclude=package-lock.json',
186
203
  ];
187
204
 
188
205
  if (typeof maxResults === 'number' && maxResults > 0) {
@@ -197,24 +214,36 @@ export class Fs {
197
214
 
198
215
  const cols = typeof maxColumns === 'number' ? maxColumns : 500;
199
216
 
200
- try {
201
- if (cols > 0) {
202
- // Truncate with cut; preserve grep's exit code using pipefail
203
- const grepCmd = ['grep', ...args].map(shEscape).join(' ');
204
- const pipeline = `set -o pipefail; ${grepCmd} | cut -c1-${cols}`;
205
- const res = await cmd('bash', ['-lc', pipeline], { cwd });
206
- return res; // { code: 0, stdout, stderr: '' } on success
207
- } else {
208
- // No truncation requested
209
- const res = await cmd('grep', args, { cwd });
210
- return res;
211
- }
212
- } catch (e: any) {
213
- // Translate rejection into a structured result (no throw)
214
- const code = typeof e?.code === 'number' ? e.code : -1;
215
- const stdout = typeof e?.stdout === 'string' ? e.stdout : '';
216
- const stderr = typeof e?.stderr === 'string' ? e.stderr : String(e);
217
- return { code, stdout, stderr };
217
+ if (cols > 0) {
218
+ // Truncate with cut; preserve grep's exit code using pipefail
219
+ const grepCmd = ['grep', ...args].map(shEscape).join(' ');
220
+ const pipeline = `set -o pipefail; ${grepCmd} | cut -c1-${cols}`;
221
+ const res = await cmd(
222
+ 'bash',
223
+ ['-lc', pipeline],
224
+ { cwd },
225
+ {
226
+ omitLogs: {
227
+ stdout: { omit: true },
228
+ stderr: { omit: true },
229
+ },
230
+ }
231
+ );
232
+ return res; // { code: 0, stdout, stderr: '' } on success
233
+ } else {
234
+ // No truncation requested
235
+ const res = await cmd(
236
+ 'grep',
237
+ args,
238
+ { cwd },
239
+ {
240
+ omitLogs: {
241
+ stdout: { omit: true },
242
+ stderr: { omit: true },
243
+ },
244
+ }
245
+ );
246
+ return res;
218
247
  }
219
248
  }
220
249
  }
@@ -6,7 +6,7 @@ TARGET :=
6
6
  LDFLAGS_Debug := \
7
7
  -undefined dynamic_lookup \
8
8
  -Wl,-search_paths_first \
9
- -mmacosx-version-min=11.0 \
9
+ -mmacosx-version-min=13.5 \
10
10
  -arch \
11
11
  arm64 \
12
12
  -L$(builddir) \
@@ -19,7 +19,7 @@ LIBTOOLFLAGS_Debug := \
19
19
  LDFLAGS_Release := \
20
20
  -undefined dynamic_lookup \
21
21
  -Wl,-search_paths_first \
22
- -mmacosx-version-min=11.0 \
22
+ -mmacosx-version-min=13.5 \
23
23
  -arch \
24
24
  arm64 \
25
25
  -L$(builddir) \
@@ -148,10 +148,10 @@ cmd_pch_mm = $(CC.$(TOOLSET)) $(GYP_PCH_OBJCXXFLAGS) $(DEPFLAGS) -c -o $@ $<
148
148
  # Use $(4) for the command, since $(2) and $(3) are used as flag by do_cmd
149
149
  # already.
150
150
  quiet_cmd_mac_tool = MACTOOL $(4) $<
151
- cmd_mac_tool = ./gyp-mac-tool $(4) $< "$@"
151
+ cmd_mac_tool = /usr/local/bin/python3 gyp-mac-tool $(4) $< "$@"
152
152
 
153
153
  quiet_cmd_mac_package_framework = PACKAGE FRAMEWORK $@
154
- cmd_mac_package_framework = ./gyp-mac-tool package-framework "$@" $(4)
154
+ cmd_mac_package_framework = /usr/local/bin/python3 gyp-mac-tool package-framework "$@" $(4)
155
155
 
156
156
  quiet_cmd_infoplist = INFOPLIST $@
157
157
  cmd_infoplist = $(CC.$(TOOLSET)) -E -P -Wno-trigraphs -x c $(INFOPLIST_DEFINES) "$<" -o "$@"
@@ -167,7 +167,7 @@ quiet_cmd_symlink = SYMLINK $@
167
167
  cmd_symlink = ln -sf "$<" "$@"
168
168
 
169
169
  quiet_cmd_alink = LIBTOOL-STATIC $@
170
- cmd_alink = rm -f $@ && ./gyp-mac-tool filter-libtool libtool $(GYP_LIBTOOLFLAGS) -static -o $@ $(filter %.o,$^)
170
+ cmd_alink = rm -f $@ && /usr/local/bin/python3 gyp-mac-tool filter-libtool libtool $(GYP_LIBTOOLFLAGS) -static -o $@ $(filter %.o,$^)
171
171
 
172
172
  quiet_cmd_link = LINK($(TOOLSET)) $@
173
173
  cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o "$@" $(LD_INPUTS) $(LIBS)
@@ -336,8 +336,8 @@ ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
336
336
  endif
337
337
 
338
338
  quiet_cmd_regen_makefile = ACTION Regenerating $@
339
- cmd_regen_makefile = cd $(srcdir); /opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py -fmake --ignore-environment "-Dlibrary=shared_library" "-Dvisibility=default" "-Dnode_root_dir=/Users/brentbahry/Library/Caches/node-gyp/23.1.0" "-Dnode_gyp_dir=/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp" "-Dnode_lib_file=/Users/brentbahry/Library/Caches/node-gyp/23.1.0/<(target_arch)/node.lib" "-Dmodule_root_dir=/Users/brentbahry/repos/n3xa/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents" "-Dnode_engine=v8" "--depth=." "-Goutput_dir=." "--generator-output=build" -I/Users/brentbahry/repos/n3xa/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/config.gypi -I/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/addon.gypi -I/Users/brentbahry/Library/Caches/node-gyp/23.1.0/include/node/common.gypi "--toplevel-dir=." binding.gyp
340
- Makefile: $(srcdir)/build/config.gypi $(srcdir)/../../../../../../../../../../../../../../../../Library/Caches/node-gyp/23.1.0/include/node/common.gypi $(srcdir)/../../../../../../../../../../../../../../../../../../opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/addon.gypi $(srcdir)/binding.gyp
339
+ cmd_regen_makefile = cd $(srcdir); /Users/brentbahry/.nvm/versions/node/v24.11.1/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py -fmake --ignore-environment "-Dlibrary=shared_library" "-Dvisibility=default" "-Dnode_root_dir=/Users/brentbahry/Library/Caches/node-gyp/24.11.1" "-Dnode_gyp_dir=/Users/brentbahry/.nvm/versions/node/v24.11.1/lib/node_modules/npm/node_modules/node-gyp" "-Dnode_lib_file=/Users/brentbahry/Library/Caches/node-gyp/24.11.1/<(target_arch)/node.lib" "-Dmodule_root_dir=/Users/brentbahry/repos/farm/n3xa4/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents" "-Dnode_engine=v8" "--depth=." "-Goutput_dir=." "--generator-output=build" -I/Users/brentbahry/repos/farm/n3xa4/packages/proteinjs/packages/reflection/packages/reflection-build/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/config.gypi -I/Users/brentbahry/.nvm/versions/node/v24.11.1/lib/node_modules/npm/node_modules/node-gyp/addon.gypi -I/Users/brentbahry/Library/Caches/node-gyp/24.11.1/include/node/common.gypi "--toplevel-dir=." binding.gyp
340
+ Makefile: $(srcdir)/../../../../../../../../../../../../../../../../../.nvm/versions/node/v24.11.1/lib/node_modules/npm/node_modules/node-gyp/addon.gypi $(srcdir)/../../../../../../../../../../../../../../../../../Library/Caches/node-gyp/24.11.1/include/node/common.gypi $(srcdir)/binding.gyp $(srcdir)/build/config.gypi
341
341
  $(call do_cmd,regen_makefile)
342
342
 
343
343
  # "all" is a concatenation of the "all" targets from all the included
@@ -1 +1 @@
1
- cmd_Release/.node := c++ -bundle -undefined dynamic_lookup -Wl,-search_paths_first -mmacosx-version-min=11.0 -arch arm64 -L./Release -stdlib=libc++ -o Release/.node
1
+ cmd_Release/.node := c++ -bundle -undefined dynamic_lookup -Wl,-search_paths_first -mmacosx-version-min=13.5 -arch arm64 -L./Release -stdlib=libc++ -o Release/.node