seroval 1.3.0 → 1.3.1
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/cjs/development/index.cjs +11 -2
- package/dist/cjs/development/index.cjs.map +2 -2
- package/dist/cjs/production/index.cjs +1 -1
- package/dist/esm/development/index.mjs +11 -2
- package/dist/esm/development/index.mjs.map +2 -2
- package/dist/esm/production/index.mjs +1 -1
- package/dist/types/core/context/serializer.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/core/context/serializer.ts +12 -3
|
@@ -2813,6 +2813,15 @@ var BaseSerializerContext = class {
|
|
|
2813
2813
|
["s"],
|
|
2814
2814
|
this.createFunction(
|
|
2815
2815
|
["b", "c", "p", "d", "e", "t", "f"],
|
|
2816
|
+
/**
|
|
2817
|
+
* b = resolved values
|
|
2818
|
+
* c = b size
|
|
2819
|
+
* p = pending promises
|
|
2820
|
+
* d = index where the resolved value stops
|
|
2821
|
+
* e = if the last value is a throw
|
|
2822
|
+
* t = placeholder variable
|
|
2823
|
+
* f = finalize
|
|
2824
|
+
*/
|
|
2816
2825
|
"(b=[],c=0,p=[],d=-1,e=!1,f=" + this.createEffectfulFunction(
|
|
2817
2826
|
["i", "l"],
|
|
2818
2827
|
"for(i=0,l=p.length;i<l;i++)p[i].s({done:!0,value:void 0})"
|
|
@@ -2825,9 +2834,9 @@ var BaseSerializerContext = class {
|
|
|
2825
2834
|
) + ",return:" + this.createEffectfulFunction(
|
|
2826
2835
|
["v", "t"],
|
|
2827
2836
|
"if(t=p.shift())t.s({done:!0,value:v});f(),d=b.length,b.push(v)"
|
|
2828
|
-
) + "}),t={[" + this.getRefParam(symbol.i) + "]:" + this.createFunction([], "t") + ",next:" + this.createEffectfulFunction(
|
|
2837
|
+
) + "}),t={[" + this.getRefParam(symbol.i) + "]:" + this.createFunction([], "t.p") + ",next:" + this.createEffectfulFunction(
|
|
2829
2838
|
["i", "t", "v"],
|
|
2830
|
-
"if(d===-1){return((i=c++)>=b.length)?(
|
|
2839
|
+
"if(d===-1){return((i=c++)>=b.length)?(" + this.getRefParam(promise.i) + "(t={p:0,s:0,f:0}),p.push(t),t.p):{done:!1,value:b[i]}}if(c>d)return{done:!0,value:void 0};if(v=b[i=c++],i!==d)return{done:!1,value:v};if(e)throw v;return{done:!0,value:v}"
|
|
2831
2840
|
) + "})"
|
|
2832
2841
|
)
|
|
2833
2842
|
)
|