@zohodesk/client_build_tool 0.0.10-exp.1 → 0.0.10-exp.10

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/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  # Changelog and Release Notes
2
2
 
3
+ - remove babel-plugin-module-resolver dependencies
3
4
 
5
+ # v0.0.10 (12-05-2025)
6
+ **Feature:-**
7
+ - `alias` support for `build:es` and `build:lib`
8
+ - Add babel-plugin-module-resolver dependencies
9
+ - Modify getBabelPlugin to include module resolver with aliases
10
+
11
+ **Bug Fix:-**
12
+ - Enhance runBabelForTSFile to handle both .tsx and .ts file extensions
13
+ - Update mockApiHandler to ensure mock function is called correctly
14
+
15
+ **Change:-**
16
+ - Refactor defaultConfigValues.js to include cli options for enableRTLSplit
17
+
18
+ ## v0.0.9
4
19
 
5
20
  **Feature:-**
6
21
  - externals was added to Prevent bundling of certain imported packages and retrieve these external dependencies at runtime.
package/README.md CHANGED
@@ -100,155 +100,22 @@ fixes :-
100
100
 
101
101
  # Changelog and Release Notes
102
102
 
103
+ - remove babel-plugin-module-resolver dependencies
103
104
 
104
-
105
+ # v0.0.10 (12-05-2025)
105
106
  **Feature:-**
106
- - externals was added to Prevent bundling of certain imported packages and retrieve these external dependencies at runtime.
107
- - to use externals, we use the following pattern in `app > externals` :
108
-
109
- For example
110
- ```
111
- externals: {
112
- <key> : <value>
113
- }
114
- ```
115
-
116
- ## v0.0.6 (4-09-2023)
107
+ - `alias` support for `build:es` and `build:lib`
108
+ - Add babel-plugin-module-resolver dependencies
109
+ - Modify getBabelPlugin to include module resolver with aliases
117
110
 
118
- **Feature:-**
119
- - Generating bundle integrity report json file for the build assets only in production mode. To use this feature we need to add `stats > enable` or cli flags `enable_stats`.
120
- - Added Resource Cleanup plugin to cleanup resource retained by build tool. this plugin is controlled by efc flag resourcecleanup flag.
121
- - added support for using regex expression to get group of chunks chunkId via Resource Hint plugin prefetch/preload hook.
122
- only will be activate when `resourceHints` => `allowPrefetchingMultipleChunks` as `true`
123
- - added support for glob pattern for custom chunks split logic.
124
- - added options to split chunks base config in the key `app` => `customChunksBaseConfig` as object
111
+ **Bug Fix:-**
112
+ - Enhance runBabelForTSFile to handle both .tsx and .ts file extensions
113
+ - Update mockApiHandler to ensure mock function is called correctly
125
114
 
126
115
  **Change:-**
