New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

storage-abstraction

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storage-abstraction - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

dist/src/AbstractStorage.d.ts

15

package.json
{
"name": "storage-abstraction",
"version": "1.1.3",
"version": "1.1.4",
"description": "Provides an API for storing and retrieving files from a storage; this storage can be local or in the cloud.",

@@ -8,6 +8,3 @@ "main": "dist/index.js",

"files": [
"dist/*",
"tests/data/*",
"tests/test.ts",
"tests/test.jasmine.ts"
"dist/*"
],

@@ -43,5 +40,7 @@ "dependencies": {

"test-local": "TYPE='TYPE_LOCAL' jasmine-ts ./tests/*.ts",
"test": "npm run test-local",
"test2": "ts-node ./tests/test",
"test-all": "npm run test-local && npm run test-google && npm run test-amazon",
"test": "npm run test-local && npm run test-google && npm run test-amazon",
"test2-google": "TYPE='TYPE_GOOGLE_CLOUD' ts-node ./tests/test",
"test2-amazon": "TYPE='TYPE_AMAZON_S3' ts-node ./tests/test",
"test2-local": "TYPE='TYPE_LOCAL' ts-node ./tests/test",
"test2": "npm run test2-local && npm run test2-google && npm run test2-amazon",
"tsc2": "node_modules/.bin/tsc --module commonjs --esModuleInterop --declaration --outDir dist index.ts",

@@ -48,0 +47,0 @@ "copy": "cd ./example/backend && ./copy.sh",

@@ -152,10 +152,6 @@ # Storage Abstraction

You can run a Jasmine test suite that tests the local storage type:
If you want to run the tests you have to checkout the repository from github and install all dependencies with ```npm install```. The tests test all storage types; for Google Cloud and Amazon S3 you need add your credentials to a `.env` file, see the file `.env.default` for more explanation. To run the Jasmine tests use this command:
```npm test```
You can perform the same tests on a Google Cloud and Amazon S3 storage if you add your secret data to a `.env` file, see the file `.env.default` for more explanation. To run all 3 tests use this command:
```npm run test-all```
You can find some additional non-Jasmine tests in the file `tests/test.ts`. Uncomment the type of storage you want to test and run:

@@ -162,0 +158,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc