@softwear/latestcollectioncore 1.0.159 → 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.
- package/dist/index.d.ts +1 -2
- package/dist/index.js +2 -8
- package/package.json +4 -7
- package/scripts/tmp-esbuild-check.mjs +21 -0
- package/src/index.ts +1 -32
package/dist/index.d.ts
CHANGED
|
@@ -15,8 +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
|
|
19
|
-
export { mappingStrategyE, subscriptionE, tagTypeE, TimeGranularityE, transactionTypeE, vatCategoryE, } from './types';
|
|
18
|
+
export * from './types';
|
|
20
19
|
export * from './consts';
|
|
21
20
|
export { default as lcAxios, createAxiosInstance, axiosRetry, exponentialDelay, isAxiosError, } from './lcAxios';
|
|
22
21
|
export type { AxiosRequestConfig, AxiosResponse, AxiosPromise, AxiosError, AxiosTransformer, AxiosRetryOptions, AxiosRequestConfigAny, } from './lcAxios';
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.isAxiosError = exports.exponentialDelay = exports.axiosRetry = exports.createAxiosInstance = exports.lcAxios = exports.
|
|
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;
|
|
21
21
|
var articleStatus_1 = require("./articleStatus");
|
|
22
22
|
Object.defineProperty(exports, "articleStatus", { enumerable: true, get: function () { return __importDefault(articleStatus_1).default; } });
|
|
23
23
|
var buildPropertyMappingFn_1 = require("./buildPropertyMappingFn");
|
|
@@ -52,13 +52,7 @@ var sizeToMap_1 = require("./sizeToMap");
|
|
|
52
52
|
Object.defineProperty(exports, "sizeToMap", { enumerable: true, get: function () { return __importDefault(sizeToMap_1).default; } });
|
|
53
53
|
var transaction_1 = require("./transaction");
|
|
54
54
|
Object.defineProperty(exports, "transaction", { enumerable: true, get: function () { return __importDefault(transaction_1).default; } });
|
|
55
|
-
|
|
56
|
-
Object.defineProperty(exports, "mappingStrategyE", { enumerable: true, get: function () { return types_1.mappingStrategyE; } });
|
|
57
|
-
Object.defineProperty(exports, "subscriptionE", { enumerable: true, get: function () { return types_1.subscriptionE; } });
|
|
58
|
-
Object.defineProperty(exports, "tagTypeE", { enumerable: true, get: function () { return types_1.tagTypeE; } });
|
|
59
|
-
Object.defineProperty(exports, "TimeGranularityE", { enumerable: true, get: function () { return types_1.TimeGranularityE; } });
|
|
60
|
-
Object.defineProperty(exports, "transactionTypeE", { enumerable: true, get: function () { return types_1.transactionTypeE; } });
|
|
61
|
-
Object.defineProperty(exports, "vatCategoryE", { enumerable: true, get: function () { return types_1.vatCategoryE; } });
|
|
55
|
+
__exportStar(require("./types"), exports);
|
|
62
56
|
__exportStar(require("./consts"), exports);
|
|
63
57
|
var lcAxios_1 = require("./lcAxios");
|
|
64
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
|
-
|
|
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
|
-
|
|
44
|
-
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"date-fns": "^2.29.3",
|
|
45
42
|
"filtrex": "^2.2.3"
|
|
46
43
|
}
|
|
47
|
-
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as esbuild from 'esbuild'
|
|
2
|
+
import { readFileSync } from 'fs'
|
|
3
|
+
import { dirname, join } from 'path'
|
|
4
|
+
import { fileURLToPath } from 'url'
|
|
5
|
+
|
|
6
|
+
const dir = dirname(fileURLToPath(import.meta.url))
|
|
7
|
+
const result = await esbuild.build({
|
|
8
|
+
stdin: {
|
|
9
|
+
contents: `import { TimeGranularityE } from ${JSON.stringify(join(dir, '..', 'dist', 'index.js'))}\nconsole.log(TimeGranularityE.DAY)\n`,
|
|
10
|
+
resolveDir: dir,
|
|
11
|
+
sourcefile: 'entry.mjs',
|
|
12
|
+
loader: 'js',
|
|
13
|
+
},
|
|
14
|
+
bundle: true,
|
|
15
|
+
format: 'esm',
|
|
16
|
+
platform: 'browser',
|
|
17
|
+
write: false,
|
|
18
|
+
})
|
|
19
|
+
const text = result.outputFiles[0].text
|
|
20
|
+
if (!text.includes('day') && !text.includes('TimeGranularityE')) throw new Error('esbuild bundle did not retain enum')
|
|
21
|
+
console.log('esbuild interop check: ok')
|
package/src/index.ts
CHANGED
|
@@ -15,38 +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
|
-
|
|
19
|
-
// consumers (e.g. Vite) do not surface as named exports. Runtime enums need explicit re-exports.
|
|
20
|
-
export type {
|
|
21
|
-
AggregateFnI,
|
|
22
|
-
AggregatorFnI,
|
|
23
|
-
AttributeI,
|
|
24
|
-
BrandSettingI,
|
|
25
|
-
ColorI,
|
|
26
|
-
dbTransactionI,
|
|
27
|
-
DocumentItemI,
|
|
28
|
-
GroupI,
|
|
29
|
-
HrTimeframeI,
|
|
30
|
-
ImageI,
|
|
31
|
-
MarkedSkuI,
|
|
32
|
-
MatrixI,
|
|
33
|
-
ProductI,
|
|
34
|
-
RaGI,
|
|
35
|
-
RowI,
|
|
36
|
-
SkuI,
|
|
37
|
-
StockTransferDataI,
|
|
38
|
-
StockTransferMatrixI,
|
|
39
|
-
StockTransferSelectionI,
|
|
40
|
-
TransactionI,
|
|
41
|
-
} from './types'
|
|
42
|
-
export {
|
|
43
|
-
mappingStrategyE,
|
|
44
|
-
subscriptionE,
|
|
45
|
-
tagTypeE,
|
|
46
|
-
TimeGranularityE,
|
|
47
|
-
transactionTypeE,
|
|
48
|
-
vatCategoryE,
|
|
49
|
-
} from './types'
|
|
18
|
+
export * from './types'
|
|
50
19
|
export * from './consts'
|
|
51
20
|
export {
|
|
52
21
|
default as lcAxios,
|