Comparing version 0.0.2 to 0.0.3
@@ -10,2 +10,3 @@ 'use strict'; | ||
const set = (updates) => { | ||
var _a; | ||
/* Update state */ | ||
@@ -16,3 +17,3 @@ const newProps = updates instanceof Function ? updates(state) : updates; | ||
for (const prop in newProps) { | ||
listeners[prop]?.forEach((listener) => { | ||
(_a = listeners[prop]) === null || _a === void 0 ? void 0 : _a.forEach((listener) => { | ||
listener(); | ||
@@ -46,1 +47,2 @@ }); | ||
exports.useStore = useStore; | ||
//# sourceMappingURL=index.js.map |
@@ -8,6 +8,8 @@ { | ||
}, | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"main": "dist/index.js", | ||
"module": "dist/index.esm.js", | ||
"license": "MIT", | ||
"scripts": { | ||
"clean": "rimraf dist", | ||
"build": "rollup -c", | ||
@@ -17,3 +19,2 @@ "test": "jest" | ||
"devDependencies": { | ||
"@rollup/plugin-typescript": "^8.1.0", | ||
"@testing-library/react": "^11.2.2", | ||
@@ -28,2 +29,3 @@ "@types/jest": "^26.0.19", | ||
"rollup": "^2.35.1", | ||
"rollup-plugin-typescript2": "^0.29.0", | ||
"ts-jest": "^26.4.4", | ||
@@ -30,0 +32,0 @@ "tslib": "^2.0.3", |
@@ -1,11 +0,31 @@ | ||
import typescript from "@rollup/plugin-typescript" | ||
import typescript from "rollup-plugin-typescript2" | ||
import pkg from "./package.json" | ||
export default { | ||
input: "src/index.ts", | ||
output: { | ||
// file: "dist/index.js", | ||
dir: "dist", | ||
format: "cjs" | ||
const plugins = [ | ||
typescript({ | ||
typescript: require("typescript") | ||
}) | ||
] | ||
const input = "src/index.ts" | ||
export default [ | ||
{ | ||
input, | ||
plugins, | ||
output: { | ||
file: pkg.main, | ||
format: "cjs", | ||
sourcemap: true | ||
} | ||
}, | ||
plugins: [typescript()] | ||
} | ||
{ | ||
input, | ||
plugins, | ||
output: { | ||
file: pkg.module, | ||
format: "esm", | ||
sourcemap: true | ||
} | ||
} | ||
] |
{ | ||
"compilerOptions": { | ||
"target": "esnext", | ||
"target": "es2015", | ||
"module": "es2015", | ||
"moduleResolution": "node", | ||
"declaration": true, | ||
"strict": true, | ||
"jsx": "react-jsx", | ||
"allowSyntheticDefaultImports": true, | ||
"esModuleInterop": true, | ||
"moduleResolution": "node" | ||
"esModuleInterop": true | ||
}, | ||
"include": ["src/**/*", "test/**/*"], | ||
"include": ["src/**/*"], | ||
"exclude": ["node_modules", "dist"] | ||
} |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
10047
20
266
1
6