diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..0d8138e --- /dev/null +++ b/.editorconfig @@ -0,0 +1,22 @@ +# http://editorconfig.org + +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true +max_line_length = 80 +indent_brace_style = 1TBS +spaces_around_operators = true +quote_type = auto + +[package.json] +indent_style = space +indent_size = 2 + +[*.md] +trim_trailing_whitespace = false diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..176a458 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..e03e941 --- /dev/null +++ b/.npmrc @@ -0,0 +1,4 @@ +unsafe-perm=true +save-prefix=~ +shrinkwrap=false +save=false diff --git a/packages/keyv-postgres/LICENSE b/LICENSE.md similarity index 83% rename from packages/keyv-postgres/LICENSE rename to LICENSE.md index f27ee9b..3936431 100644 --- a/packages/keyv-postgres/LICENSE +++ b/LICENSE.md @@ -1,6 +1,6 @@ -MIT License +The MIT License (MIT) -Copyright (c) 2017 Luke Childs +Copyright © 2021 Kiko Beats (httpss://kikobeats.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/packages/keyv/media/logo.svg b/media/logo.svg similarity index 100% rename from packages/keyv/media/logo.svg rename to media/logo.svg diff --git a/package.json b/package.json index ea40439..7b2544d 100644 --- a/package.json +++ b/package.json @@ -2,14 +2,6 @@ "name": "@keyvhq/mono", "private": "true", "devDependencies": { - "@keyvhq/keyv": "file:./packages/keyv", - "@keyvhq/keyv-mongo": "file:packages/keyv-mongo", - "@keyvhq/keyv-mysql": "file:packages/keyv-mysql", - "@keyvhq/keyv-postgres": "file:packages/keyv-postgres", - "@keyvhq/keyv-redis": "file:packages/keyv-redis", - "@keyvhq/keyv-sql": "file:packages/keyv-sql", - "@keyvhq/keyv-sqlite": "file:packages/keyv-sqlite", - "@keyvhq/keyv-test-suite": "file:packages/keyv-test-suite", "ava": "^3.15.0", "coveralls": "^3.0.0", "delay": "^4.3.0", diff --git a/packages/keyv-mongo/.gitignore b/packages/keyv-mongo/.gitignore deleted file mode 100644 index 2e3391d..0000000 --- a/packages/keyv-mongo/.gitignore +++ /dev/null @@ -1,73 +0,0 @@ -## Node -.env - -#npm5 -package-lock.json - -# Logs -logs -*.log -npm-debug.log* - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# nyc test coverage -.nyc_output - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (http://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules -jspm_packages - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional REPL history -.node_repl_history - -## OS X - -*.DS_Store -.AppleDouble -.LSOverride - -# Icon must end with two \r -Icon - - -# Thumbnails -._* - -# Files that might appear in the root of a volume -.DocumentRevisions-V100 -.fseventsd -.Spotlight-V100 -.TemporaryItems -.Trashes -.VolumeIcon.icns -.com.apple.timemachine.donotpresent - -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk diff --git a/packages/keyv-mongo/LICENSE b/packages/keyv-mongo/LICENSE deleted file mode 100644 index f27ee9b..0000000 --- a/packages/keyv-mongo/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Luke Childs - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/packages/keyv-mongo/package.json b/packages/keyv-mongo/package.json index 5ca5ae3..b96a20f 100644 --- a/packages/keyv-mongo/package.json +++ b/packages/keyv-mongo/package.json @@ -1,40 +1,46 @@ { "name": "@keyvhq/keyv-mongo", - "version": "0.2.0", "description": "MongoDB storage adapter for Keyv", + "homepage": "https://github.com/keyvhq/keyv", + "version": "0.2.0", "main": "src/index.js", - "scripts": { - "test": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava" + "author": { + "email": "lukechilds123@gmail.com", + "name": "Luke Childs", + "url": "http://lukechilds.co.uk" }, - "xo": { - "extends": "xo-lukechilds" - }, - "ava": { - "require": [ - "requirable" - ] + "bugs": { + "url": "https://github.com/keyvhq/keyv/issues" }, "keywords": [ + "adapter", + "cache", + "key", + "keyv", "mongo", "mongodb", - "keyv", "storage", - "adapter", - "key", - "value", "store", - "cache", - "ttl" + "ttl", + "value" ], - "author": "Luke Childs (http://lukechilds.co.uk)", - "license": "MIT", - "bugs": { - "url": "https://github.com/keyvhq/keyv/issues" - }, - "homepage": "https://github.com/keyvhq/keyv", "dependencies": { "mongodb": "^3.6.5", "pify": "^5.0.0" }, - "gitHead": "a4e2c1f285236a753de13eb8a42d9a98690526cc" + "files": [ + "src" + ], + "scripts": { + "test": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava" + }, + "license": "MIT", + "ava": { + "require": [ + "requirable" + ] + }, + "xo": { + "extends": "xo-lukechilds" + } } diff --git a/packages/keyv-mysql/.gitignore b/packages/keyv-mysql/.gitignore deleted file mode 100644 index ca30fc6..0000000 --- a/packages/keyv-mysql/.gitignore +++ /dev/null @@ -1,76 +0,0 @@ -## Node -.env - -#npm5 -package-lock.json - -# Logs -logs -*.log -npm-debug.log* - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (http://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules -jspm_packages - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional REPL history -.node_repl_history - -## OS X - -*.DS_Store -.AppleDouble -.LSOverride - -# Icon must end with two \r -Icon - - -# Thumbnails -._* - -# Files that might appear in the root of a volume -.DocumentRevisions-V100 -.fseventsd -.Spotlight-V100 -.TemporaryItems -.Trashes -.VolumeIcon.icns -.com.apple.timemachine.donotpresent - -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk diff --git a/packages/keyv-mysql/LICENSE b/packages/keyv-mysql/LICENSE deleted file mode 100644 index f27ee9b..0000000 --- a/packages/keyv-mysql/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Luke Childs - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/packages/keyv-mysql/package.json b/packages/keyv-mysql/package.json index a8d4034..c81c656 100644 --- a/packages/keyv-mysql/package.json +++ b/packages/keyv-mysql/package.json @@ -1,41 +1,47 @@ { "name": "@keyvhq/keyv-mysql", - "version": "0.2.0", "description": "MySQL/MariaDB storage adapter for Keyv", + "homepage": "https://github.com/keyvhq/keyv", + "version": "0.2.0", "main": "src/index.js", - "scripts": { - "test": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava" + "author": { + "email": "lukechilds123@gmail.com", + "name": "Luke Childs", + "url": "http://lukechilds.co.uk" }, - "xo": { - "extends": "xo-lukechilds" - }, - "ava": { - "require": [ - "requirable" - ] + "bugs": { + "url": "https://github.com/keyvhq/keyv/issues" }, "keywords": [ - "mysql", + "adapter", + "cache", + "key", + "keyv", "mariadb", + "mysql", "sql", - "keyv", "storage", - "adapter", - "key", - "value", "store", - "cache", - "ttl" + "ttl", + "value" ], - "author": "Luke Childs (http://lukechilds.co.uk)", - "license": "MIT", - "bugs": { - "url": "https://github.com/keyvhq/keyv/issues" - }, - "homepage": "https://github.com/keyvhq/keyv", "dependencies": { - "@keyvhq/keyv-sql": "file:../keyv-sql", + "@keyvhq/keyv-sql": "~0.2.0", "mysql2": "2.2.5" }, - "gitHead": "a4e2c1f285236a753de13eb8a42d9a98690526cc" + "files": [ + "src" + ], + "scripts": { + "test": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava" + }, + "license": "MIT", + "ava": { + "require": [ + "requirable" + ] + }, + "xo": { + "extends": "xo-lukechilds" + } } diff --git a/packages/keyv-postgres/.gitignore b/packages/keyv-postgres/.gitignore deleted file mode 100644 index c501f33..0000000 --- a/packages/keyv-postgres/.gitignore +++ /dev/null @@ -1,75 +0,0 @@ -## Node - -#npm5 -package-lock.json - -# Logs -logs -*.log -npm-debug.log* - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (http://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules -jspm_packages - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional REPL history -.node_repl_history - -## OS X - -*.DS_Store -.AppleDouble -.LSOverride - -# Icon must end with two \r -Icon - - -# Thumbnails -._* - -# Files that might appear in the root of a volume -.DocumentRevisions-V100 -.fseventsd -.Spotlight-V100 -.TemporaryItems -.Trashes -.VolumeIcon.icns -.com.apple.timemachine.donotpresent - -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk diff --git a/packages/keyv-postgres/package.json b/packages/keyv-postgres/package.json index eefa409..6b46f8f 100644 --- a/packages/keyv-postgres/package.json +++ b/packages/keyv-postgres/package.json @@ -1,41 +1,47 @@ { "name": "@keyvhq/keyv-postgres", - "version": "0.2.0", "description": "PostgreSQL storage adapter for Keyv", + "homepage": "https://github.com/keyvhq/keyv", + "version": "0.2.0", "main": "src/index.js", - "scripts": { - "test": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava --serial" + "author": { + "email": "lukechilds123@gmail.com", + "name": "Luke Childs", + "url": "http://lukechilds.co.uk" }, - "xo": { - "extends": "xo-lukechilds" - }, - "ava": { - "require": [ - "requirable" - ] + "bugs": { + "url": "https://github.com/keyvhq/keyv/issues" }, "keywords": [ + "adapter", + "cache", + "key", + "keyv", "postgres", "postgresql", "sql", - "keyv", "storage", - "adapter", - "key", - "value", "store", - "cache", - "ttl" + "ttl", + "value" ], - "author": "Luke Childs (http://lukechilds.co.uk)", - "license": "MIT", - "bugs": { - "url": "https://github.com/keyvhq/keyv/issues" - }, - "homepage": "https://github.com/keyvhq/keyv", "dependencies": { - "@keyvhq/keyv-sql": "file:../keyv-sql", + "@keyvhq/keyv-sql": "~0.2.0", "pg": "8.6.0" }, - "gitHead": "a4e2c1f285236a753de13eb8a42d9a98690526cc" + "files": [ + "src" + ], + "scripts": { + "test": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava --serial" + }, + "license": "MIT", + "ava": { + "require": [ + "requirable" + ] + }, + "xo": { + "extends": "xo-lukechilds" + } } diff --git a/packages/keyv-redis/.gitignore b/packages/keyv-redis/.gitignore deleted file mode 100644 index ca30fc6..0000000 --- a/packages/keyv-redis/.gitignore +++ /dev/null @@ -1,76 +0,0 @@ -## Node -.env - -#npm5 -package-lock.json - -# Logs -logs -*.log -npm-debug.log* - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (http://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules -jspm_packages - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional REPL history -.node_repl_history - -## OS X - -*.DS_Store -.AppleDouble -.LSOverride - -# Icon must end with two \r -Icon - - -# Thumbnails -._* - -# Files that might appear in the root of a volume -.DocumentRevisions-V100 -.fseventsd -.Spotlight-V100 -.TemporaryItems -.Trashes -.VolumeIcon.icns -.com.apple.timemachine.donotpresent - -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk diff --git a/packages/keyv-redis/.npmignore b/packages/keyv-redis/.npmignore deleted file mode 100644 index 7a1eba3..0000000 --- a/packages/keyv-redis/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!src diff --git a/packages/keyv-redis/LICENSE b/packages/keyv-redis/LICENSE deleted file mode 100644 index f27ee9b..0000000 --- a/packages/keyv-redis/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Luke Childs - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/packages/keyv-redis/package.json b/packages/keyv-redis/package.json index 770b97e..663f0ed 100644 --- a/packages/keyv-redis/package.json +++ b/packages/keyv-redis/package.json @@ -1,41 +1,47 @@ { "name": "@keyvhq/keyv-redis", - "version": "0.2.0", "description": "Redis storage adapter for Keyv", + "homepage": "https://github.com/keyvhq/keyv", + "version": "0.2.0", "main": "src/index.js", - "scripts": { - "test": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava", - "test:docker": "docker-compose up --build --abort-on-container-exit --exit-code-from test", - "posttest:docker": "docker-compose down --rmi local" + "author": { + "email": "lukechilds123@gmail.com", + "name": "Luke Childs", + "url": "http://lukechilds.co.uk" }, - "xo": { - "extends": "xo-lukechilds" - }, - "ava": { - "require": [ - "requirable" - ] + "bugs": { + "url": "https://github.com/keyvhq/keyv/issues" }, "keywords": [ - "redis", - "keyv", - "storage", "adapter", + "cache", "key", - "value", + "keyv", + "redis", + "storage", "store", - "cache", - "ttl" + "ttl", + "value" ], - "author": "Luke Childs (http://lukechilds.co.uk)", - "license": "MIT", - "bugs": { - "url": "https://github.com/keyvhq/keyv/issues" - }, - "homepage": "https://github.com/keyvhq/keyv", "dependencies": { "ioredis": "~4.17.1", "p-event": "~4.2.0" }, - "gitHead": "a4e2c1f285236a753de13eb8a42d9a98690526cc" + "files": [ + "src" + ], + "scripts": { + "posttest:docker": "docker-compose down --rmi local", + "test": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava", + "test:docker": "docker-compose up --build --abort-on-container-exit --exit-code-from test" + }, + "license": "MIT", + "ava": { + "require": [ + "requirable" + ] + }, + "xo": { + "extends": "xo-lukechilds" + } } diff --git a/packages/keyv-sql/.gitignore b/packages/keyv-sql/.gitignore deleted file mode 100644 index e1ce58a..0000000 --- a/packages/keyv-sql/.gitignore +++ /dev/null @@ -1,74 +0,0 @@ -test/testdb.sqlite - -## Node - -# Logs -logs -*.log -npm-debug.log* - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (http://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules -jspm_packages - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional REPL history -.node_repl_history - -## OS X - -*.DS_Store -.AppleDouble -.LSOverride - -# Icon must end with two \r -Icon - - -# Thumbnails -._* - -# Files that might appear in the root of a volume -.DocumentRevisions-V100 -.fseventsd -.Spotlight-V100 -.TemporaryItems -.Trashes -.VolumeIcon.icns -.com.apple.timemachine.donotpresent - -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk diff --git a/packages/keyv-sql/.npmignore b/packages/keyv-sql/.npmignore deleted file mode 100644 index e23258e..0000000 --- a/packages/keyv-sql/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!src/**/* diff --git a/packages/keyv-sql/LICENSE b/packages/keyv-sql/LICENSE deleted file mode 100644 index f27ee9b..0000000 --- a/packages/keyv-sql/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Luke Childs - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/packages/keyv-sql/package.json b/packages/keyv-sql/package.json index 59d9d7d..0b6d28d 100644 --- a/packages/keyv-sql/package.json +++ b/packages/keyv-sql/package.json @@ -1,35 +1,41 @@ { "name": "@keyvhq/keyv-sql", - "version": "0.2.0", "description": "Parent class for SQL based Keyv storage adapters", + "homepage": "https://github.com/keyvhq/keyv", + "version": "0.2.0", "main": "src/index.js", - "scripts": { - "test": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava" + "author": { + "email": "lukechilds123@gmail.com", + "name": "Luke Childs", + "url": "http://lukechilds.co.uk" }, - "xo": { - "extends": "xo-lukechilds" - }, - "ava": { - "require": [ - "requirable" - ] + "bugs": { + "url": "https://github.com/keyvhq/keyv/issues" }, "keywords": [ - "sql", - "keyv", - "storage", "adapter", + "cache", "key", - "value", + "keyv", + "sql", + "storage", "store", - "cache", - "ttl" + "ttl", + "value" + ], + "files": [ + "src" ], - "author": "Luke Childs (http://lukechilds.co.uk)", + "scripts": { + "test": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava" + }, "license": "MIT", - "bugs": { - "url": "https://github.com/keyvhq/keyv/issues" + "ava": { + "require": [ + "requirable" + ] }, - "homepage": "https://github.com/keyvhq/keyv", - "gitHead": "a4e2c1f285236a753de13eb8a42d9a98690526cc" + "xo": { + "extends": "xo-lukechilds" + } } diff --git a/packages/keyv-sqlite/.gitignore b/packages/keyv-sqlite/.gitignore deleted file mode 100644 index 67dcb0c..0000000 --- a/packages/keyv-sqlite/.gitignore +++ /dev/null @@ -1,77 +0,0 @@ -test/testdb.sqlite - -## Node - -#npm5 -package-lock.json - -# Logs -logs -*.log -npm-debug.log* - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (http://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules -jspm_packages - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional REPL history -.node_repl_history - -## OS X - -*.DS_Store -.AppleDouble -.LSOverride - -# Icon must end with two \r -Icon - - -# Thumbnails -._* - -# Files that might appear in the root of a volume -.DocumentRevisions-V100 -.fseventsd -.Spotlight-V100 -.TemporaryItems -.Trashes -.VolumeIcon.icns -.com.apple.timemachine.donotpresent - -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk diff --git a/packages/keyv-sqlite/LICENSE b/packages/keyv-sqlite/LICENSE deleted file mode 100644 index f27ee9b..0000000 --- a/packages/keyv-sqlite/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Luke Childs - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/packages/keyv-sqlite/package.json b/packages/keyv-sqlite/package.json index 428356c..629e9ab 100644 --- a/packages/keyv-sqlite/package.json +++ b/packages/keyv-sqlite/package.json @@ -1,41 +1,47 @@ { "name": "@keyvhq/keyv-sqlite", - "version": "0.2.0", "description": "SQLite storage adapter for Keyv", + "homepage": "https://github.com/keyvhq/keyv", + "version": "0.2.0", "main": "src/index.js", - "scripts": { - "test": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava" + "author": { + "email": "lukechilds123@gmail.com", + "name": "Luke Childs", + "url": "http://lukechilds.co.uk" }, - "xo": { - "extends": "xo-lukechilds" - }, - "ava": { - "require": [ - "requirable" - ] + "bugs": { + "url": "https://github.com/keyvhq/keyv/issues" }, "keywords": [ - "sqlite", - "sql", - "keyv", - "storage", "adapter", + "cache", "key", - "value", + "keyv", + "sql", + "sqlite", + "storage", "store", - "cache", - "ttl" + "ttl", + "value" ], - "author": "Luke Childs (http://lukechilds.co.uk)", - "license": "MIT", - "bugs": { - "url": "https://github.com/keyvhq/keyv/issues" - }, - "homepage": "https://github.com/keyvhq/keyv", "dependencies": { - "@keyvhq/keyv-sql": "file:../keyv-sql", + "@keyvhq/keyv-sql": "~0.2.0", "pify": "5.0.0", "sqlite3": "^5.0.2" }, - "gitHead": "a4e2c1f285236a753de13eb8a42d9a98690526cc" + "files": [ + "src" + ], + "scripts": { + "test": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava" + }, + "license": "MIT", + "ava": { + "require": [ + "requirable" + ] + }, + "xo": { + "extends": "xo-lukechilds" + } } diff --git a/packages/keyv-test-suite/.gitignore b/packages/keyv-test-suite/.gitignore deleted file mode 100644 index d646c01..0000000 --- a/packages/keyv-test-suite/.gitignore +++ /dev/null @@ -1,78 +0,0 @@ -test/testdb.sqlite -dist - -## Node - -#npm5 -package-lock.json - -# Logs -logs -*.log -npm-debug.log* - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (http://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules -jspm_packages - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional REPL history -.node_repl_history - -## OS X - -*.DS_Store -.AppleDouble -.LSOverride - -# Icon must end with two \r -Icon - - -# Thumbnails -._* - -# Files that might appear in the root of a volume -.DocumentRevisions-V100 -.fseventsd -.Spotlight-V100 -.TemporaryItems -.Trashes -.VolumeIcon.icns -.com.apple.timemachine.donotpresent - -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk diff --git a/packages/keyv-test-suite/.npmignore b/packages/keyv-test-suite/.npmignore deleted file mode 100644 index e23258e..0000000 --- a/packages/keyv-test-suite/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!src/**/* diff --git a/packages/keyv-test-suite/LICENSE b/packages/keyv-test-suite/LICENSE deleted file mode 100644 index f27ee9b..0000000 --- a/packages/keyv-test-suite/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Luke Childs - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/packages/keyv-test-suite/package.json b/packages/keyv-test-suite/package.json index 5128ca5..021bba8 100644 --- a/packages/keyv-test-suite/package.json +++ b/packages/keyv-test-suite/package.json @@ -1,37 +1,43 @@ { "name": "@keyvhq/keyv-test-suite", - "version": "0.2.0", "description": "Test suite for Keyv API compliancy", + "homepage": "https://github.com/keyvhq/keyv", + "version": "0.2.0", "main": "src/index.js", - "scripts": { - "test": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava", - "coverage": "nyc report --reporter=text-lcov | coveralls", - "release:major": "npm test && npm version major -m \"chore: release\" && git push origin master --tags && npm publish --access public", - "release:minor": "npm test && npm version minor -m \"chore: release\" && git push origin master --tags && npm publish --access public", - "release:patch": "npm test && npm version patch -m \"chore: release\" && git push origin master --tags && npm publish --access public" + "author": { + "email": "lukechilds123@gmail.com", + "name": "Luke Childs", + "url": "http://lukechilds.co.uk" }, - "xo": { - "extends": "xo-lukechilds" + "bugs": { + "url": "https://github.com/keyvhq/keyv/issues" }, "keywords": [ - "test", - "suite", - "tests", + "cache", "key", - "value", "store", - "cache", - "ttl" + "suite", + "test", + "tests", + "ttl", + "value" ], - "author": "Luke Childs (http://lukechilds.co.uk)", - "license": "MIT", - "bugs": { - "url": "https://github.com/keyvhq/keyv/issues" - }, - "homepage": "https://github.com/keyvhq/keyv", "dependencies": { "delay": "^5.0.0", "timekeeper": "^2.0.0" }, - "gitHead": "a4e2c1f285236a753de13eb8a42d9a98690526cc" + "files": [ + "src" + ], + "scripts": { + "coverage": "nyc report --reporter=text-lcov | coveralls", + "release:major": "npm test && npm version major -m \"chore: release\" && git push origin master --tags && npm publish --access public", + "release:minor": "npm test && npm version minor -m \"chore: release\" && git push origin master --tags && npm publish --access public", + "release:patch": "npm test && npm version patch -m \"chore: release\" && git push origin master --tags && npm publish --access public", + "test": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava" + }, + "license": "MIT", + "xo": { + "extends": "xo-lukechilds" + } } diff --git a/packages/keyv/.github/FUNDING.yml b/packages/keyv/.github/FUNDING.yml deleted file mode 100644 index 0c2e22a..0000000 --- a/packages/keyv/.github/FUNDING.yml +++ /dev/null @@ -1,7 +0,0 @@ -github: - - 'lukechilds' -custom: - - 'https://blockstream.info/address/1LukeQU5jwebXbMLDVydeH4vFSobRV9rkj' - - 'https://blockstream.info/address/3Luke2qRn5iLj4NiFrvLBu2jaEj7JeMR6w' - - 'https://blockstream.info/address/bc1qlukeyq0c69v97uss68fet26kjkcsrymd2kv6d4' - - 'https://tippin.me/@lukechilds' diff --git a/packages/keyv/.gitignore b/packages/keyv/.gitignore deleted file mode 100644 index cfc9334..0000000 --- a/packages/keyv/.gitignore +++ /dev/null @@ -1,80 +0,0 @@ -test/testdb.sqlite - -## Node - -#npm5 -package-lock.json - -#yarn -yarn.lock - -# Logs -logs -*.log -npm-debug.log* - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (http://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules -jspm_packages - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional REPL history -.node_repl_history - -## OS X - -*.DS_Store -.AppleDouble -.LSOverride - -# Icon must end with two \r -Icon - - -# Thumbnails -._* - -# Files that might appear in the root of a volume -.DocumentRevisions-V100 -.fseventsd -.Spotlight-V100 -.TemporaryItems -.Trashes -.VolumeIcon.icns -.com.apple.timemachine.donotpresent - -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk diff --git a/packages/keyv/.npmignore b/packages/keyv/.npmignore deleted file mode 100644 index 7a1eba3..0000000 --- a/packages/keyv/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!src diff --git a/packages/keyv/LICENSE b/packages/keyv/LICENSE deleted file mode 100644 index f27ee9b..0000000 --- a/packages/keyv/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Luke Childs - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/packages/keyv/package.json b/packages/keyv/package.json index fec9603..bab3552 100644 --- a/packages/keyv/package.json +++ b/packages/keyv/package.json @@ -1,30 +1,36 @@ { "name": "@keyvhq/keyv", - "version": "0.2.3", "description": "Simple key-value storage with support for multiple backends", + "homepage": "https://github.com/keyvhq/keyv", + "version": "0.2.3", "main": "src/index.js", - "scripts": { - "test": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava test/keyv.js", - "test:full": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava --serial" + "author": { + "email": "lukechilds123@gmail.com", + "name": "Luke Childs", + "url": "http://lukechilds.co.uk" }, - "xo": { - "extends": "xo-lukechilds" + "bugs": { + "url": "https://github.com/keyvhq/keyv/issues" }, "keywords": [ + "cache", "key", - "value", "store", - "cache", - "ttl" + "ttl", + "value" ], - "author": "Luke Childs (http://lukechilds.co.uk)", - "license": "MIT", - "bugs": { - "url": "https://github.com/keyvhq/keyv/issues" - }, - "homepage": "https://github.com/keyvhq/keyv", "dependencies": { "json-buffer": "3.0.1" }, - "gitHead": "a4e2c1f285236a753de13eb8a42d9a98690526cc" + "files": [ + "src" + ], + "scripts": { + "test": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava test/keyv.js", + "test:full": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava --serial" + }, + "license": "MIT", + "xo": { + "extends": "xo-lukechilds" + } }