@duffel/api 1.8.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Client.d.ts +3 -1
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +3 -1
- package/package.json +5 -4
package/dist/types/index.d.ts
CHANGED
|
@@ -2118,13 +2118,15 @@ interface Config {
|
|
|
2118
2118
|
basePath?: string;
|
|
2119
2119
|
apiVersion?: string;
|
|
2120
2120
|
debug?: SDKOptions;
|
|
2121
|
+
source?: string;
|
|
2121
2122
|
}
|
|
2122
2123
|
declare class Client {
|
|
2123
2124
|
private token;
|
|
2124
2125
|
private basePath;
|
|
2125
2126
|
private apiVersion;
|
|
2126
2127
|
private debug;
|
|
2127
|
-
|
|
2128
|
+
private source;
|
|
2129
|
+
constructor({ token, basePath, apiVersion, debug, source }: Config);
|
|
2128
2130
|
request: <T_Data = any>({ method, path, data, params, compress, }: {
|
|
2129
2131
|
method: string;
|
|
2130
2132
|
path: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duffel/api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "Javascript client library for the Duffel API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -47,8 +47,9 @@
|
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@types/node": "^17.0.
|
|
51
|
-
"node-fetch": "^
|
|
50
|
+
"@types/node": "^17.0.21",
|
|
51
|
+
"@types/node-fetch": "^2.6.1",
|
|
52
|
+
"node-fetch": "2.6.7"
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
54
55
|
"@babel/core": "^7.15.5",
|
|
@@ -70,7 +71,7 @@
|
|
|
70
71
|
"eslint-config-prettier": "^8.3.0",
|
|
71
72
|
"eslint-plugin-spellcheck": "^0.0.19",
|
|
72
73
|
"husky": "^7.0.0",
|
|
73
|
-
"jest": "^27.
|
|
74
|
+
"jest": "^27.5.1",
|
|
74
75
|
"lint-staged": "^12.0.1",
|
|
75
76
|
"nock": "^13.1.0",
|
|
76
77
|
"prettier": "^2.4.1",
|