@helyx/core 0.1.23 → 0.1.26
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/CHANGELOG.md +28 -0
- package/dist/index.js +14 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.26
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [00d33b3]
|
|
8
|
+
- @helyx/module-manifest@0.10.0
|
|
9
|
+
- @helyx/sdk@0.12.0
|
|
10
|
+
|
|
11
|
+
## 0.1.25
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Allow Premium slots to be released, reassigned and moved immediately without a
|
|
16
|
+
transfer cooldown, while preserving atomic entitlement projection and
|
|
17
|
+
final-source Premium module disablement.
|
|
18
|
+
|
|
19
|
+
Add fail-closed Premium quantity incident controls, recoverable allocation
|
|
20
|
+
management for removed servers, overlapping Stripe webhook-secret rotation and
|
|
21
|
+
restricted exception diagnostics. Complete the production environment
|
|
22
|
+
contract for every API and bot schema field.
|
|
23
|
+
|
|
24
|
+
## 0.1.24
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Updated dependencies [1dfbf5b]
|
|
29
|
+
- @helyx/module-manifest@0.9.0
|
|
30
|
+
|
|
3
31
|
## 0.1.23
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { orderModuleManifests, parseModuleManifest, } from "@helyx/module-manifest";
|
|
2
|
+
import { createHash } from "node:crypto";
|
|
2
3
|
export * from "./async-cleanup-stack.js";
|
|
3
4
|
export class ServiceRegistry {
|
|
4
5
|
#services;
|
|
@@ -153,7 +154,19 @@ export class HelyxRuntime {
|
|
|
153
154
|
}
|
|
154
155
|
export function safeError(error) {
|
|
155
156
|
const value = toError(error);
|
|
156
|
-
|
|
157
|
+
const name = /^[A-Za-z][A-Za-z0-9]{0,63}$/u.test(value.name)
|
|
158
|
+
? value.name
|
|
159
|
+
: "Error";
|
|
160
|
+
return {
|
|
161
|
+
name,
|
|
162
|
+
message: "Error details are restricted.",
|
|
163
|
+
fingerprint: createHash("sha256")
|
|
164
|
+
.update(name)
|
|
165
|
+
.update("\0")
|
|
166
|
+
.update(value.message)
|
|
167
|
+
.digest("hex")
|
|
168
|
+
.slice(0, 16),
|
|
169
|
+
};
|
|
157
170
|
}
|
|
158
171
|
function toError(error) {
|
|
159
172
|
return error instanceof Error ? error : new Error(String(error));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helyx/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.26",
|
|
4
4
|
"description": "Module lifecycle and runtime registry for Helyx.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"helyx",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"test": "vitest run"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@helyx/module-manifest": ">=0.
|
|
51
|
-
"@helyx/sdk": ">=0.
|
|
50
|
+
"@helyx/module-manifest": ">=0.10.0 <0.11.0",
|
|
51
|
+
"@helyx/sdk": ">=0.12.0 <0.13.0"
|
|
52
52
|
}
|
|
53
53
|
}
|