@cloudcommerce/cli 2.18.2 → 2.18.4

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.
@@ -174,26 +174,6 @@ configure_edge_rule '
174
174
  }
175
175
  '
176
176
 
177
- configure_edge_rule '
178
- {
179
- "ActionType": 3,
180
- "TriggerMatchingType": 1,
181
- "ActionParameter1": "600",
182
- "Triggers": [
183
- {
184
- "Type": 8,
185
- "PatternMatchingType": 0,
186
- "PatternMatches": [
187
- "404",
188
- "410"
189
- ]
190
- }
191
- ],
192
- "Description": "Fast cache not founds",
193
- "Enabled": true
194
- }
195
- '
196
-
197
177
  configure_edge_rule '
198
178
  {
199
179
  "ActionType": 3,
@@ -290,21 +270,21 @@ configure_edge_rule '
290
270
 
291
271
  configure_edge_rule '
292
272
  {
293
- "ActionType": 5,
294
- "ActionParameter1": "Content-Type",
295
- "ActionParameter2": "text/html",
273
+ "ActionType": 3,
274
+ "TriggerMatchingType": 1,
275
+ "ActionParameter1": "600",
296
276
  "Triggers": [
297
277
  {
298
- "Type": 2,
278
+ "Type": 8,
299
279
  "PatternMatchingType": 0,
300
280
  "PatternMatches": [
301
- "application/octet-stream"
302
- ],
303
- "Parameter1": "Content-Type"
281
+ "404",
282
+ "410",
283
+ "405"
284
+ ]
304
285
  }
305
286
  ],
306
- "TriggerMatchingType": 1,
307
- "Description": "Force mime text/html",
287
+ "Description": "Fast cache not founds",
308
288
  "Enabled": true
309
289
  }
310
290
  '
@@ -334,3 +314,43 @@ configure_edge_rule '
334
314
  "Enabled": true
335
315
  }
336
316
  '
317
+
318
+ configure_edge_rule '
319
+ {
320
+ "ActionType": 1,
321
+ "ActionParameter1": "https://'$domain'/s/%{Query.term}",
322
+ "TriggerMatchingType": 0,
323
+ "Triggers": [
324
+ {
325
+ "Type": 0,
326
+ "PatternMatchingType": 0,
327
+ "PatternMatches": [
328
+ "https://'$domain'/search"
329
+ ]
330
+ }
331
+ ],
332
+ "Description": "Redirect /search -> /s/",
333
+ "Enabled": true
334
+ }
335
+ '
336
+
337
+ configure_edge_rule '
338
+ {
339
+ "ActionType": 5,
340
+ "ActionParameter1": "Content-Type",
341
+ "ActionParameter2": "text/html",
342
+ "Triggers": [
343
+ {
344
+ "Type": 2,
345
+ "PatternMatchingType": 0,
346
+ "PatternMatches": [
347
+ "application/octet-stream"
348
+ ],
349
+ "Parameter1": "Content-Type"
350
+ }
351
+ ],
352
+ "TriggerMatchingType": 1,
353
+ "Description": "Force mime text/html",
354
+ "Enabled": true
355
+ }
356
+ '
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/cli",
3
3
  "type": "module",
4
- "version": "2.18.2",
4
+ "version": "2.18.4",
5
5
  "description": "e-com.plus Cloud Commerce CLI tools",
6
6
  "bin": {
7
7
  "cloudcommerce": "./bin/run.mjs"
@@ -36,7 +36,7 @@
36
36
  "md5": "^2.3.0",
37
37
  "typescript": "~5.4.5",
38
38
  "zx": "^7.2.3",
39
- "@cloudcommerce/api": "2.18.2"
39
+ "@cloudcommerce/api": "2.18.4"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "bash ../../scripts/build-lib.sh"