feed-common 1.35.2 → 1.35.3
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/feed-templates/custom.template.d.ts +1 -1
- package/dist/utils/feed-templates/custom.template.d.ts.map +1 -1
- package/dist/utils/feed-templates/custom.template.js +1 -1
- package/dist/utils/feed-templates/custom.template.js.map +1 -1
- package/dist/utils/feed-templates/facebook.template.d.ts +1 -1
- package/dist/utils/feed-templates/facebook.template.d.ts.map +1 -1
- package/dist/utils/feed-templates/facebook.template.js +2 -2
- package/dist/utils/feed-templates/facebook.template.js.map +1 -1
- 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/custom.template.ts +2 -2
- package/src/utils/feed-templates/facebook.template.ts +3 -3
- package/src/utils/feed-templates/index.ts +3 -3
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## [1.35.3](https://github.com/advertikon/package-maxify-feed-common/compare/v1.35.2...v1.35.3) (2024-08-13)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* fix import ([8d9e3a2](https://github.com/advertikon/package-maxify-feed-common/commit/8d9e3a22fe99c5b0c092f1711bf50281d8e8efd0))
|
7
|
+
|
1
8
|
## [1.35.2](https://github.com/advertikon/package-maxify-feed-common/compare/v1.35.1...v1.35.2) (2024-08-13)
|
2
9
|
|
3
10
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"custom.template.d.ts","sourceRoot":"","sources":["../../../src/utils/feed-templates/custom.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"custom.template.d.ts","sourceRoot":"","sources":["../../../src/utils/feed-templates/custom.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,eAAO,MAAM,kBAAkB,EAAE,mBAGhC,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { XmlFeedFormat } from '../../constants/profile.constants';
|
1
|
+
import { XmlFeedFormat } from '../../constants/profile.constants.js';
|
2
2
|
export const customFeedTemplate = {
|
3
3
|
formats: [XmlFeedFormat.CSV, XmlFeedFormat.XMLS, XmlFeedFormat.TSV, XmlFeedFormat.XML],
|
4
4
|
mapping: [],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"custom.template.js","sourceRoot":"","sources":["../../../src/utils/feed-templates/custom.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"custom.template.js","sourceRoot":"","sources":["../../../src/utils/feed-templates/custom.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAGrE,MAAM,CAAC,MAAM,kBAAkB,GAAwB;IACnD,OAAO,EAAE,CAAC,aAAa,CAAC,GAAG,EAAE,aAAa,CAAC,IAAI,EAAE,aAAa,CAAC,GAAG,EAAE,aAAa,CAAC,GAAG,CAAC;IACtF,OAAO,EAAE,EAAE;CACd,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"facebook.template.d.ts","sourceRoot":"","sources":["../../../src/utils/feed-templates/facebook.template.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"facebook.template.d.ts","sourceRoot":"","sources":["../../../src/utils/feed-templates/facebook.template.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAiEnE,eAAO,MAAM,oBAAoB,EAAE,mBA6UlC,CAAC"}
|
@@ -2,8 +2,8 @@
|
|
2
2
|
/* eslint-disable quotes */
|
3
3
|
import * as z from 'zod';
|
4
4
|
import { ulid } from 'ulid';
|
5
|
-
import { validate, validateIfNoMacro } from '.';
|
6
|
-
import { XmlFeedFormat } from '../../constants/profile.constants';
|
5
|
+
import { validate, validateIfNoMacro } from './index.js';
|
6
|
+
import { XmlFeedFormat } from '../../constants/profile.constants.js';
|
7
7
|
/* eslint-disable max-len */
|
8
8
|
const availabilityMapping = {
|
9
9
|
attribute: 'availability',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"facebook.template.js","sourceRoot":"","sources":["../../../src/utils/feed-templates/facebook.template.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,2BAA2B;AAC3B,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"facebook.template.js","sourceRoot":"","sources":["../../../src/utils/feed-templates/facebook.template.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,2BAA2B;AAC3B,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAErE,4BAA4B;AAC5B,MAAM,mBAAmB,GAAG;IACxB,SAAS,EAAE,cAAc;IACzB,KAAK,EAAE,cAAc;IACrB,WAAW,EACP,qQAAqQ;IACzQ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE,aAAoB;IAC1B,SAAS,EAAE,CAAC,CAAkB,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC,EAAE,KAAK,CAAC;CAC9F,CAAC;AAEF,MAAM,gBAAgB,GAAG;IACrB,SAAS,EAAE,WAAW;IACtB,K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AAa,CAAC,GAAG,CAAC,EAAE;SAC9B,CAAC,CAAC;QACH;YACI,SAAS,EAAE,UAAU;YACrB,KAAK,EAAE,UAAU;YACjB,WAAW,EACP,oNAAoN;YACxN,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,aAAa;YACnB,YAAY,EAAE,EAAE;YAChB,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;SAC1B;QACD;YACI,SAAS,EAAE,iBAAiB;YAC5B,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,qEAAqE;YAClF,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,aAAa;YACnB,YAAY,EAAE,4CAA4C;YAC1D,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;SAC1B;QACD,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;YACzB,GAAG,kBAAkB;YACrB,SAAS,EAAE,gBAAgB,CAAC,EAAE;YAC9B,KAAK,EAAE,gBAAgB,CAAC,GAAG,CAAC,EAAE;SACjC,CAAC,CAAC;QACH,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;YACzB,GAAG,mBAAmB;YACtB,SAAS,EAAE,iBAAiB,CAAC,EAAE;YAC/B,KAAK,EAAE,iBAAiB,CAAC,GAAG,CAAC,EAAE;SAClC,CAAC,CAAC;KACN;CACJ,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { SafeParseReturnType, ZodType } from 'zod';
|
2
2
|
import { XMLFeedType } from '../../constants/profile.constants.js';
|
3
|
-
import { XmlFeedTemplateType } from '../../types/profile.types';
|
3
|
+
import { XmlFeedTemplateType } from '../../types/profile.types.js';
|
4
4
|
export declare const hasMacro: (v: string) => boolean;
|
5
5
|
export declare const removeMacro: (v: string) => string;
|
6
6
|
export declare function validate(value: string | number, validator: ZodType<any, any>, skipEmpty?: boolean): SafeParseReturnType<any, any>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/feed-templates/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAGnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/feed-templates/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAGnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,eAAO,MAAM,QAAQ,MAAO,MAAM,YAAwB,CAAC;AAC3D,eAAO,MAAM,WAAW,MAAO,MAAM,WAAmC,CAAC;AAEzE,wBAAgB,QAAQ,CACpB,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,SAAS,EAAE,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,EAC5B,SAAS,UAAO,GACjB,mBAAmB,CAAC,GAAG,EAAE,GAAG,CAAC,CAY/B;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,SAAS,EAAE,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,mBAAmB,CAAC,GAAG,EAAE,GAAG,CAAC,CAMrH;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,WAAW,GAAG,mBAAmB,CASlE"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { XMLFeedType } from '../../constants/profile.constants.js';
|
2
|
-
import { customFeedTemplate } from './custom.template';
|
3
|
-
import { facebookFeedTemplate } from './facebook.template';
|
2
|
+
import { customFeedTemplate } from './custom.template.js';
|
3
|
+
import { facebookFeedTemplate } from './facebook.template.js';
|
4
4
|
export const hasMacro = (v) => /{{[^}]+}}/.test(v);
|
5
5
|
export const removeMacro = (v) => v.replaceAll(/{{[^}]+}}/g, '');
|
6
6
|
export function validate(value, validator, skipEmpty = true) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/feed-templates/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/feed-templates/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC3D,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;AAEzE,MAAM,UAAU,QAAQ,CACpB,KAAsB,EACtB,SAA4B,EAC5B,SAAS,GAAG,IAAI;IAEhB,IAAI,eAAe,GAAG,KAAK,CAAC;IAE5B,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC5B,eAAe,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;IACzC,CAAC;IAED,IAAI,CAAC,KAAK,IAAI,SAAS,EAAE,CAAC;QACtB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IAC1C,CAAC;IAED,OAAO,SAAS,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,KAAsB,EAAE,SAA4B;IAClF,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QAC/C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IAC1C,CAAC;IAED,OAAO,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AACtC,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,IAAiB;IACzC,QAAQ,IAAI,EAAE,CAAC;QACX,KAAK,WAAW,CAAC,MAAM;YACnB,OAAO,kBAAkB,CAAC;QAC9B,KAAK,WAAW,CAAC,QAAQ;YACrB,OAAO,oBAAoB,CAAC;QAChC;YACI,MAAM,IAAI,KAAK,CAAC,sBAAsB,IAAI,EAAE,CAAC,CAAC;IACtD,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { XmlFeedFormat } from '../../constants/profile.constants';
|
2
|
-
import { XmlFeedTemplateType } from '../../types/profile.types';
|
1
|
+
import { XmlFeedFormat } from '../../constants/profile.constants.js';
|
2
|
+
import { XmlFeedTemplateType } from '../../types/profile.types.js';
|
3
3
|
|
4
4
|
export const customFeedTemplate: XmlFeedTemplateType = {
|
5
5
|
formats: [XmlFeedFormat.CSV, XmlFeedFormat.XMLS, XmlFeedFormat.TSV, XmlFeedFormat.XML],
|
@@ -2,9 +2,9 @@
|
|
2
2
|
/* eslint-disable quotes */
|
3
3
|
import * as z from 'zod';
|
4
4
|
import { ulid } from 'ulid';
|
5
|
-
import { validate, validateIfNoMacro } from '.';
|
6
|
-
import { XmlFeedTemplateType } from '../../types/profile.types';
|
7
|
-
import { XmlFeedFormat } from '../../constants/profile.constants';
|
5
|
+
import { validate, validateIfNoMacro } from './index.js';
|
6
|
+
import { XmlFeedTemplateType } from '../../types/profile.types.js';
|
7
|
+
import { XmlFeedFormat } from '../../constants/profile.constants.js';
|
8
8
|
|
9
9
|
/* eslint-disable max-len */
|
10
10
|
const availabilityMapping = {
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
2
2
|
import { SafeParseReturnType, ZodType } from 'zod';
|
3
3
|
import { XMLFeedType } from '../../constants/profile.constants.js';
|
4
|
-
import { customFeedTemplate } from './custom.template';
|
5
|
-
import { facebookFeedTemplate } from './facebook.template';
|
6
|
-
import { XmlFeedTemplateType } from '../../types/profile.types';
|
4
|
+
import { customFeedTemplate } from './custom.template.js';
|
5
|
+
import { facebookFeedTemplate } from './facebook.template.js';
|
6
|
+
import { XmlFeedTemplateType } from '../../types/profile.types.js';
|
7
7
|
|
8
8
|
export const hasMacro = (v: string) => /{{[^}]+}}/.test(v);
|
9
9
|
export const removeMacro = (v: string) => v.replaceAll(/{{[^}]+}}/g, '');
|