@bedrock-layout/use-stateful-ref
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -1,3 +0,3 @@ | ||
import React from 'react'; | ||
import React from "react"; | ||
declare function useStatefulRef<T>(initialVal?: null): React.MutableRefObject<T>; | ||
export default useStatefulRef; |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):e.useStatefulRef=t(e.react)}(this,function(e){return e=e&&e.hasOwnProperty("default")?e.default:e,function(t){void 0===t&&(t=null);var n=e.useState(t),r=n[0],u=n[1],f=e.useState({get current(){return r},set current(e){r=e,u(e)}})[0];return Object.defineProperty(f,"current",{get:function(){return r},set:function(e){Object.is(r,e)||(r=e,u(e))}}),f}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):(e=e||self).useStatefulRef=t(e.react)}(this,function(e){return e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e,function(t){void 0===t&&(t=null);var n=e.useState(t),r=n[0],u=n[1],f=e.useState({get current(){return r},set current(e){r=e,u(e)}})[0];return Object.defineProperty(f,"current",{get:function(){return r},set:function(e){Object.is(r,e)||(r=e,u(e))}}),f}}); | ||
//# sourceMappingURL=index.umd.js.map |
{ | ||
"name": "@bedrock-layout/use-stateful-ref", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "bedrock-layout useStatefulRef", | ||
@@ -39,4 +39,8 @@ "sideEffects": false, | ||
"clean:build": "rimraf lib", | ||
"build": "microbundle build --jsx react && rimraf ./.rts2_cache*", | ||
"build:watch": "microbundle build --jsx react --watch" | ||
"build": "microbundle build --jsx React.createElement", | ||
"build:watch": "microbundle build --jsx React.createElement --watch", | ||
"prettier": "prettier --ignore-path .gitignore \"**/*.+(js|jsx|ts|tsx|json)\"", | ||
"fix-format": "npm run prettier -- --write", | ||
"check-format": "npm run prettier -- --list-different", | ||
"check-types": "tsc --noEmit" | ||
}, | ||
@@ -49,3 +53,3 @@ "bugs": { | ||
}, | ||
"gitHead": "a1fe470282f3cb3c1a1be2667a8d3d8cfe339453" | ||
"gitHead": "e7470a583cb4a7040ac90d6b3824b2c13fe02a09" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9462
12
15