@openfn/compiler
Advanced tools
+1
-1
@@ -46,2 +46,2 @@ import { Logger } from '@openfn/logger'; | ||
| export { Options, TransformOptions, compile as default, getExports, heap, isPath, isRelativeSpecifier, loadFile, preloadAdaptorExports }; | ||
| export { type Options, type TransformOptions, compile as default, getExports, heap, isPath, isRelativeSpecifier, loadFile, preloadAdaptorExports }; |
+10
-15
@@ -10,6 +10,6 @@ // src/compile.ts | ||
| // src/util.ts | ||
| import { readFileSync } from "node:fs"; | ||
| import { readFileSync } from "fs"; | ||
| import { getHeapStatistics } from "v8"; | ||
| import { readFile } from "node:fs/promises"; | ||
| import path from "node:path"; | ||
| import { readFile } from "fs/promises"; | ||
| import path from "path"; | ||
| import { Project, describeDts } from "@openfn/describe-package"; | ||
@@ -543,4 +543,3 @@ function heap(reason, _logger) { | ||
| target.declaration.elements.push(child.expression); | ||
| } else | ||
| rem.push(child); | ||
| } else rem.push(child); | ||
| } | ||
@@ -579,6 +578,4 @@ programPath.node.body = rem; | ||
| transformers.filter(({ id }) => options[id] ?? true).map((t) => ({ ...t, order: t.order ?? 1 })).sort((a, b5) => { | ||
| if (a.order > b5.order) | ||
| return 1; | ||
| if (a.order < b5.order) | ||
| return -1; | ||
| if (a.order > b5.order) return 1; | ||
| if (a.order < b5.order) return -1; | ||
| return 0; | ||
@@ -673,9 +670,7 @@ }).forEach(({ id, types, visitor: visitor6 }) => { | ||
| const id = decl.id; | ||
| if (id && n6.Identifier.check(id)) | ||
| exportIdentifiers.push(id.name); | ||
| if (id && n6.Identifier.check(id)) exportIdentifiers.push(id.name); | ||
| }); | ||
| } else if (n6.FunctionDeclaration.check(node.declaration) || n6.ClassDeclaration.check(node.declaration)) { | ||
| const id = node.declaration.id; | ||
| if (id && n6.Identifier.check(id)) | ||
| exportIdentifiers.push(id.name); | ||
| if (id && n6.Identifier.check(id)) exportIdentifiers.push(id.name); | ||
| } | ||
@@ -695,5 +690,5 @@ } else if (node.specifiers) { | ||
| // src/index.ts | ||
| var src_default = compile; | ||
| var index_default = compile; | ||
| export { | ||
| src_default as default, | ||
| index_default as default, | ||
| get_exports_default as getExports, | ||
@@ -700,0 +695,0 @@ heap, |
+9
-9
| { | ||
| "name": "@openfn/compiler", | ||
| "version": "1.2.3", | ||
| "version": "1.2.4", | ||
| "description": "Compiler and language tooling for openfn jobs.", | ||
@@ -24,17 +24,17 @@ "author": "Open Function Group <admin@openfn.org>", | ||
| "devDependencies": { | ||
| "@types/node": "^18.19.127", | ||
| "@types/yargs": "^17.0.33", | ||
| "@types/node": "^18.19.130", | ||
| "@types/yargs": "^17.0.35", | ||
| "ava": "5.3.1", | ||
| "tslib": "^2.8.1", | ||
| "tsup": "^7.2.0", | ||
| "typescript": "^5.9.2", | ||
| "tsup": "^8.5.1", | ||
| "typescript": "^5.9.3", | ||
| "yargs": "^17.7.2" | ||
| }, | ||
| "dependencies": { | ||
| "acorn": "^8.15.0", | ||
| "acorn": "^8.16.0", | ||
| "ast-types": "^0.14.2", | ||
| "recast": "^0.21.5", | ||
| "@openfn/describe-package": "0.1.5", | ||
| "@openfn/logger": "1.1.1", | ||
| "@openfn/lexicon": "^1.4.1" | ||
| "@openfn/describe-package": "0.1.6", | ||
| "@openfn/lexicon": "^1.4.2", | ||
| "@openfn/logger": "1.1.2" | ||
| }, | ||
@@ -41,0 +41,0 @@ "files": [ |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
23975
-0.2%719
-0.69%4
100%+ Added
+ Added
- Removed
- Removed
Updated
Updated
Updated