cachette 1.1.36 → 1.1.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1) hide show
  1. package/package.json +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cachette",
3
- "version": "1.1.36",
3
+ "version": "1.1.38",
4
4
  "engines": {
5
5
  "node": ">=18",
6
6
  "npm": ">=9.5.0"
@@ -29,7 +29,9 @@
29
29
  "lint": "eslint 'src/**/*.{js,ts}' 'test/**/*.{js,ts}'",
30
30
  "test": "npm run compile && nyc mocha --config test/mocharc.js 'dist/test/**/*.js'; test -z \"$TEST_REDIS_URL\" && echo '!!! Warning: TEST_REDIS_URL unset, Redis tests did not run !!!' || true",
31
31
  "test:ci": "npm run compile && mkdir -p ci_output/testresults && mocha --config test/mocharc-ci.js 'dist/test/**/*.js'",
32
- "relock": "rm -rf node_modules package-lock.json; npm install --package-lock; npm out; true"
32
+ "relock": "rm -rf node_modules package-lock.json; npm install --package-lock; npm out; true",
33
+ "postprepare": "npm run --silent githook-install",
34
+ "githook-install": "mkdir -p .git/hooks/ && echo '#!/usr/bin/env sh\necho \"⚠️ Reminder that cachette is a *public* repo! ⚠️\"\necho \"No private info in: branch name, commit message, PR title & description & comments!\"\necho \"Ctrl+C to abort git push, Enter to proceed.\"\nread REPLY < /dev/tty' > '.git/hooks/pre-push' && chmod +x '.git/hooks/pre-push'"
33
35
  },
34
36
  "nyc": {
35
37
  "cache": false,