@softwear/latestcollectioncore 1.0.160 → 1.0.161

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.
@@ -1,3 +1,2 @@
1
- import { SkuI, BrandSettingI } from './index';
2
- import { mappingStrategyE } from './types';
1
+ import { SkuI, BrandSettingI, mappingStrategyE } from './index';
3
2
  export default function (brands: Array<BrandSettingI>, strategy: mappingStrategyE): (sku: SkuI) => SkuI;
package/dist/index.d.ts CHANGED
@@ -15,14 +15,7 @@ export { default as pivotTable } from './pivotTable';
15
15
  export { default as round2 } from './round2';
16
16
  export { default as sizeToMap } from './sizeToMap';
17
17
  export { default as transaction } from './transaction';
18
- export type { AggregateFnI, AggregatorFnI, AttributeI, BrandSettingI, ColorI, dbTransactionI, DocumentItemI, GroupI, HrTimeframeI, ImageI, MarkedSkuI, MatrixI, ProductI, RaGI, RowI, SkuI, StockTransferDataI, StockTransferMatrixI, StockTransferSelectionI, TransactionI, } from './types';
19
- import * as types from './types';
20
- export declare const mappingStrategyE: typeof types.mappingStrategyE;
21
- export declare const subscriptionE: typeof types.subscriptionE;
22
- export declare const tagTypeE: typeof types.tagTypeE;
23
- export declare const TimeGranularityE: typeof types.TimeGranularityE;
24
- export declare const transactionTypeE: typeof types.transactionTypeE;
25
- export declare const vatCategoryE: typeof types.vatCategoryE;
18
+ export * from './types';
26
19
  export * from './consts';
27
20
  export { default as lcAxios, createAxiosInstance, axiosRetry, exponentialDelay, isAxiosError, } from './lcAxios';
28
21
  export type { AxiosRequestConfig, AxiosResponse, AxiosPromise, AxiosError, AxiosTransformer, AxiosRetryOptions, AxiosRequestConfigAny, } from './lcAxios';
package/dist/index.js CHANGED
@@ -10,18 +10,6 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
10
10
  if (k2 === undefined) k2 = k;
11
11
  o[k2] = m[k];
12
12
  }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
13
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
15
  };
@@ -29,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
29
17
  return (mod && mod.__esModule) ? mod : { "default": mod };
30
18
  };
31
19
  Object.defineProperty(exports, "__esModule", { value: true });
32
- exports.isAxiosError = exports.exponentialDelay = exports.axiosRetry = exports.createAxiosInstance = exports.lcAxios = exports.vatCategoryE = exports.transactionTypeE = exports.TimeGranularityE = exports.tagTypeE = exports.subscriptionE = exports.mappingStrategyE = exports.transaction = exports.sizeToMap = exports.round2 = exports.pivotTable = exports.isean13 = exports.imageBinder = exports.hasOnlyDigits = exports.hashBrand = exports.getPreferedPropertyMappings = exports.getBrandName = exports.findSkuByBarcode = exports.ensureArray = exports.edifact = exports.ean13 = exports.deepCopy = exports.buildPropertyMappingFn = exports.articleStatus = void 0;
20
+ exports.isAxiosError = exports.exponentialDelay = exports.axiosRetry = exports.createAxiosInstance = exports.lcAxios = exports.transaction = exports.sizeToMap = exports.round2 = exports.pivotTable = exports.isean13 = exports.imageBinder = exports.hasOnlyDigits = exports.hashBrand = exports.getPreferedPropertyMappings = exports.getBrandName = exports.findSkuByBarcode = exports.ensureArray = exports.edifact = exports.ean13 = exports.deepCopy = exports.buildPropertyMappingFn = exports.articleStatus = void 0;
33
21
  var articleStatus_1 = require("./articleStatus");
34
22
  Object.defineProperty(exports, "articleStatus", { enumerable: true, get: function () { return __importDefault(articleStatus_1).default; } });
35
23
  var buildPropertyMappingFn_1 = require("./buildPropertyMappingFn");
@@ -64,16 +52,7 @@ var sizeToMap_1 = require("./sizeToMap");
64
52
  Object.defineProperty(exports, "sizeToMap", { enumerable: true, get: function () { return __importDefault(sizeToMap_1).default; } });
65
53
  var transaction_1 = require("./transaction");
66
54
  Object.defineProperty(exports, "transaction", { enumerable: true, get: function () { return __importDefault(transaction_1).default; } });
67
- // Runtime enums: use `export const x = types.x`, not `export { x } from './types'`.
68
- // TS emits `Object.defineProperty(exports, "x", { get: ... })` for re-exports; Vite/esbuild
69
- // does not treat those getters as static named exports for ESM interop.
70
- const types = __importStar(require("./types"));
71
- exports.mappingStrategyE = types.mappingStrategyE;
72
- exports.subscriptionE = types.subscriptionE;
73
- exports.tagTypeE = types.tagTypeE;
74
- exports.TimeGranularityE = types.TimeGranularityE;
75
- exports.transactionTypeE = types.transactionTypeE;
76
- exports.vatCategoryE = types.vatCategoryE;
55
+ __exportStar(require("./types"), exports);
77
56
  __exportStar(require("./consts"), exports);
78
57
  var lcAxios_1 = require("./lcAxios");
79
58
  Object.defineProperty(exports, "lcAxios", { enumerable: true, get: function () { return __importDefault(lcAxios_1).default; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softwear/latestcollectioncore",
3
- "version": "1.0.160",
3
+ "version": "1.0.161",
4
4
  "description": "Core functions for LatestCollections applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -16,12 +16,9 @@
16
16
  },
17
17
  "scripts": {
18
18
  "build": "tsc -p tsconfig.json",
19
- "verify": "node scripts/verify-exports.mjs",
20
- "postbuild": "npm run verify",
21
19
  "build:watch": "tsc -p tsconfig.json --watch",
22
20
  "test": "vitest run",
23
21
  "test:watch": "vitest",
24
- "prepublishOnly": "npm run build && npm test",
25
22
  "dev": "concurrently \"npm:build:watch\" \"npm:test:watch\""
26
23
  },
27
24
  "repository": {
@@ -40,8 +37,8 @@
40
37
  "typescript": "^4.9.4",
41
38
  "vitest": "^1.0.0"
42
39
  },
43
- "dependencies": {
44
- "date-fns": "^2.29.3",
40
+ "dependencies": {
41
+ "date-fns": "^2.29.3",
45
42
  "filtrex": "^2.2.3"
46
43
  }
47
- }
44
+ }
@@ -1,5 +1,4 @@
1
- import { hashBrand, SkuI, BrandSettingI } from './index'
2
- import { mappingStrategyE } from './types'
1
+ import { hashBrand, SkuI, BrandSettingI, mappingStrategyE } from './index'
3
2
 
4
3
  // The order of the following mappingPairs is significant.
5
4
  // - If no mapping is available, we prefer colorFamily to be copied from colorSupplier, not colorCodeSupplier.
package/src/index.ts CHANGED
@@ -15,39 +15,7 @@ export { default as pivotTable } from './pivotTable'
15
15
  export { default as round2 } from './round2'
16
16
  export { default as sizeToMap } from './sizeToMap'
17
17
  export { default as transaction } from './transaction'
18
- // Types-only re-exports (no runtime).
19
- export type {
20
- AggregateFnI,
21
- AggregatorFnI,
22
- AttributeI,
23
- BrandSettingI,
24
- ColorI,
25
- dbTransactionI,
26
- DocumentItemI,
27
- GroupI,
28
- HrTimeframeI,
29
- ImageI,
30
- MarkedSkuI,
31
- MatrixI,
32
- ProductI,
33
- RaGI,
34
- RowI,
35
- SkuI,
36
- StockTransferDataI,
37
- StockTransferMatrixI,
38
- StockTransferSelectionI,
39
- TransactionI,
40
- } from './types'
41
- // Runtime enums: use `export const x = types.x`, not `export { x } from './types'`.
42
- // TS emits `Object.defineProperty(exports, "x", { get: ... })` for re-exports; Vite/esbuild
43
- // does not treat those getters as static named exports for ESM interop.
44
- import * as types from './types'
45
- export const mappingStrategyE = types.mappingStrategyE
46
- export const subscriptionE = types.subscriptionE
47
- export const tagTypeE = types.tagTypeE
48
- export const TimeGranularityE = types.TimeGranularityE
49
- export const transactionTypeE = types.transactionTypeE
50
- export const vatCategoryE = types.vatCategoryE
18
+ export * from './types'
51
19
  export * from './consts'
52
20
  export {
53
21
  default as lcAxios,