para-client-js 1.37.4 → 1.37.8

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.
Files changed (2) hide show
  1. package/lib/index.js +5 -5
  2. package/package.json +4 -4
package/lib/index.js CHANGED
@@ -140,7 +140,7 @@ export default class ParaClient {
140
140
  * @returns {Object} response
141
141
  */
142
142
  this.invokeGet = function (resourcePath, params) {
143
- return invokeSignedRequest("GET", that.endpoint, getFullPath(resourcePath), null, params);
143
+ return that.invokeSignedRequest("GET", that.endpoint, that.getFullPath(resourcePath), null, params);
144
144
  };
145
145
 
146
146
  /**
@@ -150,7 +150,7 @@ export default class ParaClient {
150
150
  * @returns {Object} response
151
151
  */
152
152
  this.invokePost = function (resourcePath, entity) {
153
- return invokeSignedRequest("POST", that.endpoint, getFullPath(resourcePath), null, null, entity);
153
+ return that.invokeSignedRequest("POST", that.endpoint, that.getFullPath(resourcePath), null, null, entity);
154
154
  };
155
155
 
156
156
  /**
@@ -160,7 +160,7 @@ export default class ParaClient {
160
160
  * @returns {Object} response
161
161
  */
162
162
  this.invokePut = function (resourcePath, entity) {
163
- return invokeSignedRequest("PUT", that.endpoint, getFullPath(resourcePath), null, null, entity);
163
+ return that.invokeSignedRequest("PUT", that.endpoint, that.getFullPath(resourcePath), null, null, entity);
164
164
  };
165
165
 
166
166
  /**
@@ -170,7 +170,7 @@ export default class ParaClient {
170
170
  * @returns {Object} response
171
171
  */
172
172
  this.invokePatch = function (resourcePath, entity) {
173
- return invokeSignedRequest("PATCH", that.endpoint, getFullPath(resourcePath), null, null, entity);
173
+ return that.invokeSignedRequest("PATCH", that.endpoint, that.getFullPath(resourcePath), null, null, entity);
174
174
  };
175
175
 
176
176
  /**
@@ -180,7 +180,7 @@ export default class ParaClient {
180
180
  * @returns {Object} response
181
181
  */
182
182
  this.invokeDelete = function (resourcePath, params) {
183
- return invokeSignedRequest("DELETE", that.endpoint, getFullPath(resourcePath), null, params);
183
+ return that.invokeSignedRequest("DELETE", that.endpoint, that.getFullPath(resourcePath), null, params);
184
184
  };
185
185
 
186
186
  this.invokeSignedRequest = function (httpMethod, endpointURL, reqPath, headers, params, jsonEntity) {
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "para-client-js",
3
- "version": "1.37.4",
3
+ "version": "1.37.8",
4
4
  "description": "JavaScript Client for Para",
5
5
  "homepage": "https://paraio.org",
6
6
  "repository": "erudika/para-client-js",
7
- "main": "lib/index.js",
8
- "types": "lib/index.d.ts",
7
+ "exports": "./lib/index.js",
8
+ "types": "./lib/index.d.ts",
9
9
  "type": "module",
10
10
  "author": {
11
11
  "name": "Alex Bogdanovski",
@@ -31,7 +31,7 @@
31
31
  "devDependencies": {
32
32
  "browserify": "^17.0.0",
33
33
  "minimist": ">=1.2.2",
34
- "mocha": "^9.0.0"
34
+ "mocha": "^9.1.3"
35
35
  },
36
36
  "scripts": {
37
37
  "test": "mocha",