@isograph/reference-counted-pointer 0.2.0 → 0.3.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.
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"createReferenceCountedPointer.d.ts","sourceRoot":"","sources":["../src/createReferenceCountedPointer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAI7E;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,6BAA6B,CAAC,CAAC,EAC7C,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,GACvB,eAAe,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAI7C;AAED,MAAM,WAAW,uBAAuB,CAAC,CAAC;IACxC,UAAU,IAAI,OAAO,CAAC;IACtB;;;OAGG;IACH,oBAAoB,IAAI,CAAC,GAAG,IAAI,CAAC;IACjC,kBAAkB,IAAI,eAAe,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;CAC1E"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.createReferenceCountedPointer =
|
3
|
+
exports.createReferenceCountedPointer = createReferenceCountedPointer;
|
4
4
|
// TODO cloneIfNotDisposed should also return the underlying item
|
5
5
|
/**
|
6
6
|
* Create an undisposed reference-counted pointer guarding a given item.
|
@@ -28,7 +28,6 @@ function createReferenceCountedPointer(pair) {
|
|
28
28
|
const originalReferenceCountedPointer = new RefCounter(pair);
|
29
29
|
return originalReferenceCountedPointer.retainIfNotDisposed();
|
30
30
|
}
|
31
|
-
exports.createReferenceCountedPointer = createReferenceCountedPointer;
|
32
31
|
// N.B. this could implement ReferenceCountedPointer<T>, but it would not be correct to use it
|
33
32
|
// as such, since it does not have an associated dispose function that can be called.
|
34
33
|
//
|
package/dist/index.d.ts
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@isograph/reference-counted-pointer",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.3.0",
|
4
4
|
"description": "Reference counted pointers enable sharing of disposable items.",
|
5
5
|
"homepage": "https://isograph.dev",
|
6
6
|
"main": "dist/index.js",
|
@@ -16,11 +16,10 @@
|
|
16
16
|
"tsc": "tsc"
|
17
17
|
},
|
18
18
|
"dependencies": {
|
19
|
-
"@isograph/disposable-types": "
|
19
|
+
"@isograph/disposable-types": "*"
|
20
20
|
},
|
21
21
|
"devDependencies": {
|
22
|
-
"typescript": "
|
23
|
-
"vitest": "^0.29.8"
|
22
|
+
"typescript": "5.6.3"
|
24
23
|
},
|
25
24
|
"repository": {
|
26
25
|
"type": "git",
|
package/tsconfig.json
CHANGED