@bouzu/shared 0.0.1
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.cjs +180 -0
- package/dist/index.d.ts +60 -0
- package/dist/index.mjs +148 -0
- package/package.json +27 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function noop() {
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
function usePrevious(val) {
|
|
7
|
+
const value = {
|
|
8
|
+
curr: val,
|
|
9
|
+
prev: val
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(value, "curr", { writable: false });
|
|
12
|
+
Object.defineProperty(value, "prev", { writable: false });
|
|
13
|
+
return [
|
|
14
|
+
value,
|
|
15
|
+
(nextValue) => {
|
|
16
|
+
Object.defineProperty(value, "prev", { value: value.curr, writable: false });
|
|
17
|
+
Object.defineProperty(value, "curr", { value: nextValue, writable: false });
|
|
18
|
+
}
|
|
19
|
+
];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function execLastTick(tickFn, fn, ...tickFnArgs) {
|
|
23
|
+
let taskId = 0;
|
|
24
|
+
let lastArgs;
|
|
25
|
+
return (...fnArgs) => {
|
|
26
|
+
lastArgs = fnArgs;
|
|
27
|
+
taskId++;
|
|
28
|
+
const currId = taskId;
|
|
29
|
+
tickFn(
|
|
30
|
+
() => {
|
|
31
|
+
if (currId !== taskId)
|
|
32
|
+
return;
|
|
33
|
+
fn.apply(null, lastArgs ?? []);
|
|
34
|
+
},
|
|
35
|
+
...tickFnArgs
|
|
36
|
+
);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function createPoint(x = 0, y = 0) {
|
|
41
|
+
return { x, y };
|
|
42
|
+
}
|
|
43
|
+
function checkPointOrigin(p) {
|
|
44
|
+
return p.x === 0 && p.y === 0;
|
|
45
|
+
}
|
|
46
|
+
function checkPointEqual(a, b) {
|
|
47
|
+
return a.x === b.x && a.y === b.y;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function createSize(width = 0, height = 0) {
|
|
51
|
+
return { width, height };
|
|
52
|
+
}
|
|
53
|
+
function checkSizeEqual(a, b) {
|
|
54
|
+
return a.width === b.width && a.height === b.height;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
var RectCorner = /* @__PURE__ */ ((RectCorner2) => {
|
|
58
|
+
RectCorner2["TopLeft"] = "TopLeft";
|
|
59
|
+
RectCorner2["TopRight"] = "TopRight";
|
|
60
|
+
RectCorner2["BottomLeft"] = "BottomLeft";
|
|
61
|
+
RectCorner2["BottomRight"] = "BottomRight";
|
|
62
|
+
return RectCorner2;
|
|
63
|
+
})(RectCorner || {});
|
|
64
|
+
function createRect(x = 0, y = 0, width = 0, height = 0) {
|
|
65
|
+
return {
|
|
66
|
+
...createPoint(x, y),
|
|
67
|
+
...createSize(width, height)
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function cloneRect(rect) {
|
|
71
|
+
return createRect(rect.x, rect.y, rect.width, rect.height);
|
|
72
|
+
}
|
|
73
|
+
function getRectMaxX(rect) {
|
|
74
|
+
return rect.x + rect.width;
|
|
75
|
+
}
|
|
76
|
+
function getRectMaxY(rect) {
|
|
77
|
+
return rect.y + rect.height;
|
|
78
|
+
}
|
|
79
|
+
function getRectArea(rect) {
|
|
80
|
+
return rect.width * rect.height;
|
|
81
|
+
}
|
|
82
|
+
function getRectTopLeft(rect) {
|
|
83
|
+
return createPoint(rect.x, rect.y);
|
|
84
|
+
}
|
|
85
|
+
function getRectTopRight(rect) {
|
|
86
|
+
return createPoint(getRectMaxX(rect), rect.y);
|
|
87
|
+
}
|
|
88
|
+
function getRectBottomLeft(rect) {
|
|
89
|
+
return createPoint(rect.x, getRectMaxY(rect));
|
|
90
|
+
}
|
|
91
|
+
function getRectBottomRight(rect) {
|
|
92
|
+
return createPoint(getRectMaxX(rect), getRectMaxY(rect));
|
|
93
|
+
}
|
|
94
|
+
function getRectPointByRectCorner(rect, corner) {
|
|
95
|
+
switch (corner) {
|
|
96
|
+
case "TopLeft" /* TopLeft */:
|
|
97
|
+
return getRectTopLeft(rect);
|
|
98
|
+
case "TopRight" /* TopRight */:
|
|
99
|
+
return getRectTopRight(rect);
|
|
100
|
+
case "BottomLeft" /* BottomLeft */:
|
|
101
|
+
return getRectBottomLeft(rect);
|
|
102
|
+
case "BottomRight" /* BottomRight */:
|
|
103
|
+
return getRectBottomRight(rect);
|
|
104
|
+
default:
|
|
105
|
+
throw new TypeError(`Not match corner: ${corner}`);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
function checkRectIntersectsX(a, b) {
|
|
109
|
+
return a.x <= getRectMaxX(b) && b.x <= getRectMaxX(a);
|
|
110
|
+
}
|
|
111
|
+
function checkRectIntersectsY(a, b) {
|
|
112
|
+
return a.y <= getRectMaxY(b) && b.y <= getRectMaxY(a);
|
|
113
|
+
}
|
|
114
|
+
function checkRectIntersects(a, b) {
|
|
115
|
+
return checkRectIntersectsX(a, b) && checkRectIntersectsY(a, b);
|
|
116
|
+
}
|
|
117
|
+
function checkRectContains(a, b) {
|
|
118
|
+
return a.x <= b.x && a.y <= b.y && getRectMaxX(a) >= getRectMaxX(b) && getRectMaxY(a) >= getRectMaxY(b);
|
|
119
|
+
}
|
|
120
|
+
function checkRectContainsPoint(a, p) {
|
|
121
|
+
return a.x <= p.x && a.y <= p.y && getRectMaxX(a) >= p.x && getRectMaxY(a) >= p.y;
|
|
122
|
+
}
|
|
123
|
+
function getRectCornerInOther(a, b) {
|
|
124
|
+
for (const key in RectCorner) {
|
|
125
|
+
const point = getRectPointByRectCorner(a, RectCorner[key]);
|
|
126
|
+
if (checkRectContainsPoint(b, point))
|
|
127
|
+
return RectCorner[key];
|
|
128
|
+
}
|
|
129
|
+
return null;
|
|
130
|
+
}
|
|
131
|
+
function checkRectEqual(a, b) {
|
|
132
|
+
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
|
133
|
+
}
|
|
134
|
+
function checkRectEqualPoint(r, p) {
|
|
135
|
+
return r.x === p.x && r.y === p.y;
|
|
136
|
+
}
|
|
137
|
+
function checkRectEqualSize(r, s) {
|
|
138
|
+
return r.width === s.width && r.height === s.height;
|
|
139
|
+
}
|
|
140
|
+
function checkLayoutInvalidate(newRect, oldRect) {
|
|
141
|
+
return newRect.width !== oldRect.width || newRect.height !== oldRect.height;
|
|
142
|
+
}
|
|
143
|
+
function toSize(rect) {
|
|
144
|
+
return createSize(rect.width, rect.height);
|
|
145
|
+
}
|
|
146
|
+
function toPoint(rect) {
|
|
147
|
+
return createPoint(rect.x, rect.y);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
exports.RectCorner = RectCorner;
|
|
151
|
+
exports.checkLayoutInvalidate = checkLayoutInvalidate;
|
|
152
|
+
exports.checkPointEqual = checkPointEqual;
|
|
153
|
+
exports.checkPointOrigin = checkPointOrigin;
|
|
154
|
+
exports.checkRectContains = checkRectContains;
|
|
155
|
+
exports.checkRectContainsPoint = checkRectContainsPoint;
|
|
156
|
+
exports.checkRectEqual = checkRectEqual;
|
|
157
|
+
exports.checkRectEqualPoint = checkRectEqualPoint;
|
|
158
|
+
exports.checkRectEqualSize = checkRectEqualSize;
|
|
159
|
+
exports.checkRectIntersects = checkRectIntersects;
|
|
160
|
+
exports.checkRectIntersectsX = checkRectIntersectsX;
|
|
161
|
+
exports.checkRectIntersectsY = checkRectIntersectsY;
|
|
162
|
+
exports.checkSizeEqual = checkSizeEqual;
|
|
163
|
+
exports.cloneRect = cloneRect;
|
|
164
|
+
exports.createPoint = createPoint;
|
|
165
|
+
exports.createRect = createRect;
|
|
166
|
+
exports.createSize = createSize;
|
|
167
|
+
exports.execLastTick = execLastTick;
|
|
168
|
+
exports.getRectArea = getRectArea;
|
|
169
|
+
exports.getRectBottomLeft = getRectBottomLeft;
|
|
170
|
+
exports.getRectBottomRight = getRectBottomRight;
|
|
171
|
+
exports.getRectCornerInOther = getRectCornerInOther;
|
|
172
|
+
exports.getRectMaxX = getRectMaxX;
|
|
173
|
+
exports.getRectMaxY = getRectMaxY;
|
|
174
|
+
exports.getRectPointByRectCorner = getRectPointByRectCorner;
|
|
175
|
+
exports.getRectTopLeft = getRectTopLeft;
|
|
176
|
+
exports.getRectTopRight = getRectTopRight;
|
|
177
|
+
exports.noop = noop;
|
|
178
|
+
exports.toPoint = toPoint;
|
|
179
|
+
exports.toSize = toSize;
|
|
180
|
+
exports.usePrevious = usePrevious;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
declare function noop(): void;
|
|
2
|
+
|
|
3
|
+
type Previous<T> = [
|
|
4
|
+
{
|
|
5
|
+
readonly curr: T | undefined;
|
|
6
|
+
readonly prev: T | undefined;
|
|
7
|
+
},
|
|
8
|
+
(val: T) => void
|
|
9
|
+
];
|
|
10
|
+
declare function usePrevious<T>(val?: T): Previous<T>;
|
|
11
|
+
|
|
12
|
+
type WithoutFirstParameter<T> = T extends (arg1: any, ...args: infer U) => any ? U : any;
|
|
13
|
+
declare function execLastTick<TTickFn extends typeof setTimeout | typeof queueMicrotask | typeof requestAnimationFrame, TFn extends (...args: any) => any>(tickFn: TTickFn, fn: TFn, ...tickFnArgs: WithoutFirstParameter<TTickFn>): (...args: Parameters<TFn>) => void;
|
|
14
|
+
|
|
15
|
+
interface Point {
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
}
|
|
19
|
+
declare function createPoint(x?: number, y?: number): Point;
|
|
20
|
+
declare function checkPointOrigin(p: Point): boolean;
|
|
21
|
+
declare function checkPointEqual(a: Point, b: Point): boolean;
|
|
22
|
+
|
|
23
|
+
interface Size {
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
|
+
}
|
|
27
|
+
declare function createSize(width?: number, height?: number): Size;
|
|
28
|
+
declare function checkSizeEqual(a: Size, b: Size): boolean;
|
|
29
|
+
|
|
30
|
+
type Rect = Size & Point;
|
|
31
|
+
declare enum RectCorner {
|
|
32
|
+
TopLeft = "TopLeft",
|
|
33
|
+
TopRight = "TopRight",
|
|
34
|
+
BottomLeft = "BottomLeft",
|
|
35
|
+
BottomRight = "BottomRight"
|
|
36
|
+
}
|
|
37
|
+
declare function createRect(x?: number, y?: number, width?: number, height?: number): Rect;
|
|
38
|
+
declare function cloneRect(rect: Rect): Rect;
|
|
39
|
+
declare function getRectMaxX(rect: Rect): number;
|
|
40
|
+
declare function getRectMaxY(rect: Rect): number;
|
|
41
|
+
declare function getRectArea(rect: Rect): number;
|
|
42
|
+
declare function getRectTopLeft(rect: Rect): Point;
|
|
43
|
+
declare function getRectTopRight(rect: Rect): Point;
|
|
44
|
+
declare function getRectBottomLeft(rect: Rect): Point;
|
|
45
|
+
declare function getRectBottomRight(rect: Rect): Point;
|
|
46
|
+
declare function getRectPointByRectCorner(rect: Rect, corner: RectCorner): Point;
|
|
47
|
+
declare function checkRectIntersectsX(a: Rect, b: Rect): boolean;
|
|
48
|
+
declare function checkRectIntersectsY(a: Rect, b: Rect): boolean;
|
|
49
|
+
declare function checkRectIntersects(a: Rect, b: Rect): boolean;
|
|
50
|
+
declare function checkRectContains(a: Rect, b: Rect): boolean;
|
|
51
|
+
declare function checkRectContainsPoint(a: Rect, p: Point): boolean;
|
|
52
|
+
declare function getRectCornerInOther(a: Rect, b: Rect): RectCorner | null;
|
|
53
|
+
declare function checkRectEqual(a: Rect, b: Rect): boolean;
|
|
54
|
+
declare function checkRectEqualPoint(r: Rect, p: Point | Rect): boolean;
|
|
55
|
+
declare function checkRectEqualSize(r: Rect, s: Size | Rect): boolean;
|
|
56
|
+
declare function checkLayoutInvalidate(newRect: Rect, oldRect: Rect): boolean;
|
|
57
|
+
declare function toSize(rect: Rect): Size;
|
|
58
|
+
declare function toPoint(rect: Rect): Point;
|
|
59
|
+
|
|
60
|
+
export { Point, Previous, Rect, RectCorner, Size, checkLayoutInvalidate, checkPointEqual, checkPointOrigin, checkRectContains, checkRectContainsPoint, checkRectEqual, checkRectEqualPoint, checkRectEqualSize, checkRectIntersects, checkRectIntersectsX, checkRectIntersectsY, checkSizeEqual, cloneRect, createPoint, createRect, createSize, execLastTick, getRectArea, getRectBottomLeft, getRectBottomRight, getRectCornerInOther, getRectMaxX, getRectMaxY, getRectPointByRectCorner, getRectTopLeft, getRectTopRight, noop, toPoint, toSize, usePrevious };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
function noop() {
|
|
2
|
+
}
|
|
3
|
+
|
|
4
|
+
function usePrevious(val) {
|
|
5
|
+
const value = {
|
|
6
|
+
curr: val,
|
|
7
|
+
prev: val
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(value, "curr", { writable: false });
|
|
10
|
+
Object.defineProperty(value, "prev", { writable: false });
|
|
11
|
+
return [
|
|
12
|
+
value,
|
|
13
|
+
(nextValue) => {
|
|
14
|
+
Object.defineProperty(value, "prev", { value: value.curr, writable: false });
|
|
15
|
+
Object.defineProperty(value, "curr", { value: nextValue, writable: false });
|
|
16
|
+
}
|
|
17
|
+
];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function execLastTick(tickFn, fn, ...tickFnArgs) {
|
|
21
|
+
let taskId = 0;
|
|
22
|
+
let lastArgs;
|
|
23
|
+
return (...fnArgs) => {
|
|
24
|
+
lastArgs = fnArgs;
|
|
25
|
+
taskId++;
|
|
26
|
+
const currId = taskId;
|
|
27
|
+
tickFn(
|
|
28
|
+
() => {
|
|
29
|
+
if (currId !== taskId)
|
|
30
|
+
return;
|
|
31
|
+
fn.apply(null, lastArgs ?? []);
|
|
32
|
+
},
|
|
33
|
+
...tickFnArgs
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function createPoint(x = 0, y = 0) {
|
|
39
|
+
return { x, y };
|
|
40
|
+
}
|
|
41
|
+
function checkPointOrigin(p) {
|
|
42
|
+
return p.x === 0 && p.y === 0;
|
|
43
|
+
}
|
|
44
|
+
function checkPointEqual(a, b) {
|
|
45
|
+
return a.x === b.x && a.y === b.y;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function createSize(width = 0, height = 0) {
|
|
49
|
+
return { width, height };
|
|
50
|
+
}
|
|
51
|
+
function checkSizeEqual(a, b) {
|
|
52
|
+
return a.width === b.width && a.height === b.height;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
var RectCorner = /* @__PURE__ */ ((RectCorner2) => {
|
|
56
|
+
RectCorner2["TopLeft"] = "TopLeft";
|
|
57
|
+
RectCorner2["TopRight"] = "TopRight";
|
|
58
|
+
RectCorner2["BottomLeft"] = "BottomLeft";
|
|
59
|
+
RectCorner2["BottomRight"] = "BottomRight";
|
|
60
|
+
return RectCorner2;
|
|
61
|
+
})(RectCorner || {});
|
|
62
|
+
function createRect(x = 0, y = 0, width = 0, height = 0) {
|
|
63
|
+
return {
|
|
64
|
+
...createPoint(x, y),
|
|
65
|
+
...createSize(width, height)
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function cloneRect(rect) {
|
|
69
|
+
return createRect(rect.x, rect.y, rect.width, rect.height);
|
|
70
|
+
}
|
|
71
|
+
function getRectMaxX(rect) {
|
|
72
|
+
return rect.x + rect.width;
|
|
73
|
+
}
|
|
74
|
+
function getRectMaxY(rect) {
|
|
75
|
+
return rect.y + rect.height;
|
|
76
|
+
}
|
|
77
|
+
function getRectArea(rect) {
|
|
78
|
+
return rect.width * rect.height;
|
|
79
|
+
}
|
|
80
|
+
function getRectTopLeft(rect) {
|
|
81
|
+
return createPoint(rect.x, rect.y);
|
|
82
|
+
}
|
|
83
|
+
function getRectTopRight(rect) {
|
|
84
|
+
return createPoint(getRectMaxX(rect), rect.y);
|
|
85
|
+
}
|
|
86
|
+
function getRectBottomLeft(rect) {
|
|
87
|
+
return createPoint(rect.x, getRectMaxY(rect));
|
|
88
|
+
}
|
|
89
|
+
function getRectBottomRight(rect) {
|
|
90
|
+
return createPoint(getRectMaxX(rect), getRectMaxY(rect));
|
|
91
|
+
}
|
|
92
|
+
function getRectPointByRectCorner(rect, corner) {
|
|
93
|
+
switch (corner) {
|
|
94
|
+
case "TopLeft" /* TopLeft */:
|
|
95
|
+
return getRectTopLeft(rect);
|
|
96
|
+
case "TopRight" /* TopRight */:
|
|
97
|
+
return getRectTopRight(rect);
|
|
98
|
+
case "BottomLeft" /* BottomLeft */:
|
|
99
|
+
return getRectBottomLeft(rect);
|
|
100
|
+
case "BottomRight" /* BottomRight */:
|
|
101
|
+
return getRectBottomRight(rect);
|
|
102
|
+
default:
|
|
103
|
+
throw new TypeError(`Not match corner: ${corner}`);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
function checkRectIntersectsX(a, b) {
|
|
107
|
+
return a.x <= getRectMaxX(b) && b.x <= getRectMaxX(a);
|
|
108
|
+
}
|
|
109
|
+
function checkRectIntersectsY(a, b) {
|
|
110
|
+
return a.y <= getRectMaxY(b) && b.y <= getRectMaxY(a);
|
|
111
|
+
}
|
|
112
|
+
function checkRectIntersects(a, b) {
|
|
113
|
+
return checkRectIntersectsX(a, b) && checkRectIntersectsY(a, b);
|
|
114
|
+
}
|
|
115
|
+
function checkRectContains(a, b) {
|
|
116
|
+
return a.x <= b.x && a.y <= b.y && getRectMaxX(a) >= getRectMaxX(b) && getRectMaxY(a) >= getRectMaxY(b);
|
|
117
|
+
}
|
|
118
|
+
function checkRectContainsPoint(a, p) {
|
|
119
|
+
return a.x <= p.x && a.y <= p.y && getRectMaxX(a) >= p.x && getRectMaxY(a) >= p.y;
|
|
120
|
+
}
|
|
121
|
+
function getRectCornerInOther(a, b) {
|
|
122
|
+
for (const key in RectCorner) {
|
|
123
|
+
const point = getRectPointByRectCorner(a, RectCorner[key]);
|
|
124
|
+
if (checkRectContainsPoint(b, point))
|
|
125
|
+
return RectCorner[key];
|
|
126
|
+
}
|
|
127
|
+
return null;
|
|
128
|
+
}
|
|
129
|
+
function checkRectEqual(a, b) {
|
|
130
|
+
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
|
131
|
+
}
|
|
132
|
+
function checkRectEqualPoint(r, p) {
|
|
133
|
+
return r.x === p.x && r.y === p.y;
|
|
134
|
+
}
|
|
135
|
+
function checkRectEqualSize(r, s) {
|
|
136
|
+
return r.width === s.width && r.height === s.height;
|
|
137
|
+
}
|
|
138
|
+
function checkLayoutInvalidate(newRect, oldRect) {
|
|
139
|
+
return newRect.width !== oldRect.width || newRect.height !== oldRect.height;
|
|
140
|
+
}
|
|
141
|
+
function toSize(rect) {
|
|
142
|
+
return createSize(rect.width, rect.height);
|
|
143
|
+
}
|
|
144
|
+
function toPoint(rect) {
|
|
145
|
+
return createPoint(rect.x, rect.y);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export { RectCorner, checkLayoutInvalidate, checkPointEqual, checkPointOrigin, checkRectContains, checkRectContainsPoint, checkRectEqual, checkRectEqualPoint, checkRectEqualSize, checkRectIntersects, checkRectIntersectsX, checkRectIntersectsY, checkSizeEqual, cloneRect, createPoint, createRect, createSize, execLastTick, getRectArea, getRectBottomLeft, getRectBottomRight, getRectCornerInOther, getRectMaxX, getRectMaxY, getRectPointByRectCorner, getRectTopLeft, getRectTopRight, noop, toPoint, toSize, usePrevious };
|
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bouzu/shared",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"author": "zhong666 <hi@zhong666.me>",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"require": "./dist/index.cjs",
|
|
12
|
+
"import": "./dist/index.mjs"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"main": "./dist/index.cjs",
|
|
16
|
+
"module": "./dist/index.mjs",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "unbuild"
|
|
26
|
+
}
|
|
27
|
+
}
|