@neoskop/ethereal-secrets-client
Advanced tools
Comparing version 1.2.0 to 1.2.3
@@ -26,8 +26,8 @@ export interface EtherealSecretsClientConfig { | ||
removeRemote(fragmentIdentifier: string): Promise<void>; | ||
saveRemote(clearText: string, ttl?: number): Promise<RemoteSaveResult>; | ||
private parseFragmentIdentifier(fragmentIdentifier); | ||
private generateLocalSecret(); | ||
private decryptCipherText(cipherText); | ||
private encryptClearText(value); | ||
private retrieveRemoteSecret(); | ||
saveRemote(clearText: string): Promise<RemoteSaveResult>; | ||
private parseFragmentIdentifier; | ||
private generateLocalSecret; | ||
private decryptCipherText; | ||
private encryptClearText; | ||
private retrieveRemoteSecret; | ||
} |
@@ -80,3 +80,3 @@ "use strict"; | ||
}; | ||
EtherealSecretsClient.prototype.saveRemote = function (clearText, ttl) { | ||
EtherealSecretsClient.prototype.saveRemote = function (clearText) { | ||
var secret = this.generateLocalSecret(); | ||
@@ -86,3 +86,3 @@ var cipherText = sjcl.encrypt(secret, clearText); | ||
.post(this._endpoint) | ||
.send({ data: cipherText.toString(), ttl: ttl }) | ||
.send({ data: cipherText.toString() }) | ||
.accept("application/json") | ||
@@ -89,0 +89,0 @@ .then(function (res) { |
{ | ||
"name": "@neoskop/ethereal-secrets-client", | ||
"version": "1.2.0", | ||
"version": "1.2.3", | ||
"main": "dist/index.js", | ||
@@ -8,3 +8,2 @@ "typings": "dist/index.d.ts", | ||
"license": "MIT", | ||
"repository": "https://github.com/neoskop/ethereal-secrets", | ||
"files": [ | ||
@@ -17,26 +16,26 @@ "dist" | ||
"build": "npm run clean; npm run tsc", | ||
"start": "mocha -w --inspect=0.0.0.0:9229 --compilers ts:ts-node/register src/test/*.ts", | ||
"test": "nyc --reporter=text mocha --compilers ts:ts-node/register src/test/*.ts" | ||
"start": "mocha -w --inspect=0.0.0.0:9229 --require ts-node/register src/test/*.ts", | ||
"test": "nyc --reporter=text mocha --require ts-node/register src/test/*.ts" | ||
}, | ||
"devDependencies": { | ||
"@types/chai": "4.1.2", | ||
"@types/chai-as-promised": "0.0.31", | ||
"@types/mocha": "2.2.48", | ||
"chai": "4.1.2", | ||
"chai-as-promised": "^7.1.1", | ||
"concurrently": "4.1.0", | ||
"mocha": "^5.2.0", | ||
"node-localstorage": "^1.3.0", | ||
"nyc": "^14.1.1", | ||
"rimraf": "2.6.2", | ||
"ts-node": "^3.0.6", | ||
"typescript": "2.7.1" | ||
"@types/chai": "4.2.7", | ||
"@types/chai-as-promised": "7.1.2", | ||
"@types/mocha": "5.2.7", | ||
"chai": "4.2.0", | ||
"chai-as-promised": "7.1.1", | ||
"concurrently": "5.0.2", | ||
"mocha": "6.2.2", | ||
"node-localstorage": "2.1.5", | ||
"nyc": "14.1.1", | ||
"rimraf": "3.0.0", | ||
"ts-node": "8.5.4", | ||
"typescript": "3.7.3" | ||
}, | ||
"dependencies": { | ||
"@types/bluebird": "3.5.20", | ||
"@types/sjcl": "^1.0.28", | ||
"@types/superagent": "3.5.7", | ||
"bluebird": "3.5.1", | ||
"sjcl": "^1.0.7", | ||
"superagent": "3.8.2" | ||
"@types/bluebird": "3.5.29", | ||
"@types/sjcl": "1.0.28", | ||
"@types/superagent": "4.1.4", | ||
"bluebird": "3.7.2", | ||
"sjcl": "1.0.8", | ||
"superagent": "5.1.2" | ||
}, | ||
@@ -61,4 +60,4 @@ "nyc": { | ||
"engines": { | ||
"node": "12.4.0" | ||
"node": ">= 12.4.0" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
24909
1
+ Added@types/bluebird@3.5.29(transitive)
+ Added@types/cookiejar@2.1.5(transitive)
+ Added@types/sjcl@1.0.28(transitive)
+ Added@types/superagent@4.1.4(transitive)
+ Addedbluebird@3.7.2(transitive)
+ Addeddebug@4.4.0(transitive)
+ Addedfast-safe-stringify@2.1.1(transitive)
+ Addedform-data@3.0.2(transitive)
+ Addedmime@2.6.0(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedsemver@6.3.1(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedsuperagent@5.1.2(transitive)
- Removed@types/bluebird@3.5.20(transitive)
- Removed@types/sjcl@1.0.34(transitive)
- Removed@types/superagent@3.5.7(transitive)
- Removedbluebird@3.5.1(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removeddebug@3.2.7(transitive)
- Removedextend@3.0.2(transitive)
- Removedform-data@2.5.2(transitive)
- Removedisarray@1.0.0(transitive)
- Removedmime@1.6.0(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedsuperagent@3.8.2(transitive)
Updated@types/bluebird@3.5.29
Updated@types/sjcl@1.0.28
Updated@types/superagent@4.1.4
Updatedbluebird@3.7.2
Updatedsjcl@1.0.8
Updatedsuperagent@5.1.2