@ordergroove/smi-serve 1.12.1 → 1.12.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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.12.2](https://github.com/ordergroove/plush-toys/compare/@ordergroove/smi-serve@1.12.1...@ordergroove/smi-serve@1.12.2) (2026-02-24)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * use lodash remap plugin in cancel-flow ([e3be553](https://github.com/ordergroove/plush-toys/commit/e3be553c8c9101e99ad4e5a289ea2c966b0abc5f))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [1.12.1](https://github.com/ordergroove/plush-toys/compare/@ordergroove/smi-serve@1.12.0...@ordergroove/smi-serve@1.12.1) (2026-02-18)
7
18
 
8
19
 
@@ -1,11 +1,11 @@
1
1
  <?xml version="1.0" ?>
2
2
  <!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-04.dtd">
3
- <coverage lines-valid="646" lines-covered="228" line-rate="0.3529" branches-valid="233" branches-covered="45" branch-rate="0.1931" timestamp="1771443732599" complexity="0" version="0.1">
3
+ <coverage lines-valid="647" lines-covered="228" line-rate="0.35229999999999995" branches-valid="234" branches-covered="45" branch-rate="0.1923" timestamp="1771964012731" complexity="0" version="0.1">
4
4
  <sources>
5
5
  <source>/home/jenkins/agent/workspace/Ordergroove_plush-toys_master/plush-toys/packages/smi-serve</source>
6
6
  </sources>
7
7
  <packages>
8
- <package name="smi-serve" line-rate="0.3725" branch-rate="0.2195">
8
+ <package name="smi-serve" line-rate="0.37189999999999995" branch-rate="0.2184">
9
9
  <classes>
10
10
  <class name="auth-monitor.js" filename="src/auth-monitor.js" line-rate="0.12" branch-rate="0">
11
11
  <methods>
@@ -855,7 +855,7 @@
855
855
  <line number="84" hits="2" branch="false"/>
856
856
  </lines>
857
857
  </class>
858
- <class name="serve.js" filename="src/serve.js" line-rate="0.1315" branch-rate="0">
858
+ <class name="serve.js" filename="src/serve.js" line-rate="0.1304" branch-rate="0">
859
859
  <methods>
860
860
  <method name="getGlobals" hits="0" signature="()V">
861
861
  <lines>
@@ -939,22 +939,22 @@
939
939
  </method>
940
940
  <method name="serve" hits="0" signature="()V">
941
941
  <lines>
942
- <line number="203" hits="0"/>
942
+ <line number="204" hits="0"/>
943
943
  </lines>
944
944
  </method>
945
945
  <method name="(anonymous_17)" hits="0" signature="()V">
946
946
  <lines>
947
- <line number="273" hits="0"/>
947
+ <line number="274" hits="0"/>
948
948
  </lines>
949
949
  </method>
950
950
  <method name="(anonymous_18)" hits="0" signature="()V">
951
951
  <lines>
952
- <line number="288" hits="0"/>
952
+ <line number="289" hits="0"/>
953
953
  </lines>
954
954
  </method>
955
955
  <method name="(anonymous_19)" hits="0" signature="()V">
956
956
  <lines>
957
- <line number="296" hits="0"/>
957
+ <line number="297" hits="0"/>
958
958
  </lines>
959
959
  </method>
960
960
  </methods>
@@ -1028,51 +1028,52 @@
1028
1028
  <line number="186" hits="0" branch="false"/>
1029
1029
  <line number="187" hits="0" branch="false"/>
1030
1030
  <line number="189" hits="0" branch="false"/>
1031
- <line number="191" hits="0" branch="true" condition-coverage="0% (0/4)"/>
1031
+ <line number="191" hits="0" branch="true" condition-coverage="0% (0/5)"/>
1032
1032
  <line number="192" hits="0" branch="false"/>
1033
- <line number="200" hits="0" branch="false"/>
1034
- <line number="204" hits="0" branch="false"/>
1033
+ <line number="193" hits="0" branch="false"/>
1034
+ <line number="201" hits="0" branch="false"/>
1035
1035
  <line number="205" hits="0" branch="false"/>
1036
- <line number="207" hits="0" branch="false"/>
1036
+ <line number="206" hits="0" branch="false"/>
1037
1037
  <line number="208" hits="0" branch="false"/>
1038
1038
  <line number="209" hits="0" branch="false"/>
1039
- <line number="211" hits="0" branch="true" condition-coverage="0% (0/2)"/>
1040
- <line number="212" hits="0" branch="false"/>
1041
- <line number="215" hits="0" branch="false"/>
1042
- <line number="217" hits="0" branch="false"/>
1039
+ <line number="210" hits="0" branch="false"/>
1040
+ <line number="212" hits="0" branch="true" condition-coverage="0% (0/2)"/>
1041
+ <line number="213" hits="0" branch="false"/>
1042
+ <line number="216" hits="0" branch="false"/>
1043
1043
  <line number="218" hits="0" branch="false"/>
1044
1044
  <line number="219" hits="0" branch="false"/>
1045
- <line number="221" hits="0" branch="false"/>
1045
+ <line number="220" hits="0" branch="false"/>
1046
1046
  <line number="222" hits="0" branch="false"/>
1047
- <line number="225" hits="0" branch="false"/>
1048
- <line number="256" hits="0" branch="true" condition-coverage="0% (0/2)"/>
1049
- <line number="257" hits="0" branch="false"/>
1050
- <line number="260" hits="0" branch="false"/>
1051
- <line number="262" hits="0" branch="false"/>
1052
- <line number="265" hits="0" branch="true" condition-coverage="0% (0/2)"/>
1053
- <line number="266" hits="0" branch="false"/>
1054
- <line number="273" hits="0" branch="false"/>
1047
+ <line number="223" hits="0" branch="false"/>
1048
+ <line number="226" hits="0" branch="false"/>
1049
+ <line number="257" hits="0" branch="true" condition-coverage="0% (0/2)"/>
1050
+ <line number="258" hits="0" branch="false"/>
1051
+ <line number="261" hits="0" branch="false"/>
1052
+ <line number="263" hits="0" branch="false"/>
1053
+ <line number="266" hits="0" branch="true" condition-coverage="0% (0/2)"/>
1054
+ <line number="267" hits="0" branch="false"/>
1055
1055
  <line number="274" hits="0" branch="false"/>
1056
- <line number="279" hits="0" branch="false"/>
1057
- <line number="282" hits="0" branch="false"/>
1056
+ <line number="275" hits="0" branch="false"/>
1057
+ <line number="280" hits="0" branch="false"/>
1058
1058
  <line number="283" hits="0" branch="false"/>
1059
- <line number="285" hits="0" branch="false"/>
1060
- <line number="288" hits="0" branch="false"/>
1059
+ <line number="284" hits="0" branch="false"/>
1060
+ <line number="286" hits="0" branch="false"/>
1061
1061
  <line number="289" hits="0" branch="false"/>
1062
1062
  <line number="290" hits="0" branch="false"/>
1063
- <line number="293" hits="0" branch="false"/>
1064
- <line number="296" hits="0" branch="false"/>
1063
+ <line number="291" hits="0" branch="false"/>
1064
+ <line number="294" hits="0" branch="false"/>
1065
1065
  <line number="297" hits="0" branch="false"/>
1066
1066
  <line number="298" hits="0" branch="false"/>
1067
- <line number="302" hits="0" branch="false"/>
1068
- <line number="307" hits="0" branch="false"/>
1069
- <line number="308" hits="0" branch="true" condition-coverage="0% (0/2)"/>
1070
- <line number="309" hits="0" branch="false"/>
1067
+ <line number="299" hits="0" branch="false"/>
1068
+ <line number="303" hits="0" branch="false"/>
1069
+ <line number="308" hits="0" branch="false"/>
1070
+ <line number="309" hits="0" branch="true" condition-coverage="0% (0/2)"/>
1071
1071
  <line number="310" hits="0" branch="false"/>
1072
1072
  <line number="311" hits="0" branch="false"/>
1073
1073
  <line number="312" hits="0" branch="false"/>
1074
- <line number="314" hits="0" branch="false"/>
1075
- <line number="316" hits="1" branch="false"/>
1074
+ <line number="313" hits="0" branch="false"/>
1075
+ <line number="315" hits="0" branch="false"/>
1076
+ <line number="317" hits="1" branch="false"/>
1076
1077
  </lines>
1077
1078
  </class>
1078
1079
  <class name="utils.js" filename="src/utils.js" line-rate="0.4893" branch-rate="0.44439999999999996">
@@ -1,8 +1,8 @@
1
1
  ---------------------|---------|----------|---------|---------|-------------------------------------------------------------------------
2
2
  File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
3
3
  ---------------------|---------|----------|---------|---------|-------------------------------------------------------------------------
4
- All files | 34.97 | 19.31 | 26.61 | 35.29 |
5
- src | 36.9 | 21.95 | 28.2 | 37.25 |
4
+ All files | 34.97 | 19.23 | 26.61 | 35.23 |
5
+ src | 36.9 | 21.84 | 28.2 | 37.19 |
6
6
  auth-monitor.js | 12 | 0 | 0 | 12 | 12-127
7
7
  auth.js | 93.33 | 83.33 | 100 | 93.33 | 14
8
8
  hmac-refresh.js | 28.57 | 0 | 0 | 28.57 | 14-29
@@ -12,7 +12,7 @@ All files | 34.97 | 19.31 | 26.61 | 35.29 |
12
12
  pull-theme.js | 77.77 | 56.25 | 93.75 | 76.84 | 25-28,37-38,69-70,77,94,102-103,117,130,145,156-157,163-166,178,234-239
13
13
  push-theme.js | 0 | 0 | 0 | 0 | 1-130
14
14
  select-merchant.js | 50 | 35.29 | 22.22 | 55.88 | 19,31,38,43-81
15
- serve.js | 13.04 | 0 | 0 | 13.15 | 15-43,56-81,85-155,159-314
15
+ serve.js | 13.04 | 0 | 0 | 13.04 | 15-43,56-81,85-155,159-315
16
16
  utils.js | 47.91 | 44.44 | 36.84 | 48.93 | 13,23-31,40,53-70,81-94,104,141-145,154-158,169-174,194-196
17
17
  src/partials | 0 | 0 | 0 | 0 |
18
18
  devmode.js | 0 | 0 | 100 | 0 | 4-21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ordergroove/smi-serve",
3
- "version": "1.12.1",
3
+ "version": "1.12.2",
4
4
  "description": "Utility to serve a Subscription Manager template locally",
5
5
  "keywords": [],
6
6
  "author": "Eugenio Lattanzio <eugenio.lattanzio@ordergroove.com>",
@@ -34,5 +34,5 @@
34
34
  "devDependencies": {
35
35
  "memfs": "^4.8.2"
36
36
  },
37
- "gitHead": "47fe474aecab7577646158d3d146ce0e9a7a0219"
37
+ "gitHead": "e4edd17a1eb89835ed3ba8f51f0796871005d462"
38
38
  }
