n8n-nodes-apiinfo 0.1.14 → 0.1.17
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiInfoApi.credentials.js","sourceRoot":"","sources":["../../credentials/ApiInfoApi.credentials.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ApiInfoApi.credentials.js","sourceRoot":"","sources":["../../credentials/ApiInfoApi.credentials.ts"],"names":[],"mappings":";;;AAKA,MAAa,UAAU;IAAvB;QACI,SAAI,GAAG,YAAY,CAAC;QACpB,gBAAW,GAAG,cAAc,CAAC;QAC7B,qBAAgB,GAAG,8BAA8B,CAAC;QAClD,eAAU,GAAsB;YAC5B;gBACI,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACd;SACJ,CAAC;IACN,CAAC;CAAA;AAZD,gCAYC"}
|
|
@@ -130,7 +130,7 @@ class ApiInfo {
|
|
|
130
130
|
const credentials = await this.getCredentials('apiInfoApi');
|
|
131
131
|
const options = {
|
|
132
132
|
method: 'GET',
|
|
133
|
-
|
|
133
|
+
url: `https://ipinfo.io${path}`,
|
|
134
134
|
qs: {
|
|
135
135
|
token: credentials.accessToken,
|
|
136
136
|
},
|
|
@@ -141,7 +141,7 @@ class ApiInfo {
|
|
|
141
141
|
delete responseData.readme;
|
|
142
142
|
}
|
|
143
143
|
else {
|
|
144
|
-
options.
|
|
144
|
+
options.url = `https://ipinfo.io${path}/${field}`;
|
|
145
145
|
options.json = false;
|
|
146
146
|
responseData = await this.helpers.httpRequest(options);
|
|
147
147
|
responseData = { [field]: responseData.trim() };
|