@telefonica/object-storage
Advanced tools
Comparing version 2.1.0 to 2.2.0
"use strict"; | ||
var storage_1 = require('./storage'); | ||
var storage_1 = require("./storage"); | ||
exports.ObjectStorage = storage_1.ObjectStorage; | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
const logger = require('logops'); | ||
const uuid = require('node-uuid'); | ||
const logger = require("logops"); | ||
const uuid = require("node-uuid"); | ||
const AWS = require('aws-sdk'); | ||
@@ -33,3 +33,3 @@ class ObjectStorage { | ||
Key: params.Key, | ||
Expires: 120 | ||
Expires: 2 * 24 * 60 * 60 | ||
}; | ||
@@ -36,0 +36,0 @@ let url = this.s3.getSignedUrl('getObject', urlParams); |
{ | ||
"name": "@telefonica/object-storage", | ||
"version": "2.1.0", | ||
"description": "Object storage publishes objects in a safe and accessible place", | ||
"license": "UNLICENSED", | ||
"repository": "https://github.com/Telefonica/yot-bot", | ||
"author": "TDAF", | ||
"version": "2.2.0", | ||
"description": "Upload and keep objects in a S3 storage", | ||
"license": "Apache-2.0", | ||
"repository": "https://github.com/Telefonica/object-storage", | ||
"author": "TDAF <tdaf@tid.es>", | ||
"keywords": [ | ||
@@ -12,6 +12,2 @@ "s3", | ||
], | ||
"files": [ | ||
"lib", | ||
"bin" | ||
], | ||
"main": "lib/index.js", | ||
@@ -18,0 +14,0 @@ "scripts": { |
# object-storage | ||
This is a tool to upload and keep objects in a safe place. | ||
This is a tool to upload and keep objects in a S3 storage. | ||
## Usage examples | ||
It has been tested with Telefónica Cloud Storage, that is S3 compatible. | ||
```javascript | ||
@@ -11,1 +13,23 @@ let storage = new ObjectStorage(); | ||
``` | ||
Set the following env variables: | ||
- S3_ENDPOINT | ||
- S3_BUCKET | ||
- S3_ACCESS_KEY_ID | ||
- S3_SECRET_ACCESS_KEY | ||
## LICENSE | ||
Copyright 2016 [Telefónica I+D](http://www.tid.es) | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Explicitly Unlicensed Item
License(Experimental) Something was found which is explicitly marked as unlicensed.
Found 1 instance in 1 package
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
18110
12
0
0
0
100
148
34