127
- - i18n name not generated issue fix.
128
- - public path not correctly set issue fix.
129
- - changing plugin hook stages in i18nRuntimePlugin and sourceMapPlugin
130
- ## v0.0.5 (6-08-2023)
131
-
132
- **Changes:--**
133
- - Typo fix in i18nRuntimeDealerPlugin.js
134
- - fixing some bugs in resolvers.js file
135
-
136
- ## v0.0.3 (1-08-2023)
137
-
138
- **Changes:--**
139
- - `devtool` default value changed from `hidden-cheap-source-map` to `source-map`
140
- - unwanted files deleted from build
141
-
142
- **Issue Fix:--**
143
- - The issue with the source map not being created in the build has been fixed."
144
-
145
-
146
- ## v0.0.2 (28-04-2023)
147
-
148
- **Features:-**
149
-
150
- - `devModeContentHashAllowedTypes` support added for some project there will be a need for hash even though they run dev mode. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#devModeContentHashAllowedTypes)
151
- - `devLikeHash` support for disable content hash for file names in production mode. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#devLikeHash)
152
- - `disableReactDevWarning` disable react dev warning such as prop-type warnings will be removed in dev mode build or server. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#disableReactDevWarning) can be enabled via `--disable_react_dev_warning` too.
153
- - `statsLogConfig` support to customize default webpack log after build finished. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#statsLogConfig) can be enabled via `--disable_react_dev_warning` too.
154
- - `enableChunkHash` renamed as `enableFileNameHashing`
155
-
156
- - `pre_processor` command to run the preprocessor.js file.preProcessor runs in build, start, buildEs, buildLib commands bu default. and we have watch mode support as well with the option (`-w`)
157
- - `createSeparateSmap` flag `source_map_enable` renamed as `enable_smap`
158
- - `removeAttribute` option changes as `babelCustomizations.removeAttribute`
159
- - `removePropTypes` support for remove the prop types package in the output build.
160
- - `devConsoleExclude` support for remove the _console statements_ such as _console.log_, _console.warn_ in the output build.
161
- - `manifestJson` default value set as false.
162
- - `customAttributes` support for add attributes to html, link , script tag in the output build.
163
-
164
-
165
- ## v0.0.1 (18-04-2023)
166
-
167
- First Release
168
- **Features:-**
169
-
170
- - 'start' command to run react app
171
- - 'build' command to create build for react app
172
- - 'build:lib' command to create lib for react library
173
- - 'build:es' command to create es for react library
174
- - 'templates' command to create es for react library
175
- # Changelog and Release Notes
176
-
177
-
178
-
179
- **Feature:-**
180
- - externals was added to Prevent bundling of certain imported packages and retrieve these external dependencies at runtime.
181
- - to use externals, we use the following pattern in `app > externals` :
182
-
183
- For example
184
- ```
185
- externals: {
186
- <key> : <value>
187
- }
188
- ```
189
-
190
- ## v0.0.6 (4-09-2023)
191
-
192
- **Feature:-**
193
- - Generating bundle integrity report json file for the build assets only in production mode. To use this feature we need to add `stats > enable` or cli flags `enable_stats`.
194
- - Added Resource Cleanup plugin to cleanup resource retained by build tool. this plugin is controlled by efc flag resourcecleanup flag.
195
- - added support for using regex expression to get group of chunks chunkId via Resource Hint plugin prefetch/preload hook.
196
- only will be activate when `resourceHints` => `allowPrefetchingMultipleChunks` as `true`
197
- - added support for glob pattern for custom chunks split logic.
198
- - added options to split chunks base config in the key `app` => `customChunksBaseConfig` as object
199
-
200
- **Change:-**
201
- - i18n name not generated issue fix.
202
- - public path not correctly set issue fix.
203
- - changing plugin hook stages in i18nRuntimePlugin and sourceMapPlugin
204
- ## v0.0.5 (6-08-2023)
205
-
206
- **Changes:--**
207
- - Typo fix in i18nRuntimeDealerPlugin.js
208
- - fixing some bugs in resolvers.js file
209
-
210
- ## v0.0.3 (1-08-2023)
211
-
212
- **Changes:--**
213
- - `devtool` default value changed from `hidden-cheap-source-map` to `source-map`
214
- - unwanted files deleted from build
215
-
216
- **Issue Fix:--**
217
- - The issue with the source map not being created in the build has been fixed."
218
-
219
-
220
- ## v0.0.2 (28-04-2023)
221
-
222
- **Features:-**
223
-
224
- - `devModeContentHashAllowedTypes` support added for some project there will be a need for hash even though they run dev mode. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#devModeContentHashAllowedTypes)
225
- - `devLikeHash` support for disable content hash for file names in production mode. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#devLikeHash)
226
- - `disableReactDevWarning` disable react dev warning such as prop-type warnings will be removed in dev mode build or server. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#disableReactDevWarning) can be enabled via `--disable_react_dev_warning` too.
227
- - `statsLogConfig` support to customize default webpack log after build finished. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#statsLogConfig) can be enabled via `--disable_react_dev_warning` too.
228
- - `enableChunkHash` renamed as `enableFileNameHashing`
229
-
230
- - `pre_processor` command to run the preprocessor.js file.preProcessor runs in build, start, buildEs, buildLib commands bu default. and we have watch mode support as well with the option (`-w`)
231
- - `createSeparateSmap` flag `source_map_enable` renamed as `enable_smap`
232
- - `removeAttribute` option changes as `babelCustomizations.removeAttribute`
233
- - `removePropTypes` support for remove the prop types package in the output build.
234
- - `devConsoleExclude` support for remove the _console statements_ such as _console.log_, _console.warn_ in the output build.
235
- - `manifestJson` default value set as false.
236
- - `customAttributes` support for add attributes to html, link , script tag in the output build.
237
-
238
-
239
- ## v0.0.1 (18-04-2023)
240
-
241
- First Release
242
- **Features:-**
243
-
244
- - 'start' command to run react app
245
- - 'build' command to create build for react app
246
- - 'build:lib' command to create lib for react library
247
- - 'build:es' command to create es for react library
248
- - 'templates' command to create es for react library
249
- # Changelog and Release Notes
250
-
116
+ - Refactor defaultConfigValues.js to include cli options for enableRTLSplit
251
117
 
118
+ ## v0.0.9
252
119
 
253
120
  **Feature:-**
