From 4b7c9ec6cd53906e615acefb0ed87d79c3e42a48 Mon Sep 17 00:00:00 2001 From: Fabian Date: Sat, 23 Mar 2019 18:31:39 -0400 Subject: [PATCH] Updating to new utils version --- package-lock.json | 32 ++++++++++++++++---------------- package.json | 10 +++++----- src/index.ts | 2 +- src/test.ts | 2 +- 4 files changed, 23 insertions(+), 23 deletions(-) diff --git a/package-lock.json b/package-lock.json index b2a9ddc..6371b28 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,13 +1,13 @@ { "name": "@hibas123/secure-file-wrapper", - "version": "2.3.1", + "version": "2.3.4", "lockfileVersion": 1, "requires": true, "dependencies": { "@hibas123/utils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@hibas123/utils/-/utils-1.0.1.tgz", - "integrity": "sha512-CyE5zB7w22eQBcqwxn7GPC9qZZXbhgUjlkgiuztbiigPw/EpPqLHkK79T4bc39N+xhgh1Pp2AGrO5oVjgEFiVA==" + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@hibas123/utils/-/utils-2.0.0.tgz", + "integrity": "sha512-kczMJvwLGqUgnFamxtPJjb7V+C5tKHc3dtgKYaCQexbzwQ44VNlwTngYNK7izRA5HfD0N+abAGA0IoBMDmKDpg==" }, "@types/chai": { "version": "4.1.7", @@ -22,15 +22,15 @@ "dev": true }, "@types/node": { - "version": "11.10.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-11.10.5.tgz", - "integrity": "sha512-DuIRlQbX4K+d5I+GMnv+UfnGh+ist0RdlvOp+JZ7ePJ6KQONCFQv/gKYSU1ZzbVdFSUCKZOltjmpFAGGv5MdYA==", + "version": "11.11.6", + "resolved": "https://registry.npmjs.org/@types/node/-/node-11.11.6.tgz", + "integrity": "sha512-Exw4yUWMBXM3X+8oqzJNRqZSwUAaS4+7NdvHqQuFi/d+synz++xmX3QIf+BFqneW8N31R8Ky+sikfZUXq07ggQ==", "dev": true }, "@types/node-fetch": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.1.6.tgz", - "integrity": "sha512-Hv1jgh3pfpUEl2F2mqUd1AfLSk1YbUCeBJFaP36t7esAO617dErqdxWb5cdG2NfJGOofkmBW36fdx0dVewxDRg==", + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.1.7.tgz", + "integrity": "sha512-TZozHCDVrs0Aj1B9ZR5F4Q9MknDNcVd+hO5lxXOCzz07ELBey6s1gMUSZHUYHlPfRFKJFXiTnNuD7ePiI6S4/g==", "dev": true, "requires": { "@types/node": "*" @@ -1250,7 +1250,7 @@ }, "minimist": { "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=", "dev": true }, @@ -1277,7 +1277,7 @@ }, "mkdirp": { "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=", "dev": true, "requires": { @@ -1534,7 +1534,7 @@ }, "path-is-absolute": { "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=", "dev": true }, @@ -1959,9 +1959,9 @@ "dev": true }, "typescript": { - "version": "3.3.3333", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.3.3333.tgz", - "integrity": "sha512-JjSKsAfuHBE/fB2oZ8NxtRTk5iGcg6hkYXMnZ3Wc+b2RSqejEqTaem11mHASMnFilHrax3sLK0GDzcJrekZYLw==", + "version": "3.3.4000", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.3.4000.tgz", + "integrity": "sha512-jjOcCZvpkl2+z7JFn0yBOoLQyLoIkNZAs/fYJkUG6VKy6zLPHJGfQJYFHzibB6GJaF/8QrcECtlQ5cpvRHSMEA==", "dev": true }, "union-value": { diff --git a/package.json b/package.json index fb5108e..7433d24 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hibas123/secure-file-wrapper", - "version": "2.3.4", + "version": "2.4.0", "main": "lib/index.js", "author": "Fabian Stamm ", "license": "MIT", @@ -12,18 +12,18 @@ "test": "mocha lib/test.js" }, "dependencies": { - "@hibas123/utils": "^1.0.1", + "@hibas123/utils": "^2.0.0", "cross-fetch": "^3.0.1", "uuid": "^3.3.2" }, "devDependencies": { "@types/chai": "^4.1.4", "@types/mocha": "^5.2.6", - "@types/node": "^11.10.5", - "@types/node-fetch": "^2.1.6", + "@types/node": "^11.11.6", + "@types/node-fetch": "^2.1.7", "@types/uuid": "^3.4.4", "chai": "^4.1.2", "mocha": "^6.0.2", - "typescript": "^3.3.3333" + "typescript": "^3.3.4000" } } \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index 7addd70..9392737 100644 --- a/src/index.ts +++ b/src/index.ts @@ -85,7 +85,7 @@ function statusParser(res: Response) { } 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(); private jwt: string; diff --git a/src/test.ts b/src/test.ts index e133bab..429ddee 100644 --- a/src/test.ts +++ b/src/test.ts @@ -167,7 +167,7 @@ function test(sf: SecureFile) { describe("SecureFile Tests", function () { let sf = new SecureFile("http://localhost:3004"); sf.jwtObservable.subscribe((callback) => { - callback[0]("TESTJWT"); + callback("TESTJWT"); }) test(sf) }) \ No newline at end of file