@novu/client
Advanced tools
Comparing version 2.0.0-canary.0 to 2.0.0-canary.1
@@ -10,2 +10,3 @@ import { ApiOptions } from '..'; | ||
disposeAuthorizationToken(): void; | ||
updateHeaders(headers: Record<string, string>): void; | ||
getFullResponse(url: string, params?: CustomDataType): Promise<any>; | ||
@@ -12,0 +13,0 @@ get(url: string, params?: CustomDataType): Promise<any>; |
@@ -16,3 +16,3 @@ "use strict"; | ||
const PACKAGE_NAME = '@novu/client'; | ||
const PACKAGE_VERSION = '0.42.0'; | ||
const PACKAGE_VERSION = '2.0.0-canary.0'; | ||
const DEFAULT_USER_AGENT = `${PACKAGE_NAME}-${PACKAGE_VERSION}`; | ||
@@ -34,2 +34,5 @@ class HttpClient { | ||
} | ||
updateHeaders(headers) { | ||
this.headers = Object.assign(Object.assign({}, this.headers), headers); | ||
} | ||
getFullResponse(url, params) { | ||
@@ -36,0 +39,0 @@ return __awaiter(this, void 0, void 0, function* () { |
@@ -10,2 +10,3 @@ import { ApiOptions } from '..'; | ||
disposeAuthorizationToken(): void; | ||
updateHeaders(headers: Record<string, string>): void; | ||
getFullResponse(url: string, params?: CustomDataType): Promise<any>; | ||
@@ -12,0 +13,0 @@ get(url: string, params?: CustomDataType): Promise<any>; |
@@ -13,3 +13,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
const PACKAGE_NAME = '@novu/client'; | ||
const PACKAGE_VERSION = '0.42.0'; | ||
const PACKAGE_VERSION = '2.0.0-canary.0'; | ||
const DEFAULT_USER_AGENT = `${PACKAGE_NAME}-${PACKAGE_VERSION}`; | ||
@@ -31,2 +31,5 @@ export class HttpClient { | ||
} | ||
updateHeaders(headers) { | ||
this.headers = Object.assign(Object.assign({}, this.headers), headers); | ||
} | ||
getFullResponse(url, params) { | ||
@@ -33,0 +36,0 @@ return __awaiter(this, void 0, void 0, function* () { |
{ | ||
"name": "@novu/client", | ||
"version": "2.0.0-canary.0", | ||
"version": "2.0.0-canary.1", | ||
"repository": "https://github.com/novuhq/novu", | ||
@@ -47,7 +47,7 @@ "description": "API client to be used in end user environments", | ||
"dependencies": { | ||
"@novu/shared": "2.0.0-canary.0" | ||
"@novu/shared": "^2.0.0-canary.1" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "29.5.2", | ||
"@types/node": "^14.6.0", | ||
"@types/node": "^20.14.10", | ||
"codecov": "^3.5.0", | ||
@@ -54,0 +54,0 @@ "jest": "^27.0.6", |
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
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
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
46849
855
2
+ Added@novu/shared@2.1.2(transitive)
- Removed@novu/shared@2.0.0-canary.0(transitive)
- Removed@types/validator@13.12.2(transitive)
- Removedclass-transformer@0.5.1(transitive)
- Removedclass-validator@0.14.0(transitive)
- Removedlibphonenumber-js@1.11.14(transitive)
- Removedvalidator@13.12.0(transitive)
Updated@novu/shared@^2.0.0-canary.1