From 75fcb8320037eeb80fa6147673e4437ec66c2488 Mon Sep 17 00:00:00 2001 From: Selcuk Kekec Date: Tue, 22 Mar 2022 02:52:21 +0100 Subject: [PATCH] chore: ts fixed --- package-lock.json | 23 +++++++++++++++++++++-- package.json | 1 + src/client.ts | 3 +-- 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4b7407c..0050bdc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@diakem/dexcom-api-client", - "version": "0.0.6", + "version": "0.1.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@diakem/dexcom-api-client", - "version": "0.0.6", + "version": "0.1.0", "license": "MIT", "dependencies": { "axios": "^0.26.1", @@ -23,6 +23,7 @@ "@commitlint/cli": "^16.1.0", "@commitlint/config-conventional": "^16.0.0", "@release-it/conventional-changelog": "^4.2.2", + "@types/node-schedule": "^1.3.2", "@typescript-eslint/eslint-plugin": "^5.11.0", "@typescript-eslint/parser": "^5.11.0", "babel-watch": "^7.7.0", @@ -2720,6 +2721,15 @@ "integrity": "sha512-8FwbVoG4fy+ykY86XCAclKZDORttqE5/s7dyWZKLXTdv3vRy5HozBEinG5IqhvPXXzIZEcTVbuHlQEI6iuwcmw==", "dev": true }, + "node_modules/@types/node-schedule": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@types/node-schedule/-/node-schedule-1.3.2.tgz", + "integrity": "sha512-Y0CqdAr+lCpArT8CJJjJq4U2v8Bb5e7ru2nV/NhDdaptCMCRdOL3Y7tAhen39HluQMaIKWvPbDuiFBUQpg7Srw==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, "node_modules/@types/normalize-package-data": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz", @@ -12190,6 +12200,15 @@ "integrity": "sha512-8FwbVoG4fy+ykY86XCAclKZDORttqE5/s7dyWZKLXTdv3vRy5HozBEinG5IqhvPXXzIZEcTVbuHlQEI6iuwcmw==", "dev": true }, + "@types/node-schedule": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@types/node-schedule/-/node-schedule-1.3.2.tgz", + "integrity": "sha512-Y0CqdAr+lCpArT8CJJjJq4U2v8Bb5e7ru2nV/NhDdaptCMCRdOL3Y7tAhen39HluQMaIKWvPbDuiFBUQpg7Srw==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, "@types/normalize-package-data": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz", diff --git a/package.json b/package.json index dd8fcbe..8083f9f 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "@commitlint/cli": "^16.1.0", "@commitlint/config-conventional": "^16.0.0", "@release-it/conventional-changelog": "^4.2.2", + "@types/node-schedule": "^1.3.2", "@typescript-eslint/eslint-plugin": "^5.11.0", "@typescript-eslint/parser": "^5.11.0", "babel-watch": "^7.7.0", diff --git a/src/client.ts b/src/client.ts index 00e46e5..376a31a 100644 --- a/src/client.ts +++ b/src/client.ts @@ -124,9 +124,8 @@ export const DexcomApiClient = ({ attempt += 1; }, delay); }; - const job = schedule.scheduleJob(`${runPoints.join(',')} * * * *`, proc); - return job; + return schedule.scheduleJob(`${runPoints.join(',')} * * * *`, proc); }; return { login,