Browse Source

build: restructure project

master
Kiko Beats 3 years ago
parent
commit
fc8d1b9917
No known key found for this signature in database GPG Key ID: 8FA93B22CCF04B96
  1. 22
      .editorconfig
  2. 1
      .gitattributes
  3. 4
      .npmrc
  4. 12
      LICENSE.md
  5. 0
      media/logo.svg
  6. 8
      package.json
  7. 73
      packages/keyv-mongo/.gitignore
  8. 21
      packages/keyv-mongo/LICENSE
  9. 52
      packages/keyv-mongo/package.json
  10. 76
      packages/keyv-mysql/.gitignore
  11. 21
      packages/keyv-mysql/LICENSE
  12. 56
      packages/keyv-mysql/package.json
  13. 75
      packages/keyv-postgres/.gitignore
  14. 54
      packages/keyv-postgres/package.json
  15. 76
      packages/keyv-redis/.gitignore
  16. 2
      packages/keyv-redis/.npmignore
  17. 21
      packages/keyv-redis/LICENSE
  18. 56
      packages/keyv-redis/package.json
  19. 74
      packages/keyv-sql/.gitignore
  20. 2
      packages/keyv-sql/.npmignore
  21. 21
      packages/keyv-sql/LICENSE
  22. 48
      packages/keyv-sql/package.json
  23. 77
      packages/keyv-sqlite/.gitignore
  24. 21
      packages/keyv-sqlite/LICENSE
  25. 56
      packages/keyv-sqlite/package.json
  26. 78
      packages/keyv-test-suite/.gitignore
  27. 2
      packages/keyv-test-suite/.npmignore
  28. 21
      packages/keyv-test-suite/LICENSE
  29. 50
      packages/keyv-test-suite/package.json
  30. 7
      packages/keyv/.github/FUNDING.yml
  31. 80
      packages/keyv/.gitignore
  32. 2
      packages/keyv/.npmignore
  33. 21
      packages/keyv/LICENSE
  34. 38
      packages/keyv/package.json

22
.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

1
.gitattributes

@ -0,0 +1 @@
* text=auto

4
.npmrc

@ -0,0 +1,4 @@
unsafe-perm=true
save-prefix=~
shrinkwrap=false
save=false

12
packages/keyv-postgres/LICENSE → LICENSE.md

