@takeshape/routing 10.2.23 → 10.3.3
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/paths.js +2 -3
- package/dist/urls.js +2 -4
- package/package.json +2 -2
package/dist/paths.js
CHANGED
|
@@ -36,8 +36,7 @@ function formatPath(pathStr, data) {
|
|
|
36
36
|
});
|
|
37
37
|
return result;
|
|
38
38
|
}
|
|
39
|
-
const route = (0, _curry.default)((config, routeName, data) => {
|
|
39
|
+
const route = exports.route = (0, _curry.default)((config, routeName, data) => {
|
|
40
40
|
const path = (0, _get.default)(config, ['routes'].concat((0, _toPath.default)(routeName), 'path'));
|
|
41
41
|
return formatPath(path, data).path;
|
|
42
|
-
});
|
|
43
|
-
exports.route = route;
|
|
42
|
+
});
|
package/dist/urls.js
CHANGED
|
@@ -11,10 +11,8 @@ exports.imageBaseUrl = void 0;
|
|
|
11
11
|
var _queryString = _interopRequireDefault(require("query-string"));
|
|
12
12
|
var _pickBy = _interopRequireDefault(require("lodash/pickBy"));
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
const imageBaseUrl = 'https://images.takeshape.io';
|
|
15
|
-
exports.
|
|
16
|
-
const assetBaseUrl = 'https://assets.takeshape.io';
|
|
17
|
-
exports.assetBaseUrl = assetBaseUrl;
|
|
14
|
+
const imageBaseUrl = exports.imageBaseUrl = 'https://images.takeshape.io';
|
|
15
|
+
const assetBaseUrl = exports.assetBaseUrl = 'https://assets.takeshape.io';
|
|
18
16
|
function getPath(key) {
|
|
19
17
|
return typeof key === 'object' ? 'path' in key ? key.path : key.s3Key : key;
|
|
20
18
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takeshape/routing",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.3.3",
|
|
4
4
|
"homepage": "https://www.takeshape.io",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/lodash": "^4.14.165",
|
|
26
|
-
"@takeshape/typescript-jest-junit-reporter": "10.
|
|
26
|
+
"@takeshape/typescript-jest-junit-reporter": "10.3.3"
|
|
27
27
|
},
|
|
28
28
|
"engines": {
|
|
29
29
|
"node": ">=18"
|