feed-common 1.51.1 → 1.51.2
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +7 -0
- package/dist/utils/utils.js +3 -0
- package/dist/utils/utils.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/utils.ts +3 -0
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## [1.51.2](https://github.com/advertikon/package-maxify-feed-common/compare/v1.51.1...v1.51.2) (2024-10-06)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* empty ([7b934e3](https://github.com/advertikon/package-maxify-feed-common/commit/7b934e3f95d56287e5058ebc84da8265d4e98720))
|
7
|
+
|
1
8
|
## [1.51.1](https://github.com/advertikon/package-maxify-feed-common/compare/v1.51.0...v1.51.1) (2024-10-06)
|
2
9
|
|
3
10
|
|
package/dist/utils/utils.js
CHANGED
@@ -49,14 +49,17 @@ export function parseMacrosString(textContent) {
|
|
49
49
|
return parts;
|
50
50
|
}
|
51
51
|
function getMacroSubtype(tagValue) {
|
52
|
+
console.log('tagValue', tagValue);
|
52
53
|
switch (tagValue.trim().split('.')[0]) {
|
53
54
|
case 'action':
|
54
55
|
return 'action';
|
55
56
|
case 'metafield':
|
56
57
|
return 'metafield';
|
57
58
|
case 'source':
|
59
|
+
console.log('source case');
|
58
60
|
return 'source';
|
59
61
|
default:
|
62
|
+
console.log('default case');
|
60
63
|
return 'mapping';
|
61
64
|
}
|
62
65
|
}
|
package/dist/utils/utils.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,IAAI;IAChB,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAE,WAAmB;IAClD,MAAM,OAAO,GAAG,IAAI,CAAC;I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O,EAAE,QAAQ,CAAC,IAAI,EAAE;YACxB,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,eAAe,CAAC,QAAQ,CAAC;SACrC,CAAC,CAAC;QAEH,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC,MAAM,CAAC;IAC5C,CAAC;IAED,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAS,eAAe,CAAE,QAAgB;IACtC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IAClC,QAAQ,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACpC,KAAK,QAAQ;YACT,OAAO,QAAQ,CAAC;QACpB,KAAK,WAAW;YACZ,OAAO,WAAW,CAAC;QACvB,KAAK,QAAQ;YACT,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;YAC1B,OAAO,QAAQ,CAAC;QACpB;YACI,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAA;YAC3B,OAAO,SAAS,CAAC;IACzB,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
package/src/utils/utils.ts
CHANGED
@@ -67,14 +67,17 @@ export function parseMacrosString (textContent: string): MacroPartType[] {
|
|
67
67
|
}
|
68
68
|
|
69
69
|
function getMacroSubtype (tagValue: string): MacroPartType['subtype'] {
|
70
|
+
console.log('tagValue', tagValue);
|
70
71
|
switch (tagValue.trim().split('.')[0]) {
|
71
72
|
case 'action':
|
72
73
|
return 'action';
|
73
74
|
case 'metafield':
|
74
75
|
return 'metafield';
|
75
76
|
case 'source':
|
77
|
+
console.log('source case')
|
76
78
|
return 'source';
|
77
79
|
default:
|
80
|
+
console.log('default case')
|
78
81
|
return 'mapping';
|
79
82
|
}
|
80
83
|
}
|