New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

statery

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

statery - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

dist/hooks.d.ts

4

dist/index.js

@@ -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"]
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc