@nocobase/utils 1.7.0-beta.33 → 1.7.0-beta.34
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/lib/client.d.ts +2 -2
- package/lib/client.js +6 -3
- package/lib/dateRangeUtils.js +0 -1
- package/package.json +2 -2
package/lib/client.d.ts
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import lodash from 'lodash';
|
|
10
10
|
import { dayjs } from './dayjs';
|
|
11
|
+
import { getDayRangeByParams, getOffsetRangeByParams } from './dateRangeUtils';
|
|
11
12
|
export * from './collections-graph';
|
|
12
13
|
export * from './common';
|
|
13
14
|
export * from './date';
|
|
@@ -28,5 +29,4 @@ export * from './parseHTML';
|
|
|
28
29
|
export * from './uid';
|
|
29
30
|
export * from './url';
|
|
30
31
|
export * from './transformMultiColumnToSingleColumn';
|
|
31
|
-
export
|
|
32
|
-
export { dayjs, lodash };
|
|
32
|
+
export { dayjs, lodash, getDayRangeByParams, getOffsetRangeByParams };
|
package/lib/client.js
CHANGED
|
@@ -38,11 +38,14 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
38
38
|
var client_exports = {};
|
|
39
39
|
__export(client_exports, {
|
|
40
40
|
dayjs: () => import_dayjs.dayjs,
|
|
41
|
+
getDayRangeByParams: () => import_dateRangeUtils.getDayRangeByParams,
|
|
42
|
+
getOffsetRangeByParams: () => import_dateRangeUtils.getOffsetRangeByParams,
|
|
41
43
|
lodash: () => import_lodash.default
|
|
42
44
|
});
|
|
43
45
|
module.exports = __toCommonJS(client_exports);
|
|
44
46
|
var import_lodash = __toESM(require("lodash"));
|
|
45
47
|
var import_dayjs = require("./dayjs");
|
|
48
|
+
var import_dateRangeUtils = require("./dateRangeUtils");
|
|
46
49
|
__reExport(client_exports, require("./collections-graph"), module.exports);
|
|
47
50
|
__reExport(client_exports, require("./common"), module.exports);
|
|
48
51
|
__reExport(client_exports, require("./date"), module.exports);
|
|
@@ -63,10 +66,11 @@ __reExport(client_exports, require("./parseHTML"), module.exports);
|
|
|
63
66
|
__reExport(client_exports, require("./uid"), module.exports);
|
|
64
67
|
__reExport(client_exports, require("./url"), module.exports);
|
|
65
68
|
__reExport(client_exports, require("./transformMultiColumnToSingleColumn"), module.exports);
|
|
66
|
-
__reExport(client_exports, require("./dateRangeUtils"), module.exports);
|
|
67
69
|
// Annotate the CommonJS export names for ESM import in node:
|
|
68
70
|
0 && (module.exports = {
|
|
69
71
|
dayjs,
|
|
72
|
+
getDayRangeByParams,
|
|
73
|
+
getOffsetRangeByParams,
|
|
70
74
|
lodash,
|
|
71
75
|
...require("./collections-graph"),
|
|
72
76
|
...require("./common"),
|
|
@@ -87,6 +91,5 @@ __reExport(client_exports, require("./dateRangeUtils"), module.exports);
|
|
|
87
91
|
...require("./parseHTML"),
|
|
88
92
|
...require("./uid"),
|
|
89
93
|
...require("./url"),
|
|
90
|
-
...require("./transformMultiColumnToSingleColumn")
|
|
91
|
-
...require("./dateRangeUtils")
|
|
94
|
+
...require("./transformMultiColumnToSingleColumn")
|
|
92
95
|
});
|
package/lib/dateRangeUtils.js
CHANGED
|
@@ -86,7 +86,6 @@ const strategies = {
|
|
|
86
86
|
nextYear: /* @__PURE__ */ __name((params) => [getStart(1, "year", params == null ? void 0 : params.timezone), getEnd(1, "year", params == null ? void 0 : params.timezone)], "nextYear")
|
|
87
87
|
};
|
|
88
88
|
const getDayRangeByParams = /* @__PURE__ */ __name((params) => {
|
|
89
|
-
console.log(params);
|
|
90
89
|
if (params.type === "past" || params.type === "next") {
|
|
91
90
|
return getOffsetRangeByParams(params);
|
|
92
91
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/utils",
|
|
3
|
-
"version": "1.7.0-beta.
|
|
3
|
+
"version": "1.7.0-beta.34",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
"multer": "^1.4.5-lts.2",
|
|
17
17
|
"object-path": "^0.11.8"
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "2795864162d6151f0f8cf33945b0b8b8a4cb20dc"
|
|
20
20
|
}
|