@agoric/base-zone 0.1.1-dev-cd45c09.0 → 0.1.1-dev-27cb6c4.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/base-zone",
|
|
3
|
-
"version": "0.1.1-dev-
|
|
3
|
+
"version": "0.1.1-dev-27cb6c4.0+27cb6c4",
|
|
4
4
|
"description": "Allocation zone abstraction library and heap implementation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://github.com/Agoric/agoric-sdk",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"author": "Agoric",
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@agoric/store": "0.9.3-dev-
|
|
30
|
+
"@agoric/store": "0.9.3-dev-27cb6c4.0+27cb6c4",
|
|
31
31
|
"@endo/common": "^1.2.10",
|
|
32
32
|
"@endo/errors": "^1.2.10",
|
|
33
33
|
"@endo/exo": "^1.5.9",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"typeCoverage": {
|
|
60
60
|
"atLeast": 91.4
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "27cb6c43f64b45d24d4037603d3390b20de2230b"
|
|
63
63
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepare-attenuator.d.ts","sourceRoot":"","sources":["prepare-attenuator.js"],"names":[],"mappings":"AA2BO,gDAJI,MAAM,gBACN,WAAW,EAAE,iBACb,MAAM,CAAC,WAAW,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;4BAAd,GAAG,EAAE,KAAK,GAAG;EA6BlD;AAoDG,uCAVO,CAAC,cACJ,OAAO,mBAAmB,EAAE,IAAI,aAChC,MAAM,gBAEN,CAAC,MAAM,CAAC,CAAC,EAAE,YAGX,iBAAiB,CAAC,CAAC,CAAC,GAClB,cAAc,CA8B1B;
|
|
1
|
+
{"version":3,"file":"prepare-attenuator.d.ts","sourceRoot":"","sources":["prepare-attenuator.js"],"names":[],"mappings":"AA2BO,gDAJI,MAAM,gBACN,WAAW,EAAE,iBACb,MAAM,CAAC,WAAW,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;4BAAd,GAAG,EAAE,KAAK,GAAG;EA6BlD;AAoDG,uCAVO,CAAC,cACJ,OAAO,mBAAmB,EAAE,IAAI,aAChC,MAAM,gBAEN,CAAC,MAAM,CAAC,CAAC,EAAE,YAGX,iBAAiB,CAAC,CAAC,CAAC,GAClB,cAAc,CA8B1B;AAqBM,6BANY,CAAC,8BACT,CAAC,gBACD,CAAC,MAAM,CAAC,CAAC,EAAE,YACX,iBAAiB,CAAC,CAAC,CAAC,GAClB,OAAO,CAAC,CAAC,CAAC,CAetB;2BA9Ga,CAAC,uBAEJ,CAAC,KACC,OAAO,CAAC,CAAC,CAAC;2BAIT,CAAC;UAED,OAAO,CAAC,CAAC,CAAC;WACV;QAAE,UAAU,EAAE,CAAC,CAAA;KAAE;;8BAIjB,CAAC;;;;;;;;;;;;;;;;8CAcH,cAAc,CAAC,CAAC,CAAC,WAAW,GAAG,EAAE,KAAK,GAAG"}
|
|
@@ -135,7 +135,8 @@ export const prepareAttenuatorMaker = (
|
|
|
135
135
|
};
|
|
136
136
|
harden(prepareAttenuatorMaker);
|
|
137
137
|
|
|
138
|
-
|
|
138
|
+
// cf. https://endojs.github.io/endo/functions/_endo_pass_style.Remotable.html
|
|
139
|
+
const RemotablePrefixRE = /^(Alleged: |DebugName: )/;
|
|
139
140
|
|
|
140
141
|
/**
|
|
141
142
|
* A convenience above `prepareAttenuatorMaker` for doing a singleton
|
|
@@ -154,11 +155,10 @@ const PrefixedKindNameRE = /(alleged: |DebugName: )(.*)/;
|
|
|
154
155
|
*/
|
|
155
156
|
export const attenuateOne = (underlying, uMethodNames, options = undefined) => {
|
|
156
157
|
const heapZone = makeHeapZone();
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
}
|
|
158
|
+
const uKindName = (underlying[Symbol.toStringTag] || 'Underlying').replace(
|
|
159
|
+
RemotablePrefixRE,
|
|
160
|
+
'',
|
|
161
|
+
);
|
|
162
162
|
const makeAttenuator = prepareAttenuatorMaker(
|
|
163
163
|
heapZone,
|
|
164
164
|
uKindName,
|