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

use-bn-idle

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-bn-idle - npm Package Compare versions

Comparing version

to
1.0.6

dist/cjs/index.js

31

package.json
{
"name": "use-bn-idle",
"version": "1.0.5",
"version": "1.0.6",
"description": "React User Idle Hook to find user idle/session timeout",

@@ -17,13 +17,19 @@ "author": {

],
"main": "index.js",
"types": "index.d.ts",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"scripts": {
"build": "babel src --out-dir .",
"bump": "npm version",
"example": "cd example && yarn install && yarn package",
"prepublishOnly": "yarn build",
"watch": "nodemon --watch src --exec \"yarn build\""
"test": "echo \"Error: no test specified\" && exit 1",
"build": "rollup -c"
},
"license": "MIT",
"license": "ISC",
"devDependencies": {
"@rollup/plugin-commonjs": "^21.0.2",
"@rollup/plugin-node-resolve": "^13.1.3",
"@rollup/plugin-typescript": "^8.3.1",
"@types/react": "^17.0.40",
"react": "^17.0.2",
"rollup": "^2.70.1",
"rollup-plugin-dts": "^4.2.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-terser": "^7.0.2",
"typescript": "^4.6.2"

@@ -37,10 +43,3 @@ },

"url": "https://github.com/bearnithi/use-bn-idle/issues"
},
"dependencies": {
"@babel/cli": "^7.14.8",
"@babel/core": "^7.15.0",
"@babel/preset-env": "^7.15.0",
"@babel/preset-react": "^7.14.5",
"nodemon": "^2.0.12"
}
}
{
// Change this to match your project
"include": ["src/*"],
"compilerOptions": {
// Tells TypeScript to read JS files, as
// normally they are ignored as source files
"allowJs": true,
// Generate d.ts files
"declaration": true,
// This compiler run should
// only output d.ts files
"emitDeclarationOnly": true,
// Types should go into this directory.
// Removing this would place the .d.ts files
// next to the .js files
"outDir": "dist",
// go to js file when using IDE functions like
// "Go to Definition" in VSCode
"declarationMap": true
}
}
"compilerOptions": {
"esModuleInterop": true,
"strict": true,
"skipLibCheck": true,
"jsx": "react",
"module": "ESNext",
"declaration": true,
"declarationDir": "types",
"sourceMap": true,
"outDir": "dist",
"moduleResolution": "node",
"emitDeclarationOnly": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
},
"exclude": [
"dist",
"node_modules",
"src/**/*.test.tsx",
"src/**/*.stories.tsx",
],
}