Updating to new utils version

This commit is contained in:
Fabian 2019-03-23 18:31:39 -04:00
parent 92dba5274e
commit 4b7c9ec6cd
4 changed files with 23 additions and 23 deletions

32
package-lock.json generated
View File

@ -1,13 +1,13 @@
{ {
"name": "@hibas123/secure-file-wrapper", "name": "@hibas123/secure-file-wrapper",
"version": "2.3.1", "version": "2.3.4",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
"@hibas123/utils": { "@hibas123/utils": {
"version": "1.0.1", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/@hibas123/utils/-/utils-1.0.1.tgz", "resolved": "https://registry.npmjs.org/@hibas123/utils/-/utils-2.0.0.tgz",
"integrity": "sha512-CyE5zB7w22eQBcqwxn7GPC9qZZXbhgUjlkgiuztbiigPw/EpPqLHkK79T4bc39N+xhgh1Pp2AGrO5oVjgEFiVA==" "integrity": "sha512-kczMJvwLGqUgnFamxtPJjb7V+C5tKHc3dtgKYaCQexbzwQ44VNlwTngYNK7izRA5HfD0N+abAGA0IoBMDmKDpg=="
}, },
"@types/chai": { "@types/chai": {
"version": "4.1.7", "version": "4.1.7",
@ -22,15 +22,15 @@
"dev": true "dev": true
}, },
"@types/node": { "@types/node": {
"version": "11.10.5", "version": "11.11.6",
"resolved": "https://registry.npmjs.org/@types/node/-/node-11.10.5.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-11.11.6.tgz",
"integrity": "sha512-DuIRlQbX4K+d5I+GMnv+UfnGh+ist0RdlvOp+JZ7ePJ6KQONCFQv/gKYSU1ZzbVdFSUCKZOltjmpFAGGv5MdYA==", "integrity": "sha512-Exw4yUWMBXM3X+8oqzJNRqZSwUAaS4+7NdvHqQuFi/d+synz++xmX3QIf+BFqneW8N31R8Ky+sikfZUXq07ggQ==",
"dev": true "dev": true
}, },
"@types/node-fetch": { "@types/node-fetch": {
"version": "2.1.6", "version": "2.1.7",
"resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.1.6.tgz", "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.1.7.tgz",
"integrity": "sha512-Hv1jgh3pfpUEl2F2mqUd1AfLSk1YbUCeBJFaP36t7esAO617dErqdxWb5cdG2NfJGOofkmBW36fdx0dVewxDRg==", "integrity": "sha512-TZozHCDVrs0Aj1B9ZR5F4Q9MknDNcVd+hO5lxXOCzz07ELBey6s1gMUSZHUYHlPfRFKJFXiTnNuD7ePiI6S4/g==",
"dev": true, "dev": true,
"requires": { "requires": {
"@types/node": "*" "@types/node": "*"
@ -1250,7 +1250,7 @@
}, },
"minimist": { "minimist": {
"version": "0.0.8", "version": "0.0.8",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", "resolved": "http://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
"integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=",
"dev": true "dev": true
}, },
@ -1277,7 +1277,7 @@
}, },
"mkdirp": { "mkdirp": {
"version": "0.5.1", "version": "0.5.1",
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "resolved": "http://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
"integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
"dev": true, "dev": true,
"requires": { "requires": {
@ -1534,7 +1534,7 @@
}, },
"path-is-absolute": { "path-is-absolute": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "resolved": "http://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
"integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
"dev": true "dev": true
}, },
@ -1959,9 +1959,9 @@
"dev": true "dev": true
}, },
"typescript": { "typescript": {
"version": "3.3.3333", "version": "3.3.4000",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.3.3333.tgz", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.3.4000.tgz",
"integrity": "sha512-JjSKsAfuHBE/fB2oZ8NxtRTk5iGcg6hkYXMnZ3Wc+b2RSqejEqTaem11mHASMnFilHrax3sLK0GDzcJrekZYLw==", "integrity": "sha512-jjOcCZvpkl2+z7JFn0yBOoLQyLoIkNZAs/fYJkUG6VKy6zLPHJGfQJYFHzibB6GJaF/8QrcECtlQ5cpvRHSMEA==",
"dev": true "dev": true
}, },
"union-value": { "union-value": {

View File

@ -1,6 +1,6 @@
{ {
"name": "@hibas123/secure-file-wrapper", "name": "@hibas123/secure-file-wrapper",
"version": "2.3.4", "version": "2.4.0",
"main": "lib/index.js", "main": "lib/index.js",
"author": "Fabian Stamm <dev@fabianstamm.de>", "author": "Fabian Stamm <dev@fabianstamm.de>",
"license": "MIT", "license": "MIT",
@ -12,18 +12,18 @@
"test": "mocha lib/test.js" "test": "mocha lib/test.js"
}, },
"dependencies": { "dependencies": {
"@hibas123/utils": "^1.0.1", "@hibas123/utils": "^2.0.0",
"cross-fetch": "^3.0.1", "cross-fetch": "^3.0.1",
"uuid": "^3.3.2" "uuid": "^3.3.2"
}, },
"devDependencies": { "devDependencies": {
"@types/chai": "^4.1.4", "@types/chai": "^4.1.4",
"@types/mocha": "^5.2.6", "@types/mocha": "^5.2.6",
"@types/node": "^11.10.5", "@types/node": "^11.11.6",
"@types/node-fetch": "^2.1.6", "@types/node-fetch": "^2.1.7",
"@types/uuid": "^3.4.4", "@types/uuid": "^3.4.4",
"chai": "^4.1.2", "chai": "^4.1.2",
"mocha": "^6.0.2", "mocha": "^6.0.2",
"typescript": "^3.3.3333" "typescript": "^3.3.4000"
} }
} }

View File

@ -85,7 +85,7 @@ function statusParser(res: Response) {
} }
export default class SecureFileWrapper { export default class SecureFileWrapper {
private _jwtObservableServer: Observable<(jwt: string) => void> = new Observable(false); private _jwtObservableServer: Observable<(jwt: string) => void> = new Observable();
jwtObservable = this._jwtObservableServer.getPublicApi(); jwtObservable = this._jwtObservableServer.getPublicApi();
private jwt: string; private jwt: string;

View File

@ -167,7 +167,7 @@ function test(sf: SecureFile) {
describe("SecureFile Tests", function () { describe("SecureFile Tests", function () {
let sf = new SecureFile("http://localhost:3004"); let sf = new SecureFile("http://localhost:3004");
sf.jwtObservable.subscribe((callback) => { sf.jwtObservable.subscribe((callback) => {
callback[0]("TESTJWT"); callback("TESTJWT");
}) })
test(sf) test(sf)
}) })