next-build-cache
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "next-build-cache", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Ultra simple file system based caching built for the next.js build process.", | ||
"main": "lib/cjs/index.js", | ||
"module": "./lib/esm/index.js", | ||
"main": "lib/index.js", | ||
"files": [ | ||
"lib/" | ||
], | ||
"types": "lib/cjs", | ||
"types": "lib", | ||
"scripts": { | ||
"prepublishOnly": "npm run build", | ||
"build": "tsc -p tsconfig.json && tsc -p tsconfig-cjs.json" | ||
"build": "tsc -p tsconfig.json" | ||
}, | ||
@@ -26,3 +25,7 @@ "keywords": [ | ||
"typescript": "^4.1.5" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/erikjs14/next-build-cache" | ||
} | ||
} |
@@ -20,3 +20,3 @@ # next-build-cache | ||
```bash | ||
$ yarn next-build-cache | ||
$ yarn add next-build-cache | ||
``` | ||
@@ -27,5 +27,8 @@ | ||
```javascript | ||
// using es modules | ||
import { accessCache } from 'next-build-cache'; | ||
// using commonjs | ||
const { accessCache } = require('next-build-cache'); | ||
// Access the cache using the file 'build.cache' | ||
// access the cache using the file 'build.cache' | ||
const cache = accessCache('build.cache'); | ||
@@ -37,3 +40,3 @@ | ||
// get the value of a key | ||
await cache.get('mykey'); | ||
const value = await cache.get('mykey'); | ||
``` | ||
@@ -40,0 +43,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
42
1
12924
10
168
1