mirror of
https://github.com/joelwmale/webhook-action.git
synced 2026-08-27 06:47:18 -05:00
chore: updating deps
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 Roy Riojas
|
||||
Copyright (c) Roy Riojas and Jared Wray
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
+4
-2
@@ -1,8 +1,10 @@
|
||||
# flat-cache
|
||||
> A stupidly simple key/value storage using files to persist the data
|
||||
|
||||
[](https://npmjs.org/package/flat-cache)
|
||||
[](https://travis-ci.org/royriojas/flat-cache)
|
||||
[](https://npmjs.org/package/flat-cache)
|
||||
[](https://github.com/jaredwray/flat-cache/actions/workflows/tests.yaml)
|
||||
[](https://codecov.io/github/jaredwray/flat-cache)
|
||||
[](https://npmjs.com/package/flat-cache)
|
||||
|
||||
## install
|
||||
|
||||
|
||||
-1
@@ -1 +0,0 @@
|
||||
../../../rimraf/bin.js
|
||||
+13
-36
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "flat-cache",
|
||||
"version": "3.0.4",
|
||||
"version": "3.2.0",
|
||||
"description": "A stupidly simple key/value storage using files to persist some data",
|
||||
"repository": "royriojas/flat-cache",
|
||||
"repository": "jaredwray/flat-cache",
|
||||
"license": "MIT",
|
||||
"author": {
|
||||
"name": "Roy Riojas",
|
||||
"url": "http://royriojas.com"
|
||||
"name": "Jared Wray",
|
||||
"url": "https://jaredwray.com"
|
||||
},
|
||||
"main": "src/cache.js",
|
||||
"files": [
|
||||
@@ -29,18 +29,9 @@
|
||||
"autofix": "npm run eslint-fix",
|
||||
"check": "npm run eslint",
|
||||
"verify": "npm run eslint && npm run test:cache",
|
||||
"install-hooks": "prepush install && changelogx install-hook && precommit install",
|
||||
"changelog": "changelogx -f markdown -o ./changelog.md",
|
||||
"do-changelog": "npm run changelog && git add ./changelog.md && git commit -m 'DOC: Generate changelog' --no-verify",
|
||||
"pre-v": "npm run verify",
|
||||
"post-v": "npm run do-changelog && git push --no-verify && git push --tags --no-verify",
|
||||
"bump-major": "npm run pre-v && npm version major -m 'BLD: Release v%s' && npm run post-v",
|
||||
"bump-minor": "npm run pre-v && npm version minor -m 'BLD: Release v%s' && npm run post-v",
|
||||
"bump-patch": "npm run pre-v && npm version patch -m 'BLD: Release v%s' && npm run post-v",
|
||||
"test:cache": "mocha -R spec test/specs",
|
||||
"test": "npm run verify --silent",
|
||||
"cover": "istanbul cover test/runner.js html text-summary",
|
||||
"watch": "watch-run -i -p 'test/specs/**/*.js' istanbul cover test/runner.js html text-summary"
|
||||
"test:cache": "c8 mocha -R spec test/specs",
|
||||
"test:ci:cache": "c8 --reporter=lcov mocha -R spec test/specs",
|
||||
"test": "npm run verify --silent"
|
||||
},
|
||||
"keywords": [
|
||||
"json cache",
|
||||
@@ -50,35 +41,21 @@
|
||||
"key value",
|
||||
"cache"
|
||||
],
|
||||
"changelogx": {
|
||||
"ignoreRegExp": [
|
||||
"BLD: Release",
|
||||
"DOC: Generate Changelog",
|
||||
"Generated Changelog"
|
||||
],
|
||||
"issueIDRegExp": "#(\\d+)",
|
||||
"commitURL": "https://github.com/royriojas/flat-cache/commit/{0}",
|
||||
"authorURL": "https://github.com/{0}",
|
||||
"issueIDURL": "https://github.com/royriojas/flat-cache/issues/{0}",
|
||||
"projectName": "flat-cache"
|
||||
},
|
||||
"devDependencies": {
|
||||
"chai": "^4.2.0",
|
||||
"changelogx": "^5.0.6",
|
||||
"c8": "^7.14.0",
|
||||
"chai": "^4.3.10",
|
||||
"eslint": "^7.13.0",
|
||||
"eslint-config-prettier": "^6.15.0",
|
||||
"eslint-plugin-mocha": "^8.0.0",
|
||||
"eslint-plugin-prettier": "^3.1.4",
|
||||
"glob-expand": "^0.2.1",
|
||||
"istanbul": "^0.4.5",
|
||||
"mocha": "^8.2.1",
|
||||
"precommit": "^1.2.2",
|
||||
"prepush": "^3.1.11",
|
||||
"mocha": "^8.4.0",
|
||||
"prettier": "^2.1.2",
|
||||
"watch-run": "^1.2.5"
|
||||
"write": "^2.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"flatted": "^3.1.0",
|
||||
"flatted": "^3.2.9",
|
||||
"keyv": "^4.5.3",
|
||||
"rimraf": "^3.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
+23
-2
@@ -1,5 +1,6 @@
|
||||
var path = require('path');
|
||||
var fs = require('fs');
|
||||
var Keyv = require('keyv');
|
||||
var utils = require('./utils');
|
||||
var del = require('./del');
|
||||
var writeJSON = utils.writeJSON;
|
||||
@@ -17,8 +18,10 @@ var cache = {
|
||||
load: function (docId, cacheDir) {
|
||||
var me = this;
|
||||
|
||||
me._visited = {};
|
||||
me._persisted = {};
|
||||
me.keyv = new Keyv();
|
||||
|
||||
me.__visited = {};
|
||||
me.__persisted = {};
|
||||
me._pathToFile = cacheDir ? path.resolve(cacheDir, docId) : path.resolve(__dirname, '../.cache/', docId);
|
||||
|
||||
if (fs.existsSync(me._pathToFile)) {
|
||||
@@ -26,6 +29,24 @@ var cache = {
|
||||
}
|
||||
},
|
||||
|
||||
get _persisted() {
|
||||
return this.__persisted;
|
||||
},
|
||||
|
||||
set _persisted(value) {
|
||||
this.__persisted = value;
|
||||
this.keyv.set('persisted', value);
|
||||
},
|
||||
|
||||
get _visited() {
|
||||
return this.__visited;
|
||||
},
|
||||
|
||||
set _visited(value) {
|
||||
this.__visited = value;
|
||||
this.keyv.set('visited', value);
|
||||
},
|
||||
|
||||
/**
|
||||
* Load the cache from the provided file
|
||||
* @method loadFile
|
||||
|
||||
Reference in New Issue
Block a user