@croct/sdk 0.17.1 → 0.17.2

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/constants.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export declare const BASE_ENDPOINT_URL = "https://api.croct.io";
2
2
  export declare const MAX_QUERY_LENGTH: number;
3
- export declare const VERSION = "0.17.1";
4
- export declare const CLIENT_LIBRARY = "Croct SDK JS v0.17.1";
3
+ export declare const VERSION = "0.17.2";
4
+ export declare const CLIENT_LIBRARY = "Croct SDK JS v0.17.2";
package/constants.js CHANGED
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CLIENT_LIBRARY = exports.VERSION = exports.MAX_QUERY_LENGTH = exports.BASE_ENDPOINT_URL = void 0;
4
4
  exports.BASE_ENDPOINT_URL = 'https://api.croct.io';
5
5
  exports.MAX_QUERY_LENGTH = 500;
6
- exports.VERSION = '0.17.1';
6
+ exports.VERSION = '0.17.2';
7
7
  exports.CLIENT_LIBRARY = `Croct SDK JS v${exports.VERSION}`;
8
8
  //# sourceMappingURL=constants.js.map
package/help.js CHANGED
@@ -7,16 +7,16 @@ var Help;
7
7
  switch (statusCode) {
8
8
  case 401:
9
9
  return 'The request was not authorized, most likely due to invalid credentials. '
10
- + 'For help, see https://croct.help/sdk/js/invalid-credentials';
10
+ + 'For help, see https://croct.help/sdk/javascript/invalid-credentials';
11
11
  case 403:
12
12
  return 'The origin of the request is not allowed in your application settings. '
13
- + 'For help, see https://croct.help/sdk/js/cors';
13
+ + 'For help, see https://croct.help/sdk/javascript/unauthorized-origin';
14
14
  case 408:
15
15
  return 'The request timed out. '
16
- + 'For help, see https://croct.help/sdk/js/timeout';
16
+ + 'For help, see https://croct.help/sdk/javascript/request-timeout';
17
17
  case 423:
18
18
  return 'The application has exceeded the monthly active users (MAU) quota. '
19
- + 'For help, see https://croct.help/sdk/js/mau-exceeded';
19
+ + 'For help, see https://croct.help/sdk/javascript/mau-exceeded';
20
20
  default:
21
21
  return undefined;
22
22
  }
package/help.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"help.js","sourceRoot":"","sources":["src/help.ts"],"names":[],"mappings":";;;AAAA,IAAiB,IAAI,CAuBpB;AAvBD,WAAiB,IAAI;IACnB,SAAgB,aAAa,CAAC,UAAkB;QAC5C,QAAQ,UAAU,EAAE,CAAC;YACjB,KAAK,GAAG;gBACJ,OAAO,0EAA0E;sBAC3E,6DAA6D,CAAC;YAExE,KAAK,GAAG;gBACJ,OAAO,yEAAyE;sBAC1E,8CAA8C,CAAC;YAEzD,KAAK,GAAG;gBACJ,OAAO,yBAAyB;sBACxB,iDAAiD,CAAC;YAE9D,KAAK,GAAG;gBACJ,OAAO,qEAAqE;sBACtE,sDAAsD,CAAC;YAEjE;gBACI,OAAO,SAAS,CAAC;QACzB,CAAC;IACL,CAAC;IArBe,kBAAa,gBAqB5B,CAAA;AACH,CAAC,EAvBgB,IAAI,oBAAJ,IAAI,QAuBpB"}
1
+ {"version":3,"file":"help.js","sourceRoot":"","sources":["src/help.ts"],"names":[],"mappings":";;;AAAA,IAAiB,IAAI,CAuBpB;AAvBD,WAAiB,IAAI;IACnB,SAAgB,aAAa,CAAC,UAAkB;QAC5C,QAAQ,UAAU,EAAE,CAAC;YACjB,KAAK,GAAG;gBACJ,OAAO,0EAA0E;sBAC3E,qEAAqE,CAAC;YAEhF,KAAK,GAAG;gBACJ,OAAO,yEAAyE;sBAC1E,qEAAqE,CAAC;YAEhF,KAAK,GAAG;gBACJ,OAAO,yBAAyB;sBACxB,iEAAiE,CAAC;YAE9E,KAAK,GAAG;gBACJ,OAAO,qEAAqE;sBACtE,8DAA8D,CAAC;YAEzE;gBACI,OAAO,SAAS,CAAC;QACzB,CAAC;IACL,CAAC;IArBe,kBAAa,gBAqB5B,CAAA;AACH,CAAC,EAvBgB,IAAI,oBAAJ,IAAI,QAuBpB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@croct/sdk",
3
- "version": "0.17.1",
3
+ "version": "0.17.2",
4
4
  "description": "Croct SDK for JavaScript.",
5
5
  "license": "MIT",
6
6
  "author": {
package/src/help.ts CHANGED
@@ -3,19 +3,19 @@ export namespace Help {
3
3
  switch (statusCode) {
4
4
  case 401:
5
5
  return 'The request was not authorized, most likely due to invalid credentials. '
6
- + 'For help, see https://croct.help/sdk/js/invalid-credentials';
6
+ + 'For help, see https://croct.help/sdk/javascript/invalid-credentials';
7
7
 
8
8
  case 403:
9
9
  return 'The origin of the request is not allowed in your application settings. '
10
- + 'For help, see https://croct.help/sdk/js/cors';
10
+ + 'For help, see https://croct.help/sdk/javascript/unauthorized-origin';
11
11
 
12
12
  case 408:
13
13
  return 'The request timed out. '
14
- + 'For help, see https://croct.help/sdk/js/timeout';
14
+ + 'For help, see https://croct.help/sdk/javascript/request-timeout';
15
15
 
16
16
  case 423:
17
17
  return 'The application has exceeded the monthly active users (MAU) quota. '
18
- + 'For help, see https://croct.help/sdk/js/mau-exceeded';
18
+ + 'For help, see https://croct.help/sdk/javascript/mau-exceeded';
19
19
 
20
20
  default:
21
21
  return undefined;