useid-polyfill 1.1.0 → 1.1.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/auto.js +1 -1
- package/dist/auto.mjs +1 -1
- package/package.json +6 -2
package/dist/auto.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var p=Object.create;var a=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var I=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty;var h=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of y(t))!g.call(e,s)&&s!==o&&a(e,s,{get:()=>t[s],enumerable:!(i=m(t,s))||i.enumerable});return e};var d=(e,t,o)=>(o=e!=null?p(I(e)):{},h(t||!e||!e.__esModule?a(o,"default",{value:e,enumerable:!0}):o,e));var r=d(require("react"));var R=d(require("react")),n=require("react"),b={...R},w=0,j=Math.random().toString(36).slice(2,6),c=()=>`uid-${j}${w++}`,C=typeof window!="undefined"?n.useLayoutEffect:n.useEffect,u=!1;function k(){let[e,t]=(0,n.useState)(()=>u?c():void 0);return C(()=>{e===void 0&&t(c())},[]),(0,n.useEffect)(()=>{u||(u=!0)},[]),e}var f=b.useId||k;function l(e){if(typeof e!="object"||e===null)return!1;let t=e;if(typeof t.useId=="function")return!0;try{return Object.defineProperty(t,"useId",{value:f,writable:!0,configurable:!0,enumerable:!0}),typeof t.useId=="function"}catch(o){return!1}}var v=r.default,x=l(v),E=l(r),N=x||E;!N&&typeof console!="undefined"&&console.warn&&console.warn("[useid-polyfill/auto] Could not patch React.useId. Your environment may not support runtime patching. Consider using a bundler alias instead. See: https://github.com/dermyhughes/useid-polyfill#option-2-bundler-alias");
|
package/dist/auto.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as o}from"./chunk-5VLUJQZZ.mjs";import*as t from"react";function u(e){if(typeof e!="object"||e===null)return!1;let n=e;if(typeof n.useId=="function")return!0;try{return Object.defineProperty(n,"useId",{value:o,writable:!0,configurable:!0,enumerable:!0}),typeof n.useId=="function"}catch(i){return!1}}var r=t.default,s=u(r),a=u(t),c=s||a;!c&&typeof console!="undefined"&&console.warn&&console.warn("[useid-polyfill/auto] Could not patch React.useId. Your environment may not support runtime patching. Consider using a bundler alias instead. See: https://github.com/dermyhughes/useid-polyfill#option-2-bundler-alias");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "useid-polyfill",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "React useId polyfill for React 16/17 with SSR support",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Dermot Hughes",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"./auto": {
|
|
20
20
|
"types": "./dist/auto.d.ts",
|
|
21
|
-
"import": "./dist/auto.
|
|
21
|
+
"import": "./dist/auto.js",
|
|
22
22
|
"require": "./dist/auto.js"
|
|
23
23
|
}
|
|
24
24
|
},
|
|
@@ -29,6 +29,10 @@
|
|
|
29
29
|
]
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
|
+
"sideEffects": [
|
|
33
|
+
"./dist/auto.js",
|
|
34
|
+
"./dist/auto.mjs"
|
|
35
|
+
],
|
|
32
36
|
"files": [
|
|
33
37
|
"dist"
|
|
34
38
|
],
|