@asdf-overlay/core 1.2.1 → 1.2.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.
- package/addon-aarch64.node +0 -0
- package/addon-x64.node +0 -0
- package/asdf_overlay-aarch64.dll +0 -0
- package/asdf_overlay-x64.dll +0 -0
- package/asdf_overlay-x86.dll +0 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +4 -0
- package/package.json +3 -3
package/addon-aarch64.node
CHANGED
|
Binary file
|
package/addon-x64.node
CHANGED
|
Binary file
|
package/asdf_overlay-aarch64.dll
CHANGED
|
Binary file
|
package/asdf_overlay-x64.dll
CHANGED
|
Binary file
|
package/asdf_overlay-x86.dll
CHANGED
|
Binary file
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -35,6 +35,7 @@ const idSym = Symbol('id');
|
|
|
35
35
|
export class Overlay {
|
|
36
36
|
event = new EventEmitter();
|
|
37
37
|
[idSym];
|
|
38
|
+
destroyed = false;
|
|
38
39
|
constructor(id) {
|
|
39
40
|
this[idSym] = id;
|
|
40
41
|
void (async () => {
|
|
@@ -128,6 +129,9 @@ export class Overlay {
|
|
|
128
129
|
* Destroy overlay
|
|
129
130
|
*/
|
|
130
131
|
destroy() {
|
|
132
|
+
if (this.destroyed)
|
|
133
|
+
return;
|
|
134
|
+
this.destroyed = true;
|
|
131
135
|
addon.overlayDestroy(this[idSym]);
|
|
132
136
|
this.event.emit('disconnected');
|
|
133
137
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asdf-overlay/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Asdf overlay core Node addon",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"asdf_overlay-aarch64.dll"
|
|
42
42
|
],
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@types/node": "^25.
|
|
45
|
-
"typescript": "^
|
|
44
|
+
"@types/node": "^25.6.0",
|
|
45
|
+
"typescript": "^6.0.3"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build-dll": "cargo xtask build-dll --",
|