254
121
  - externals was added to Prevent bundling of certain imported packages and retrieve these external dependencies at runtime.
package/README_backup.md CHANGED
@@ -98,151 +98,3 @@ fixes :-
98
98
 
99
99
  - preload plc undefined url fixed
100
100
 
101
- # Changelog and Release Notes
102
-
103
-
104
-
105
- **Feature:-**
106
- - externals was added to Prevent bundling of certain imported packages and retrieve these external dependencies at runtime.
107
- - to use externals, we use the following pattern in `app > externals` :
108
-
109
- For example
110
- ```
111
- externals: {
112
- <key> : <value>
113
- }
114
- ```
115
-
116
- ## v0.0.6 (4-09-2023)
117
-
118
- **Feature:-**
119
- - Generating bundle integrity report json file for the build assets only in production mode. To use this feature we need to add `stats > enable` or cli flags `enable_stats`.
120
- - Added Resource Cleanup plugin to cleanup resource retained by build tool. this plugin is controlled by efc flag resourcecleanup flag.
121
- - added support for using regex expression to get group of chunks chunkId via Resource Hint plugin prefetch/preload hook.
122
- only will be activate when `resourceHints` => `allowPrefetchingMultipleChunks` as `true`
123
- - added support for glob pattern for custom chunks split logic.
124
- - added options to split chunks base config in the key `app` => `customChunksBaseConfig` as object
125
-
126
- **Change:-**
127
- - i18n name not generated issue fix.
128
- - public path not correctly set issue fix.
129
- - changing plugin hook stages in i18nRuntimePlugin and sourceMapPlugin
130
- ## v0.0.5 (6-08-2023)
131
-
132
- **Changes:--**
133
- - Typo fix in i18nRuntimeDealerPlugin.js
134
- - fixing some bugs in resolvers.js file
135
-
136
- ## v0.0.3 (1-08-2023)
137
-
138
- **Changes:--**
139
- - `devtool` default value changed from `hidden-cheap-source-map` to `source-map`
140
- - unwanted files deleted from build
141
-
142
- **Issue Fix:--**
143
- - The issue with the source map not being created in the build has been fixed."
144
-
145
-
146
- ## v0.0.2 (28-04-2023)
147
-
148
- **Features:-**
149
-
150
- - `devModeContentHashAllowedTypes` support added for some project there will be a need for hash even though they run dev mode. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#devModeContentHashAllowedTypes)
151
- - `devLikeHash` support for disable content hash for file names in production mode. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#devLikeHash)
152
- - `disableReactDevWarning` disable react dev warning such as prop-type warnings will be removed in dev mode build or server. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#disableReactDevWarning) can be enabled via `--disable_react_dev_warning` too.
153
- - `statsLogConfig` support to customize default webpack log after build finished. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#statsLogConfig) can be enabled via `--disable_react_dev_warning` too.
154
- - `enableChunkHash` renamed as `enableFileNameHashing`
155
-
156
- - `pre_processor` command to run the preprocessor.js file.preProcessor runs in build, start, buildEs, buildLib commands bu default. and we have watch mode support as well with the option (`-w`)
157
- - `createSeparateSmap` flag `source_map_enable` renamed as `enable_smap`
158
- - `removeAttribute` option changes as `babelCustomizations.removeAttribute`
159
- - `removePropTypes` support for remove the prop types package in the output build.
160
- - `devConsoleExclude` support for remove the _console statements_ such as _console.log_, _console.warn_ in the output build.
161
- - `manifestJson` default value set as false.
162
- - `customAttributes` support for add attributes to html, link , script tag in the output build.
163
-
164
-
165
- ## v0.0.1 (18-04-2023)
166
-
167
- First Release
168
- **Features:-**
169
-
170
- - 'start' command to run react app
171
- - 'build' command to create build for react app
172
- - 'build:lib' command to create lib for react library
173
- - 'build:es' command to create es for react library
174
- - 'templates' command to create es for react library
175
- # Changelog and Release Notes
176
-
177
-
178
-
179
- **Feature:-**
180
- - externals was added to Prevent bundling of certain imported packages and retrieve these external dependencies at runtime.
181
- - to use externals, we use the following pattern in `app > externals` :
182
-
183
- For example
184
- ```
185
- externals: {
186
- <key> : <value>
187
- }
188
- ```
189
-
190
- ## v0.0.6 (4-09-2023)
191
-
192
- **Feature:-**
193
- - Generating bundle integrity report json file for the build assets only in production mode. To use this feature we need to add `stats > enable` or cli flags `enable_stats`.
194
- - Added Resource Cleanup plugin to cleanup resource retained by build tool. this plugin is controlled by efc flag resourcecleanup flag.
195
- - added support for using regex expression to get group of chunks chunkId via Resource Hint plugin prefetch/preload hook.
196
- only will be activate when `resourceHints` => `allowPrefetchingMultipleChunks` as `true`
197
- - added support for glob pattern for custom chunks split logic.
198
- - added options to split chunks base config in the key `app` => `customChunksBaseConfig` as object
199
-
200
- **Change:-**
201
- - i18n name not generated issue fix.
202
- - public path not correctly set issue fix.
203
- - changing plugin hook stages in i18nRuntimePlugin and sourceMapPlugin
204
- ## v0.0.5 (6-08-2023)
205
-
206
- **Changes:--**
207
- - Typo fix in i18nRuntimeDealerPlugin.js
208
- - fixing some bugs in resolvers.js file
209
-
210
- ## v0.0.3 (1-08-2023)
211
-
212
- **Changes:--**
213
- - `devtool` default value changed from `hidden-cheap-source-map` to `source-map`
214
- - unwanted files deleted from build
215
-
216
- **Issue Fix:--**
217
- - The issue with the source map not being created in the build has been fixed."
218
-
219
-
220
- ## v0.0.2 (28-04-2023)
221
-
222
- **Features:-**
223
-
224
- - `devModeContentHashAllowedTypes` support added for some project there will be a need for hash even though they run dev mode. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#devModeContentHashAllowedTypes)
225
- - `devLikeHash` support for disable content hash for file names in production mode. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#devLikeHash)
226
- - `disableReactDevWarning` disable react dev warning such as prop-type warnings will be removed in dev mode build or server. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#disableReactDevWarning) can be enabled via `--disable_react_dev_warning` too.
227
- - `statsLogConfig` support to customize default webpack log after build finished. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#statsLogConfig) can be enabled via `--disable_react_dev_warning` too.
228
- - `enableChunkHash` renamed as `enableFileNameHashing`
229
-
230
- - `pre_processor` command to run the preprocessor.js file.preProcessor runs in build, start, buildEs, buildLib commands bu default. and we have watch mode support as well with the option (`-w`)
231
- - `createSeparateSmap` flag `source_map_enable` renamed as `enable_smap`
232
- - `removeAttribute` option changes as `babelCustomizations.removeAttribute`
233
- - `removePropTypes` support for remove the prop types package in the output build.
234
- - `devConsoleExclude` support for remove the _console statements_ such as _console.log_, _console.warn_ in the output build.
235
- - `manifestJson` default value set as false.
236
- - `customAttributes` support for add attributes to html, link , script tag in the output build.
237
-
238
-
239
- ## v0.0.1 (18-04-2023)
240
-
241
- First Release
242
- **Features:-**
243
-
244
- - 'start' command to run react app
245
- - 'build' command to create build for react app
246
- - 'build:lib' command to create lib for react library
247
- - 'build:es' command to create es for react library
248
- - 'templates' command to create es for react library
@@ -115,7 +115,10 @@ var _default = {
115
115
  // Name Suggestions `customizations` this will be easier then `plugin` to understand for developers
116
116
  plugins: {
117
117
  rtlSplit: {
118
- enableRTLSplit: false,
118
+ enableRTLSplit: {
119
+ value: false,
120
+ cli: 'enable_rtl_split'
121
+ },
119
122
  templateLabel: '{{--dir}}',
120
123
  disableMinifySelector: false,
121
124
  dirVarName: 'document.dir'
@@ -173,7 +176,13 @@ var _default = {
173
176
  jsResource: null,
174
177
  propertiesFolder: null
175
178
  },
176
- publicFolders: ['...'],
179
+ publicFolders: {
180
+ enable: {
181
+ value: true,
182
+ cli: 'public_Folders'
183
+ },
184
+ Patterns: ['...']
185
+ },
177
186
  app: {
178
187
  entryFile: {
179
188
  value: 'src/index.js',
@@ -96,10 +96,13 @@ var _default = {
96
96
  jsResource: null,
97
97
  propertiesFolder: null
98
98
  },
99
- publicFolders: ['...', {
100
- source: './deskapp/tp/',
101
- target: './tp/'
102
- }],
99
+ publicFolders: {
100
+ enable: true,
101
+ patterns: ['...', {
102
+ source: './deskapp/tp/',
103
+ target: './tp/'
104
+ }]
105
+ },
103
106
  app: {
104
107
  entryFile: 'src/index.js',
105
108
  tpFolder: null,
@@ -19,7 +19,8 @@ const babelPluginOrder = ['removeAttribute', 'removePropTypes', 'devConsoleExclu
19
19
  function getBabelPlugin(options) {
20
20
  const {
21
21
  mode
22
- } = options;
22
+ } = options; // let customPlugins = [];
23
+
23
24
  let customPlugins = [];
24
25
  const {
25
26
  babelCustomizations
@@ -32,6 +33,4 @@ function getBabelPlugin(options) {
32
33
  }
33
34
 
34
35
  return customPlugins.filter(Boolean);
35
- }
36
-
37
- ;
36
+ }
@@ -25,6 +25,6 @@ function runBabelForTSFile({
25
25
  // const jsSourceCode = readFileSync(filename).toString();
26
26
  const babelConfig = (0, _babelWebConfig.babelWebConfig)(options, mode);
27
27
  const result = (0, _core.transformFileSync)(filename, babelConfig);
28
- (0, _copyFile.writeFile)(outputFile.replace('.tsx', '.js'), result.code);
28
+ (0, _copyFile.writeFile)(outputFile.replace('.tsx', '.js').replace('.ts', '.js'), result.code);
29
29
  }
30
30
  }
@@ -30,6 +30,16 @@ class BundleIntegrityReport {
30
30
 
31
31
  apply(compiler) {
32
32
  compiler.hooks.done.tapAsync(pluginName, (stats, callback) => {
33
+ if (stats.hasErrors()) {
34
+ console.error(stats.toString({
35
+ all: false,
36
+ errors: true,
37
+ errorDetails: true,
38
+ colors: true
39
+ }));
40
+ return callback(new Error('Build failed due to compilation errors.'));
41
+ }
42
+
33
43
  const statsJson = (0, _objectManipulation.removeKeysFromObject)(stats.toJson(this.statsOptions), this.excludeKeysInStat);
34
44
  this.emitStats(statsJson).on('end', () => {
35
45
  callback();
@@ -43,15 +43,21 @@ function folderPatterns(publicFolders) {
43
43
 
44
44
  function configCopyPublicFolders(options) {
45
45
  let {
46
- publicFolders
47
- } = options;
48
- publicFolders = (0, _updateArrayWithDefault.updateArrayWithDefault)(publicFolders, defaultPublicFolders);
46
+ enable,
47
+ Patterns
48
+ } = options.publicFolders;
49
49
 
50
- if (publicFolders.length === 0) {
50
+ if (!enable) {
51
51
  return null;
52
52
  }
53
53
 
54
- const patterns = folderPatterns(publicFolders);
54
+ Patterns = (0, _updateArrayWithDefault.updateArrayWithDefault)(Patterns, defaultPublicFolders);
55
+
56
+ if (Patterns.length === 0) {
57
+ return null;
58
+ }
59
+
60
+ const patterns = folderPatterns(Patterns);
55
61
 
56
62
  if (patterns.length === 0) {
57
63
  return null;
@@ -259,7 +259,7 @@ var _default = ({
259
259
  if (range) {
260
260
  // console.log('multiple :', decl.value)
261
261
  let newVal = '';
262
- decl.value.split(' ').forEach(singleVal => {
262
+ decl.value.split(' ').filter(Boolean).forEach(singleVal => {
263
263
  newVal += `${singleConvertor(singleVal, settings.replacements.px, {
264
264
  decl,
265
265
  filename,
@@ -44,6 +44,13 @@ function handleMockApi(mockEntryFile, app) {
44
44
  const entryFilePath = (0, _constants.joinWithAppPath)(mockEntryFile); // eslint-disable-next-line no-use-before-define
45
45
 
46
46
  const mockFunc = safeRequire(entryFilePath);
47
+
48
+ if (typeof mockFunc === 'function') {
49
+ // eslint-disable-next-line no-use-before-define
50
+ mockFunc(app);
51
+ return;
52
+ }
53
+
47
54
  mockFunc?.mockApi?.(app);
48
55
  } // function handleMockApi(params) {
49
56
  // }
@@ -17,10 +17,11 @@ function urlConcat(url, path) {
17
17
  const slashRemovedPath = removeFrontSlash(path);
18
18
 
19
19
  if (slashRemovedUrl === '') {
20
- return path;
21
- }
20
+ return `${path}/`;
21
+ } //return `${slashRemovedUrl}/${slashRemovedPath}`;
22
22
 
23
- return `${slashRemovedUrl}/${slashRemovedPath}`;
23
+
24
+ return `${[slashRemovedUrl, slashRemovedPath].filter(a => a).join('/')}/`;
24
25
  }
25
26
 
26
27
  function removeLastSlash(url) {