feed-common 1.50.1 → 1.50.3
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +14 -0
- package/dist/utils/feed-templates/index.d.ts +1 -1
- package/dist/utils/feed-templates/index.d.ts.map +1 -1
- package/dist/utils/feed-templates/index.js +2 -2
- package/dist/utils/feed-templates/index.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/feed-templates/index.ts +3 -3
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
## [1.50.3](https://github.com/advertikon/package-maxify-feed-common/compare/v1.50.2...v1.50.3) (2024-10-05)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* field parsing funcitons ([0520ed9](https://github.com/advertikon/package-maxify-feed-common/commit/0520ed9fa671b2f2ae00f3e8e97e023756a129c5))
|
7
|
+
|
8
|
+
## [1.50.2](https://github.com/advertikon/package-maxify-feed-common/compare/v1.50.1...v1.50.2) (2024-10-04)
|
9
|
+
|
10
|
+
|
11
|
+
### Bug Fixes
|
12
|
+
|
13
|
+
* fix feed value parsing functions ([5322215](https://github.com/advertikon/package-maxify-feed-common/commit/53222158936537932f7834a18e6a0b94724024ed))
|
14
|
+
|
1
15
|
## [1.50.1](https://github.com/advertikon/package-maxify-feed-common/compare/v1.50.0...v1.50.1) (2024-10-04)
|
2
16
|
|
3
17
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/feed-templates/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAGnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAMnE,eAAO,MAAM,QAAQ,MAAO,MAAM,YAAwB,CAAC;AAC3D,eAAO,MAAM,WAAW,MAAO,MAAM,WAAmC,CAAC;AAEzE,wBA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AAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG;IAC5H,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CAChB,CAcA;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAUvD;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAEnD"}
|
@@ -296,7 +296,7 @@ export function parsePriceString({ price, min = 0, max = 1000000 }) {
|
|
296
296
|
}
|
297
297
|
else if (!Number.isFinite(match.groups?.value) ||
|
298
298
|
Number(match.groups?.value) < min ||
|
299
|
-
Number(match.groups?.value)
|
299
|
+
Number(match.groups?.value) > max) {
|
300
300
|
throw new Error(`Value should be between ${min} and ${max}`);
|
301
301
|
}
|
302
302
|
else if (!currencySchema.safeParse(match.groups?.currency).success) {
|
@@ -312,7 +312,7 @@ export function parseDimensionString({ dimension, min = 0, max = 1000000 }) {
|
|
312
312
|
}
|
313
313
|
else if (!Number.isFinite(match.groups?.value) ||
|
314
314
|
Number(match.groups?.value) < min ||
|
315
|
-
Number(match.groups?.value)
|
315
|
+
Number(match.groups?.value) > max) {
|
316
316
|
throw new Error(`Value should be between ${min} and ${max}`);
|
317
317
|
}
|
318
318
|
return { value: match.groups?.value, unit: match.groups?.unit };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/feed-templates/index.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,EAAuB,CAAC,EAAW,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAA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CAAC;AACL,CAAC;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC;IACjC,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KA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K;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,K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ndTrim(str: string): string[] {
|
|
314
314
|
: [];
|
315
315
|
}
|
316
316
|
|
317
|
-
export function parsePriceString({ price, min = 0, max = 1000000 }: { price: string; min?: number; max
|
317
|
+
export function parsePriceString({ price, min = 0, max = 1000000 }: { price: string; min?: number; max?: number }): {
|
318
318
|
value: string;
|
319
319
|
currency: string;
|
320
320
|
} {
|
@@ -325,7 +325,7 @@ export function parsePriceString({ price, min = 0, max = 1000000 }: { price: str
|
|
325
325
|
} else if (
|
326
326
|
!Number.isFinite(match.groups?.value) ||
|
327
327
|
Number(match.groups?.value) < min ||
|
328
|
-
Number(match.groups?.value)
|
328
|
+
Number(match.groups?.value) > max
|
329
329
|
) {
|
330
330
|
|
331
331
|
throw new Error(`Value should be between ${min} and ${max}`)
|
@@ -350,7 +350,7 @@ export function parseDimensionString({ dimension, min = 0, max = 1000000 }: { di
|
|
350
350
|
} else if (
|
351
351
|
!Number.isFinite(match.groups?.value) ||
|
352
352
|
Number(match.groups?.value) < min ||
|
353
|
-
Number(match.groups?.value)
|
353
|
+
Number(match.groups?.value) > max
|
354
354
|
) {
|
355
355
|
throw new Error(`Value should be between ${min} and ${max}`);
|
356
356
|
}
|