@ -1,6 +1,6 @@
MIT License The MIT License (MIT)
Copyright (c) 2017 Luke Childs Copyright © 2021 Kiko Beats <hello@kikobeats.com> (httpss://kikobeats.com)
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal 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 copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all The above copyright notice and this permission notice shall be included in
copies or substantial portions of the Software. all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 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 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
SOFTWARE. THE SOFTWARE.

0
packages/keyv/media/logo.svg → media/logo.svg

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

8
package.json

@ -2,14 +2,6 @@
"name": "@keyvhq/mono", "name": "@keyvhq/mono",
"private": "true", "private": "true",
"devDependencies": { "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", "ava": "^3.15.0",
"coveralls": "^3.0.0", "coveralls": "^3.0.0",
"delay": "^4.3.0", "delay": "^4.3.0",

73
packages/keyv-mongo/.gitignore

@ -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

21
packages/keyv-mongo/LICENSE

@ -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.

52
packages/keyv-mongo/package.json

@ -1,40 +1,46 @@
{ {
"name": "@keyvhq/keyv-mongo", "name": "@keyvhq/keyv-mongo",
"version": "0.2.0",
"description": "MongoDB storage adapter for Keyv", "description": "MongoDB storage adapter for Keyv",
"homepage": "https://github.com/keyvhq/keyv",
"version": "0.2.0",
"main": "src/index.js", "main": "src/index.js",
"scripts": { "author": {
"test": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava" "email": "lukechilds123@gmail.com",
"name": "Luke Childs",
"url": "http://lukechilds.co.uk"
}, },
"xo": { "bugs": {
"extends": "xo-lukechilds" "url": "https://github.com/keyvhq/keyv/issues"
},
"ava": {
"require": [
"requirable"
]
}, },
"keywords": [ "keywords": [
"adapter",
"cache",
"key",
"keyv",
"mongo", "mongo",
"mongodb", "mongodb",
"keyv",
"storage", "storage",
"adapter",
"key",
"value",
"store", "store",
"cache", "ttl",
"ttl" "value"
], ],
"author": "Luke Childs <lukechilds123@gmail.com> (http://lukechilds.co.uk)",
"license": "MIT",
"bugs": {
"url": "https://github.com/keyvhq/keyv/issues"
},
"homepage": "https://github.com/keyvhq/keyv",
"dependencies": { "dependencies": {
"mongodb": "^3.6.5", "mongodb": "^3.6.5",
"pify": "^5.0.0" "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"
}
} }

76
packages/keyv-mysql/.gitignore

@ -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

21
packages/keyv-mysql/LICENSE

@ -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.

56
packages/keyv-mysql/package.json

@ -1,41 +1,47 @@
{ {
"name": "@keyvhq/keyv-mysql", "name": "@keyvhq/keyv-mysql",
"version": "0.2.0",
"description": "MySQL/MariaDB storage adapter for Keyv", "description": "MySQL/MariaDB storage adapter for Keyv",
"homepage": "https://github.com/keyvhq/keyv",
"version": "0.2.0",
"main": "src/index.js", "main": "src/index.js",
"scripts": { "author": {
"test": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava" "email": "lukechilds123@gmail.com",
"name": "Luke Childs",
"url": "http://lukechilds.co.uk"
}, },
"xo": { "bugs": {
"extends": "xo-lukechilds" "url": "https://github.com/keyvhq/keyv/issues"
},
"ava": {
"require": [
"requirable"
]
}, },
"keywords": [ "keywords": [
"mysql", "adapter",
"cache",
"key",
"keyv",
"mariadb", "mariadb",
"mysql",
"sql", "sql",
"keyv",
"storage", "storage",
"adapter",
"key",
"value",
"store", "store",
"cache", "ttl",
"ttl" "value"
], ],
"author": "Luke Childs <lukechilds123@gmail.com> (http://lukechilds.co.uk)",
"license": "MIT",
"bugs": {
"url": "https://github.com/keyvhq/keyv/issues"
},
"homepage": "https://github.com/keyvhq/keyv",
"dependencies": { "dependencies": {
"@keyvhq/keyv-sql": "file:../keyv-sql", "@keyvhq/keyv-sql": "~0.2.0",
"mysql2": "2.2.5" "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"
}
} }

75
packages/keyv-postgres/.gitignore

@ -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

54
packages/keyv-postgres/package.json

@ -1,41 +1,47 @@
{ {
"name": "@keyvhq/keyv-postgres", "name": "@keyvhq/keyv-postgres",
"version": "0.2.0",
"description": "PostgreSQL storage adapter for Keyv", "description": "PostgreSQL storage adapter for Keyv",
"homepage": "https://github.com/keyvhq/keyv",
"version": "0.2.0",
"main": "src/index.js", "main": "src/index.js",
"scripts": { "author": {
"test": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava --serial" "email": "lukechilds123@gmail.com",
"name": "Luke Childs",
"url": "http://lukechilds.co.uk"
}, },
"xo": { "bugs": {
"extends": "xo-lukechilds" "url": "https://github.com/keyvhq/keyv/issues"
},
"ava": {
"require": [
"requirable"
]
}, },
"keywords": [ "keywords": [
"adapter",
"cache",
"key",
"keyv",
"postgres", "postgres",
"postgresql", "postgresql",
"sql", "sql",
"keyv",
"storage", "storage",
"adapter",
"key",
"value",
"store", "store",
"cache", "ttl",
"ttl" "value"
], ],
"author": "Luke Childs <lukechilds123@gmail.com> (http://lukechilds.co.uk)",
"license": "MIT",
"bugs": {
"url": "https://github.com/keyvhq/keyv/issues"
},
"homepage": "https://github.com/keyvhq/keyv",
"dependencies": { "dependencies": {
"@keyvhq/keyv-sql": "file:../keyv-sql", "@keyvhq/keyv-sql": "~0.2.0",
"pg": "8.6.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"
}
} }

76
packages/keyv-redis/.gitignore

@ -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

2
packages/keyv-redis/.npmignore

@ -1,2 +0,0 @@
*
!src

21
packages/keyv-redis/LICENSE

@ -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.

56
packages/keyv-redis/package.json

@ -1,41 +1,47 @@
{ {
"name": "@keyvhq/keyv-redis", "name": "@keyvhq/keyv-redis",
"version": "0.2.0",
"description": "Redis storage adapter for Keyv", "description": "Redis storage adapter for Keyv",
"homepage": "https://github.com/keyvhq/keyv",
"version": "0.2.0",
"main": "src/index.js", "main": "src/index.js",
"scripts": { "author": {
"test": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava", "email": "lukechilds123@gmail.com",
"test:docker": "docker-compose up --build --abort-on-container-exit --exit-code-from test", "name": "Luke Childs",
"posttest:docker": "docker-compose down --rmi local" "url": "http://lukechilds.co.uk"
}, },
"xo": { "bugs": {
"extends": "xo-lukechilds" "url": "https://github.com/keyvhq/keyv/issues"
},
"ava": {
"require": [
"requirable"
]
}, },
"keywords": [ "keywords": [
"redis",
"keyv",
"storage",
"adapter", "adapter",
"cache",
"key", "key",
"value", "keyv",
"redis",
"storage",
"store", "store",
"cache", "ttl",
"ttl" "value"
], ],
"author": "Luke Childs <lukechilds123@gmail.com> (http://lukechilds.co.uk)",
"license": "MIT",
"bugs": {
"url": "https://github.com/keyvhq/keyv/issues"
},
"homepage": "https://github.com/keyvhq/keyv",
"dependencies": { "dependencies": {
"ioredis": "~4.17.1", "ioredis": "~4.17.1",
"p-event": "~4.2.0" "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"
}
} }

74
packages/keyv-sql/.gitignore

@ -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

2
packages/keyv-sql/.npmignore

@ -1,2 +0,0 @@
*
!src/**/*

21
packages/keyv-sql/LICENSE

@ -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.

48
packages/keyv-sql/package.json

@ -1,35 +1,41 @@
{ {
"name": "@keyvhq/keyv-sql", "name": "@keyvhq/keyv-sql",
"version": "0.2.0",
"description": "Parent class for SQL based Keyv storage adapters", "description": "Parent class for SQL based Keyv storage adapters",
"homepage": "https://github.com/keyvhq/keyv",
"version": "0.2.0",
"main": "src/index.js", "main": "src/index.js",
"scripts": { "author": {
"test": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava" "email": "lukechilds123@gmail.com",
"name": "Luke Childs",
"url": "http://lukechilds.co.uk"
}, },
"xo": { "bugs": {
"extends": "xo-lukechilds" "url": "https://github.com/keyvhq/keyv/issues"
},
"ava": {
"require": [
"requirable"
]
}, },
"keywords": [ "keywords": [
"sql",
"keyv",
"storage",
"adapter", "adapter",
"cache",
"key", "key",
"value", "keyv",
"sql",
"storage",
"store", "store",
"cache", "ttl",
"ttl" "value"
],
"files": [
"src"
], ],
"author": "Luke Childs <lukechilds123@gmail.com> (http://lukechilds.co.uk)", "scripts": {
"test": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava"
},
"license": "MIT", "license": "MIT",
"bugs": { "ava": {
"url": "https://github.com/keyvhq/keyv/issues" "require": [
"requirable"
]
}, },
"homepage": "https://github.com/keyvhq/keyv", "xo": {
"gitHead": "a4e2c1f285236a753de13eb8a42d9a98690526cc" "extends": "xo-lukechilds"
}
} }

77
packages/keyv-sqlite/.gitignore

@ -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

21
packages/keyv-sqlite/LICENSE

@ -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.

56
packages/keyv-sqlite/package.json

@ -1,41 +1,47 @@
{ {
"name": "@keyvhq/keyv-sqlite", "name": "@keyvhq/keyv-sqlite",
"version": "0.2.0",
"description": "SQLite storage adapter for Keyv", "description": "SQLite storage adapter for Keyv",
"homepage": "https://github.com/keyvhq/keyv",
"version": "0.2.0",
"main": "src/index.js", "main": "src/index.js",
"scripts": { "author": {
"test": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava" "email": "lukechilds123@gmail.com",
"name": "Luke Childs",
"url": "http://lukechilds.co.uk"
}, },
"xo": { "bugs": {
"extends": "xo-lukechilds" "url": "https://github.com/keyvhq/keyv/issues"
},
"ava": {
"require": [
"requirable"
]
}, },
"keywords": [ "keywords": [
"sqlite",
"sql",
"keyv",
"storage",
"adapter", "adapter",
"cache",
"key", "key",
"value", "keyv",
"sql",
"sqlite",
"storage",
"store", "store",
"cache", "ttl",
"ttl" "value"
], ],
"author": "Luke Childs <lukechilds123@gmail.com> (http://lukechilds.co.uk)",
"license": "MIT",
"bugs": {
"url": "https://github.com/keyvhq/keyv/issues"
},
"homepage": "https://github.com/keyvhq/keyv",
"dependencies": { "dependencies": {
"@keyvhq/keyv-sql": "file:../keyv-sql", "@keyvhq/keyv-sql": "~0.2.0",
"pify": "5.0.0", "pify": "5.0.0",
"sqlite3": "^5.0.2" "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"
}
} }

78
packages/keyv-test-suite/.gitignore

@ -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

2
packages/keyv-test-suite/.npmignore

@ -1,2 +0,0 @@
*
!src/**/*

21
packages/keyv-test-suite/LICENSE

@ -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.

50
packages/keyv-test-suite/package.json

@ -1,37 +1,43 @@
{ {
"name": "@keyvhq/keyv-test-suite", "name": "@keyvhq/keyv-test-suite",
"version": "0.2.0",
"description": "Test suite for Keyv API compliancy", "description": "Test suite for Keyv API compliancy",
"homepage": "https://github.com/keyvhq/keyv",
"version": "0.2.0",
"main": "src/index.js", "main": "src/index.js",
"scripts": { "author": {
"test": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava", "email": "lukechilds123@gmail.com",
"coverage": "nyc report --reporter=text-lcov | coveralls", "name": "Luke Childs",
"release:major": "npm test && npm version major -m \"chore: release\" && git push origin master --tags && npm publish --access public", "url": "http://lukechilds.co.uk"
"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"
}, },
"xo": { "bugs": {
"extends": "xo-lukechilds" "url": "https://github.com/keyvhq/keyv/issues"
}, },
"keywords": [ "keywords": [
"test", "cache",
"suite",
"tests",
"key", "key",
"value",
"store", "store",
"cache", "suite",
"ttl" "test",
"tests",
"ttl",
"value"
], ],
"author": "Luke Childs <lukechilds123@gmail.com> (http://lukechilds.co.uk)",
"license": "MIT",
"bugs": {
"url": "https://github.com/keyvhq/keyv/issues"
},
"homepage": "https://github.com/keyvhq/keyv",
"dependencies": { "dependencies": {
"delay": "^5.0.0", "delay": "^5.0.0",
"timekeeper": "^2.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"
}
} }

7
packages/keyv/.github/FUNDING.yml

@ -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'

80
packages/keyv/.gitignore

@ -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

2
packages/keyv/.npmignore

@ -1,2 +0,0 @@
*
!src

21
packages/keyv/LICENSE

@ -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.

38
packages/keyv/package.json

@ -1,30 +1,36 @@
{ {
"name": "@keyvhq/keyv", "name": "@keyvhq/keyv",
"version": "0.2.3",
"description": "Simple key-value storage with support for multiple backends", "description": "Simple key-value storage with support for multiple backends",
"homepage": "https://github.com/keyvhq/keyv",
"version": "0.2.3",
"main": "src/index.js", "main": "src/index.js",
"scripts": { "author": {
"test": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava test/keyv.js", "email": "lukechilds123@gmail.com",
"test:full": "xo && nyc --no-clean --temp-dir ../../.nyc_output ava --serial" "name": "Luke Childs",
"url": "http://lukechilds.co.uk"
}, },
"xo": { "bugs": {
"extends": "xo-lukechilds" "url": "https://github.com/keyvhq/keyv/issues"
}, },
"keywords": [ "keywords": [
"cache",
"key", "key",
"value",
"store", "store",
"cache", "ttl",
"ttl" "value"
], ],
"author": "Luke Childs <lukechilds123@gmail.com> (http://lukechilds.co.uk)",
"license": "MIT",
"bugs": {
"url": "https://github.com/keyvhq/keyv/issues"
},
"homepage": "https://github.com/keyvhq/keyv",
"dependencies": { "dependencies": {
"json-buffer": "3.0.1" "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"
}
} }

Loading…
Cancel
Save