package/src/serve.js CHANGED
@@ -167,7 +167,7 @@ const getPlugins = async (argv, globals) => {
167
167
  // when --local-assets is enabled, smi-serve builds smi-core and cancel-flow locally
168
168
  // we need to copy over their build plugins for consistency
169
169
 
170
- const { createResolveSmiCoreModulesPlugin } = require('../../smi-core/build.js');
170
+ const { createEsmRemapPlugin } = require('../../../build-tools.js');
171
171
  const { createLessInjectorPlugin } = require('../../cancel-flow/build.js');
172
172
 
173
173
  const smiCoreRequire = createRequire(path.join(__dirname, '../../smi-core', 'package.json'));
@@ -181,14 +181,15 @@ const getPlugins = async (argv, globals) => {
181
181
  devModePlugin,
182
182
  less,
183
183
  {
184
- name: 'resolve_smi_core_modules_local_filtered',
184
+ name: 'esm-remap-filtered',
185
185
  setup(build) {
186
- const basePlugin = createResolveSmiCoreModulesPlugin(smiCoreRequire);
186
+ const basePlugin = createEsmRemapPlugin(smiCoreRequire);
187
187
  basePlugin.setup({
188
188
  onResolve(options, callback) {
189
189
  build.onResolve(options, args => {
190
- // Only apply to smi-core files
191
- if (!args.importer || !args.importer.includes('smi-core')) return;
190
+ // Only apply to smi-core and cancel-flow files
191
+ if (!args.importer || (!args.importer.includes('smi-core') && !args.importer.includes('cancel-flow')))
192
+ return;
192
193
  return callback(args);
193
194
  });
194
195
  }