@cparra/apex-reflection 2.23.11 → 2.24.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.
- package/dist/index.d.ts +2 -0
- package/dist/index.js +68 -5
- package/dist/out.js +18271 -0
- package/out.js +18271 -0
- package/package.json +6 -4
- package/publish-scripts/postinstall.js +13 -7
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cparra/apex-reflection",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.24.0",
|
|
4
4
|
"description": "Provides tools for reflecting Apex code, the language used in Salesforce development.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"clean": "rimraf dist",
|
|
8
|
-
"build": "npm run clean && tsc",
|
|
8
|
+
"build": "npm run clean && tsc && node scripts/copy-out-js-to-dist.js",
|
|
9
9
|
"postinstall": "node publish-scripts/postinstall.js",
|
|
10
10
|
"dev:build": "npm run build && npm run dev:build:native:host && npm run dev:chmod:native:host",
|
|
11
11
|
"dev:build:native:host": "node scripts/build-natives.js --host",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"author": "Cesar Parra",
|
|
26
26
|
"license": "ISC",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@types/jest": "^27.
|
|
28
|
+
"@types/jest": "^27.5.2",
|
|
29
29
|
"@types/node": "^16.18.98",
|
|
30
30
|
"@types/typescript": "^2.0.0",
|
|
31
31
|
"jest": "^27.2.4",
|
|
@@ -37,6 +37,8 @@
|
|
|
37
37
|
"files": [
|
|
38
38
|
"dist/index.js",
|
|
39
39
|
"dist/index.d.ts",
|
|
40
|
-
"
|
|
40
|
+
"dist/out.js",
|
|
41
|
+
"publish-scripts/postinstall.js",
|
|
42
|
+
"out.js"
|
|
41
43
|
]
|
|
42
44
|
}
|
|
@@ -73,17 +73,23 @@ function main() {
|
|
|
73
73
|
);
|
|
74
74
|
})
|
|
75
75
|
.catch((err) => {
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
// Non-fatal: do not fail installation for downstream dependents.
|
|
77
|
+
// At runtime, the tool will surface a clear error if the binary is missing.
|
|
78
|
+
console.warn(
|
|
79
|
+
"[apex-reflection] postinstall: warning: failed to install native binary (install will continue).",
|
|
78
80
|
);
|
|
79
|
-
console.
|
|
80
|
-
console.
|
|
81
|
+
console.warn(`[apex-reflection] postinstall: ${stringifyErr(err)}`);
|
|
82
|
+
console.warn(
|
|
83
|
+
"[apex-reflection] postinstall: If you intend to use apex-reflection, ensure the native binary is available.",
|
|
84
|
+
);
|
|
85
|
+
console.warn(
|
|
81
86
|
"[apex-reflection] postinstall: Verify the release assets here:",
|
|
82
87
|
);
|
|
83
|
-
console.
|
|
88
|
+
console.warn(
|
|
84
89
|
`https://github.com/${REPO_OWNER}/${REPO_NAME}/releases/tag/${tag}`,
|
|
85
90
|
);
|
|
86
|
-
|
|
91
|
+
// Exit successfully and defer the failure to runtime.
|
|
92
|
+
process.exit(0);
|
|
87
93
|
});
|
|
88
94
|
}
|
|
89
95
|
|
|
@@ -113,7 +119,7 @@ function resolveTarget(nodePlatform, nodeArch) {
|
|
|
113
119
|
if (releasePlatform === "linux" && nodeArch !== "x64") {
|
|
114
120
|
throw new Error(`Unsupported architecture for linux: ${nodeArch}`);
|
|
115
121
|
}
|
|
116
|
-
if (releasePlatform === "windows" && nodeArch !== "x64") {
|
|
122
|
+
if (releasePlatform === "windows" && nodeArch !== "x64" && nodeArch !== "arm64") {
|
|
117
123
|
throw new Error(`Unsupported architecture for windows: ${nodeArch}`);
|
|
118
124
|
}
|
|
119
125
|
|