Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "memo-json", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "", | ||
@@ -14,18 +14,18 @@ "homepage": "https://github.com/piglovesyou/memo-json", | ||
"devDependencies": { | ||
"@babel/plugin-proposal-decorators": "^7.15.8", | ||
"@babel/preset-env": "^7.15.8", | ||
"@babel/preset-typescript": "^7.15.0", | ||
"@types/debug": "^4.1.7", | ||
"@types/jest": "^27.0.2", | ||
"@types/node": "^16.10.3", | ||
"husky": "^7.0.2", | ||
"jest": "^27.2.4", | ||
"prettier": "^2.4.1", | ||
"prettier-plugin-organize-imports": "^2.3.4", | ||
"pretty-quick": "^3.1.1", | ||
"typescript": "^4.4.3" | ||
"@babel/plugin-proposal-decorators": "7.15.8", | ||
"@babel/preset-env": "7.15.8", | ||
"@babel/preset-typescript": "7.15.0", | ||
"@types/debug": "4.1.7", | ||
"@types/jest": "27.0.2", | ||
"@types/node": "16.10.3", | ||
"husky": "7.0.2", | ||
"jest": "27.2.4", | ||
"prettier": "2.4.1", | ||
"prettier-plugin-organize-imports": "2.3.4", | ||
"pretty-quick": "3.1.1", | ||
"typescript": "4.4.3" | ||
}, | ||
"dependencies": { | ||
"debug": "^4.3.2", | ||
"make-dir": "^2.x" | ||
"debug": "4.3.2", | ||
"make-dir": "2.1.0" | ||
}, | ||
@@ -32,0 +32,0 @@ "scripts": { |
@@ -1,2 +0,2 @@ | ||
# memo-json | ||
# memo-json [![Node CI](https://github.com/piglovesyou/memo-json/actions/workflows/nodejs.yml/badge.svg)](https://github.com/piglovesyou/memo-json/actions/workflows/nodejs.yml) ![npm](https://badge.fury.io/js/memo-json.svg) | ||
@@ -29,5 +29,5 @@ Memoize functions returning JSON by caching results to disk. Useful for applications depending on external resources. | ||
``` | ||
# ${process.env.cwd()}/${functionName}-${paramHash}.json | ||
.memo/getRemoteData-4e6c99.json | ||
.memo/getRemoteData-dee827.json | ||
# ${process.cwd()}/${functionName}-${paramHash}.json | ||
.memo/getData-4e6c99.json | ||
.memo/getData-dee827.json | ||
``` | ||
@@ -39,2 +39,9 @@ | ||
Available options: | ||
- `dir` - Optional string. `".memo"` by default. | ||
- `enable` - Optional boolean. `true` by default. | ||
Cusomization example: | ||
```typescript | ||
@@ -53,3 +60,3 @@ import { createMemo } from "memo-json"; | ||
Debug logs are available when you have `DEBUG` environment. | ||
Debug logs are available when you pass a `DEBUG` environment variable. | ||
@@ -62,7 +69,2 @@ ```bash | ||
Available options: | ||
- `dir` - Optional string. `".memo"` by default. | ||
- `enable` - Optional boolean. `true` by default. | ||
## License | ||
@@ -69,0 +71,0 @@ |
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
6495
73
+ Addeddebug@4.3.2(transitive)
+ Addedms@2.1.2(transitive)
- Removeddebug@4.4.0(transitive)
- Removedms@2.1.3(transitive)
Updateddebug@4.3.2
Updatedmake-dir@2.1.0