getta 0.1.12 → 0.1.13

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.
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.TEXT_FORMAT = exports.SUCCESSFUL_REPSONSE = exports.STREAM_READERS = exports.SERVER_ERROR_REPSONSE = exports.RESOURCE_NOT_FOUND_ERROR = exports.REDIRECTION_REPSONSE = exports.PUT_METHOD = exports.POST_METHOD = exports.OPTIONAL_PATH_TEMPLATE_REGEX = exports.NOT_MODIFIED_STATUS_CODE = exports.NOT_FOUND_STATUS_CODE = exports.MISSING_BASE_PATH_ERROR = exports.MAX_RETRIES_EXCEEDED_ERROR = exports.MAX_REDIRECTS_EXCEEDED_ERROR = exports.LOCATION_HEADER = exports.JSON_FORMAT = exports.INVALID_FETCH_METHOD_ERROR = exports.INFORMATION_REPSONSE = exports.IF_NONE_MATCH_HEADER = exports.GET_METHOD = exports.FORM_DATA_FORMAT = exports.FETCH_TIMEOUT_ERROR = exports.FETCH_METHODS = exports.ETAG_HEADER = exports.DELETE_METHOD = exports.DEFAULT_REQUEST_RETRY_WAIT = exports.DEFAULT_PATH_TEMPLATE_REGEX = exports.DEFAULT_MAX_RETRIES = exports.DEFAULT_MAX_REDIRECTS = exports.DEFAULT_HEADERS = exports.DEFAULT_FETCH_TIMEOUT = exports.DEFAULT_BODY_PARSER = exports.COOKIE_HEADER = exports.CLIENT_ERROR_REPSONSE = exports.CACHE_CONTROL_HEADER = exports.BLOB_FORMAT = exports.ARRAY_BUFFER_FORMAT = void 0;
6
+ exports.CACHE_CONTROL_HEADER = exports.IF_NONE_MATCH_HEADER = exports.LOCATION_HEADER = exports.ETAG_HEADER = exports.COOKIE_HEADER = exports.NOT_FOUND_STATUS_CODE = exports.NOT_MODIFIED_STATUS_CODE = exports.SERVER_ERROR_REPSONSE = exports.CLIENT_ERROR_REPSONSE = exports.REDIRECTION_REPSONSE = exports.SUCCESSFUL_REPSONSE = exports.INFORMATION_REPSONSE = exports.FETCH_METHODS = exports.DELETE_METHOD = exports.PUT_METHOD = exports.POST_METHOD = exports.GET_METHOD = exports.FETCH_TIMEOUT_ERROR = exports.RESOURCE_NOT_FOUND_ERROR = exports.INVALID_FETCH_METHOD_ERROR = exports.MAX_RETRIES_EXCEEDED_ERROR = exports.MAX_REDIRECTS_EXCEEDED_ERROR = exports.MISSING_BASE_PATH_ERROR = exports.DEFAULT_REQUEST_RETRY_WAIT = exports.OPTIONAL_PATH_TEMPLATE_REGEX = exports.DEFAULT_PATH_TEMPLATE_REGEX = exports.DEFAULT_MAX_RETRIES = exports.DEFAULT_MAX_REDIRECTS = exports.DEFAULT_HEADERS = exports.DEFAULT_FETCH_TIMEOUT = exports.DEFAULT_BODY_PARSER = exports.STREAM_READERS = exports.TEXT_FORMAT = exports.JSON_FORMAT = exports.FORM_DATA_FORMAT = exports.BLOB_FORMAT = exports.ARRAY_BUFFER_FORMAT = void 0;
7
7
  const ARRAY_BUFFER_FORMAT = "arrayBuffer";
8
8
  exports.ARRAY_BUFFER_FORMAT = ARRAY_BUFFER_FORMAT;
9
9
  const BLOB_FORMAT = "blob";
package/lib/main/index.js CHANGED
@@ -9,10 +9,10 @@ var _exportNames = {
9
9
  defaultPathTemplateCallback: true,
10
10
  Getta: true
11
11
  };
12
- Object.defineProperty(exports, "Getta", {
12
+ Object.defineProperty(exports, "defaultPathTemplateCallback", {
13
13
  enumerable: true,
14
14
  get: function () {
15
- return _main.Getta;
15
+ return _defaultPathTemplateCallback.default;
16
16
  }
17
17
  });
18
18
  Object.defineProperty(exports, "default", {
@@ -21,10 +21,10 @@ Object.defineProperty(exports, "default", {
21
21
  return _main.default;
22
22
  }
23
23
  });
24
- Object.defineProperty(exports, "defaultPathTemplateCallback", {
24
+ Object.defineProperty(exports, "Getta", {
25
25
  enumerable: true,
26
26
  get: function () {
27
- return _defaultPathTemplateCallback.default;
27
+ return _main.Getta;
28
28
  }
29
29
  });
30
30
 
package/lib/main/main.js CHANGED
@@ -5,8 +5,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.Getta = void 0;
9
8
  exports.default = createRestClient;
9
+ exports.Getta = void 0;
10
10
 
11
11
  require("core-js/modules/es.promise.js");
12
12
 
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "getta",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "An isomorphic rest client based on the Fetch API.",
5
5
  "keywords": [
6
6
  "api-client",
@@ -53,7 +53,7 @@
53
53
  }
54
54
  },
55
55
  "dependencies": {
56
- "@cachemap/core": "^3.0.2",
56
+ "@cachemap/core": "^3.1.5",
57
57
  "@repodog/types": "^0.3.26",
58
58
  "@types/md5": "^2.1.33",
59
59
  "cacheability": "^3.0.1",
@@ -90,8 +90,8 @@
90
90
  "@babel/preset-typescript": "^7.8.3",
91
91
  "@babel/register": "^7.8.6",
92
92
  "@babel/runtime": "^7.8.4",
93
- "@cachemap/constants": "^3.0.3",
94
- "@cachemap/map": "^3.0.2",
93
+ "@cachemap/constants": "^3.1.3",
94
+ "@cachemap/map": "^3.1.3",
95
95
  "@commitlint/cli": "^8.3.5",
96
96
  "@commitlint/config-conventional": "^8.3.4",
97
97
  "@repodog/babel-config": "^0.3.31",