signalium 1.2.0 → 1.2.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/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +6 -0
- package/dist/cjs/react/rendering.d.ts +1 -1
- package/dist/cjs/react/rendering.d.ts.map +1 -1
- package/dist/cjs/react/rendering.js +2 -2
- package/dist/cjs/react/rendering.js.map +1 -1
- package/dist/esm/react/rendering.d.ts +1 -1
- package/dist/esm/react/rendering.d.ts.map +1 -1
- package/dist/esm/react/rendering.js +2 -2
- package/dist/esm/react/rendering.js.map +1 -1
- package/package.json +1 -1
- package/src/react/rendering.ts +2 -2
package/.turbo/turbo-build.log
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
|
2
|
-
> signalium@1.2.
|
2
|
+
> signalium@1.2.1 build
|
3
3
|
> npm run build:esm && npm run build:cjs
|
4
4
|
|
5
5
|
|
6
|
-
> signalium@1.2.
|
6
|
+
> signalium@1.2.1 build:esm
|
7
7
|
> tsc
|
8
8
|
|
9
9
|
|
10
|
-
> signalium@1.2.
|
10
|
+
> signalium@1.2.1 build:cjs
|
11
11
|
> tsc --module commonjs --outDir dist/cjs --moduleResolution node
|
12
12
|
|
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,6 @@
|
|
3
3
|
* in code that _may or may not_ be used while rendering, we need to use this function to wrap the
|
4
4
|
* call. This will ensure that we will not be in a rendering context when the reactive function is called.
|
5
5
|
*/
|
6
|
-
export declare const runReactiveSafe: <T
|
6
|
+
export declare const runReactiveSafe: <T>(fn: () => T) => T;
|
7
7
|
export declare function isRendering(): boolean;
|
8
8
|
//# sourceMappingURL=rendering.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rendering.d.ts","sourceRoot":"","sources":["../../../src/react/rendering.ts"],"names":[],"mappings":"AAgBA;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,CAAC,
|
1
|
+
{"version":3,"file":"rendering.d.ts","sourceRoot":"","sources":["../../../src/react/rendering.ts"],"names":[],"mappings":"AAgBA;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,CAAC,MAAM,MAAM,CAAC,KAAG,CAQhD,CAAC;AAEF,wBAAgB,WAAW,YAW1B"}
|
@@ -21,10 +21,10 @@ let RENDERING_SAFE_MODE_COUNT = 0;
|
|
21
21
|
* in code that _may or may not_ be used while rendering, we need to use this function to wrap the
|
22
22
|
* call. This will ensure that we will not be in a rendering context when the reactive function is called.
|
23
23
|
*/
|
24
|
-
const runReactiveSafe = (fn
|
24
|
+
const runReactiveSafe = (fn) => {
|
25
25
|
RENDERING_SAFE_MODE_COUNT++;
|
26
26
|
try {
|
27
|
-
return fn(
|
27
|
+
return fn();
|
28
28
|
}
|
29
29
|
finally {
|
30
30
|
RENDERING_SAFE_MODE_COUNT--;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rendering.js","sourceRoot":"","sources":["../../../src/react/rendering.ts"],"names":[],"mappings":";;;;;;AA+BA,kCAWC;AA1CD,kDAA0B;AAE1B,wFAAwF;AACxF,oFAAoF;AACpF,mFAAmF;AACnF,0DAA0D;AAC1D,MAAM,eAAe,GAClB,eAAa,CAAC,kDAAkD;IAChE,eAAa,CAAC,+DAA+D;IAC7E,eAAa,CAAC,+DAA+D,CAAC;AAEjF,MAAM,WAAW,GAAG,CAAC,CAAC,eAAe,CAAC,sBAAsB,CAAC;AAC7D,MAAM,sBAAsB,GAAG,eAAe,CAAC,sBAAsB,IAAI,eAAe,CAAC;AAEzF,IAAI,yBAAyB,GAAG,CAAC,CAAC;AAElC;;;;GAIG;AACI,MAAM,eAAe,GAAG,
|
1
|
+
{"version":3,"file":"rendering.js","sourceRoot":"","sources":["../../../src/react/rendering.ts"],"names":[],"mappings":";;;;;;AA+BA,kCAWC;AA1CD,kDAA0B;AAE1B,wFAAwF;AACxF,oFAAoF;AACpF,mFAAmF;AACnF,0DAA0D;AAC1D,MAAM,eAAe,GAClB,eAAa,CAAC,kDAAkD;IAChE,eAAa,CAAC,+DAA+D;IAC7E,eAAa,CAAC,+DAA+D,CAAC;AAEjF,MAAM,WAAW,GAAG,CAAC,CAAC,eAAe,CAAC,sBAAsB,CAAC;AAC7D,MAAM,sBAAsB,GAAG,eAAe,CAAC,sBAAsB,IAAI,eAAe,CAAC;AAEzF,IAAI,yBAAyB,GAAG,CAAC,CAAC;AAElC;;;;GAIG;AACI,MAAM,eAAe,GAAG,CAAI,EAAW,EAAK,EAAE;IACnD,yBAAyB,EAAE,CAAC;IAE5B,IAAI,CAAC;QACH,OAAO,EAAE,EAAE,CAAC;IACd,CAAC;YAAS,CAAC;QACT,yBAAyB,EAAE,CAAC;IAC9B,CAAC;AACH,CAAC,CAAC;AARW,QAAA,eAAe,mBAQ1B;AAEF,SAAgB,WAAW;IACzB,MAAM,UAAU,GAAG,WAAW,CAAC,CAAC,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAE3F,OAAO,CACL,yBAAyB,KAAK,CAAC;QAC/B,CAAC,CAAC,UAAU;QACZ,sFAAsF;QACtF,yFAAyF;QACzF,wDAAwD;QACxD,UAAU,CAAC,QAAQ,KAAK,UAAU,CAAC,SAAS,CAC7C,CAAC;AACJ,CAAC"}
|
@@ -3,6 +3,6 @@
|
|
3
3
|
* in code that _may or may not_ be used while rendering, we need to use this function to wrap the
|
4
4
|
* call. This will ensure that we will not be in a rendering context when the reactive function is called.
|
5
5
|
*/
|
6
|
-
export declare const runReactiveSafe: <T
|
6
|
+
export declare const runReactiveSafe: <T>(fn: () => T) => T;
|
7
7
|
export declare function isRendering(): boolean;
|
8
8
|
//# sourceMappingURL=rendering.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rendering.d.ts","sourceRoot":"","sources":["../../../src/react/rendering.ts"],"names":[],"mappings":"AAgBA;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,CAAC,
|
1
|
+
{"version":3,"file":"rendering.d.ts","sourceRoot":"","sources":["../../../src/react/rendering.ts"],"names":[],"mappings":"AAgBA;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,CAAC,MAAM,MAAM,CAAC,KAAG,CAQhD,CAAC;AAEF,wBAAgB,WAAW,YAW1B"}
|
@@ -14,10 +14,10 @@ let RENDERING_SAFE_MODE_COUNT = 0;
|
|
14
14
|
* in code that _may or may not_ be used while rendering, we need to use this function to wrap the
|
15
15
|
* call. This will ensure that we will not be in a rendering context when the reactive function is called.
|
16
16
|
*/
|
17
|
-
export const runReactiveSafe = (fn
|
17
|
+
export const runReactiveSafe = (fn) => {
|
18
18
|
RENDERING_SAFE_MODE_COUNT++;
|
19
19
|
try {
|
20
|
-
return fn(
|
20
|
+
return fn();
|
21
21
|
}
|
22
22
|
finally {
|
23
23
|
RENDERING_SAFE_MODE_COUNT--;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rendering.js","sourceRoot":"","sources":["../../../src/react/rendering.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,wFAAwF;AACxF,oFAAoF;AACpF,mFAAmF;AACnF,0DAA0D;AAC1D,MAAM,eAAe,GAClB,KAAa,CAAC,kDAAkD;IAChE,KAAa,CAAC,+DAA+D;IAC7E,KAAa,CAAC,+DAA+D,CAAC;AAEjF,MAAM,WAAW,GAAG,CAAC,CAAC,eAAe,CAAC,sBAAsB,CAAC;AAC7D,MAAM,sBAAsB,GAAG,eAAe,CAAC,sBAAsB,IAAI,eAAe,CAAC;AAEzF,IAAI,yBAAyB,GAAG,CAAC,CAAC;AAElC;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,
|
1
|
+
{"version":3,"file":"rendering.js","sourceRoot":"","sources":["../../../src/react/rendering.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,wFAAwF;AACxF,oFAAoF;AACpF,mFAAmF;AACnF,0DAA0D;AAC1D,MAAM,eAAe,GAClB,KAAa,CAAC,kDAAkD;IAChE,KAAa,CAAC,+DAA+D;IAC7E,KAAa,CAAC,+DAA+D,CAAC;AAEjF,MAAM,WAAW,GAAG,CAAC,CAAC,eAAe,CAAC,sBAAsB,CAAC;AAC7D,MAAM,sBAAsB,GAAG,eAAe,CAAC,sBAAsB,IAAI,eAAe,CAAC;AAEzF,IAAI,yBAAyB,GAAG,CAAC,CAAC;AAElC;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAI,EAAW,EAAK,EAAE;IACnD,yBAAyB,EAAE,CAAC;IAE5B,IAAI,CAAC;QACH,OAAO,EAAE,EAAE,CAAC;IACd,CAAC;YAAS,CAAC;QACT,yBAAyB,EAAE,CAAC;IAC9B,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,UAAU,WAAW;IACzB,MAAM,UAAU,GAAG,WAAW,CAAC,CAAC,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAE3F,OAAO,CACL,yBAAyB,KAAK,CAAC;QAC/B,CAAC,CAAC,UAAU;QACZ,sFAAsF;QACtF,yFAAyF;QACzF,wDAAwD;QACxD,UAAU,CAAC,QAAQ,KAAK,UAAU,CAAC,SAAS,CAC7C,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
package/src/react/rendering.ts
CHANGED
@@ -19,11 +19,11 @@ let RENDERING_SAFE_MODE_COUNT = 0;
|
|
19
19
|
* in code that _may or may not_ be used while rendering, we need to use this function to wrap the
|
20
20
|
* call. This will ensure that we will not be in a rendering context when the reactive function is called.
|
21
21
|
*/
|
22
|
-
export const runReactiveSafe = <T
|
22
|
+
export const runReactiveSafe = <T>(fn: () => T): T => {
|
23
23
|
RENDERING_SAFE_MODE_COUNT++;
|
24
24
|
|
25
25
|
try {
|
26
|
-
return fn(
|
26
|
+
return fn();
|
27
27
|
} finally {
|
28
28
|
RENDERING_SAFE_MODE_COUNT--;
|
29
29
|
}
|