pinia-orm-edge 1.7.3-28257628.bbb8bab

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.
Files changed (55) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +96 -0
  3. package/dist/casts.cjs +124 -0
  4. package/dist/casts.d.cts +66 -0
  5. package/dist/casts.d.mts +66 -0
  6. package/dist/casts.d.ts +66 -0
  7. package/dist/casts.mjs +118 -0
  8. package/dist/decorators.cjs +219 -0
  9. package/dist/decorators.d.cts +107 -0
  10. package/dist/decorators.d.mts +107 -0
  11. package/dist/decorators.d.ts +107 -0
  12. package/dist/decorators.mjs +198 -0
  13. package/dist/helpers.cjs +69 -0
  14. package/dist/helpers.d.cts +54 -0
  15. package/dist/helpers.d.mts +54 -0
  16. package/dist/helpers.d.ts +54 -0
  17. package/dist/helpers.mjs +61 -0
  18. package/dist/index.cjs +3592 -0
  19. package/dist/index.d.cts +49 -0
  20. package/dist/index.d.mts +49 -0
  21. package/dist/index.d.ts +49 -0
  22. package/dist/index.mjs +3561 -0
  23. package/dist/nanoid/async.cjs +42 -0
  24. package/dist/nanoid/async.d.cts +29 -0
  25. package/dist/nanoid/async.d.mts +29 -0
  26. package/dist/nanoid/async.d.ts +29 -0
  27. package/dist/nanoid/async.mjs +39 -0
  28. package/dist/nanoid/index.cjs +42 -0
  29. package/dist/nanoid/index.d.cts +24 -0
  30. package/dist/nanoid/index.d.mts +24 -0
  31. package/dist/nanoid/index.d.ts +24 -0
  32. package/dist/nanoid/index.mjs +39 -0
  33. package/dist/nanoid/non-secure.cjs +42 -0
  34. package/dist/nanoid/non-secure.d.cts +24 -0
  35. package/dist/nanoid/non-secure.d.mts +24 -0
  36. package/dist/nanoid/non-secure.d.ts +24 -0
  37. package/dist/nanoid/non-secure.mjs +39 -0
  38. package/dist/shared/pinia-orm.1bd7d299.mjs +153 -0
  39. package/dist/shared/pinia-orm.4ff2e12f.mjs +66 -0
  40. package/dist/shared/pinia-orm.876a7cdc.d.cts +1981 -0
  41. package/dist/shared/pinia-orm.876a7cdc.d.mts +1981 -0
  42. package/dist/shared/pinia-orm.876a7cdc.d.ts +1981 -0
  43. package/dist/shared/pinia-orm.a62c4fc4.cjs +167 -0
  44. package/dist/shared/pinia-orm.a7e3e0f3.cjs +68 -0
  45. package/dist/uuid/v1.cjs +41 -0
  46. package/dist/uuid/v1.d.cts +25 -0
  47. package/dist/uuid/v1.d.mts +25 -0
  48. package/dist/uuid/v1.d.ts +25 -0
  49. package/dist/uuid/v1.mjs +38 -0
  50. package/dist/uuid/v4.cjs +41 -0
  51. package/dist/uuid/v4.d.cts +25 -0
  52. package/dist/uuid/v4.d.mts +25 -0
  53. package/dist/uuid/v4.d.ts +25 -0
  54. package/dist/uuid/v4.mjs +38 -0
  55. package/package.json +126 -0
@@ -0,0 +1,167 @@
1
+ 'use strict';
2
+
3
+ function compareWithOperator(leftValue, rightValue, operator) {
4
+ switch (operator) {
5
+ case ">":
6
+ return leftValue > rightValue;
7
+ case ">=":
8
+ return leftValue >= rightValue;
9
+ case "<":
10
+ return leftValue < rightValue;
11
+ case "<=":
12
+ return leftValue <= rightValue;
13
+ case "=":
14
+ return leftValue === rightValue;
15
+ case "!=":
16
+ return leftValue !== rightValue;
17
+ default:
18
+ return leftValue === rightValue;
19
+ }
20
+ }
21
+ function isNullish(value) {
22
+ return value === void 0 || value === null;
23
+ }
24
+ function isArray(value) {
25
+ return Array.isArray(value);
26
+ }
27
+ function isFunction(value) {
28
+ return typeof value === "function";
29
+ }
30
+ function isEmpty(collection) {
31
+ return size(collection) === 0;
32
+ }
33
+ function size(collection) {
34
+ return isArray(collection) ? collection.length : Object.keys(collection).length;
35
+ }
36
+ function orderBy(collection, iteratees, directions, flags = "SORT_REGULAR") {
37
+ let index = -1;
38
+ const result = collection.map((value) => {
39
+ const criteria = iteratees.map((iteratee) => {
40
+ return typeof iteratee === "function" ? iteratee(value) : value[iteratee];
41
+ });
42
+ return { criteria, index: ++index, value };
43
+ });
44
+ return baseSortBy(result, (object, other) => {
45
+ return compareMultiple(object, other, directions, flags);
46
+ });
47
+ }
48
+ function baseSortBy(array, comparer) {
49
+ let length = array.length;
50
+ array.sort(comparer);
51
+ const newArray = [];
52
+ while (length--) {
53
+ newArray[length] = array[length].value;
54
+ }
55
+ return newArray;
56
+ }
57
+ function compareMultiple(object, other, directions, flags) {
58
+ let index = -1;
59
+ const objCriteria = object.criteria;
60
+ const othCriteria = other.criteria;
61
+ const length = objCriteria.length;
62
+ while (++index < length) {
63
+ const result = compareAscending(objCriteria[index], othCriteria[index], flags);
64
+ if (result) {
65
+ const direction = directions[index];
66
+ return result * (direction === "desc" ? -1 : 1);
67
+ }
68
+ }
69
+ return object.index - other.index;
70
+ }
71
+ function compareAscending(value, other, flags) {
72
+ if (value !== other) {
73
+ const valIsDefined = value !== void 0;
74
+ const valIsNull = value === null;
75
+ const valIsReflexive = value === value;
76
+ const othIsDefined = other !== void 0;
77
+ const othIsNull = other === null;
78
+ if (typeof value !== "number" || typeof other !== "number") {
79
+ value = String(value);
80
+ other = String(other);
81
+ if (flags === "SORT_FLAG_CASE") {
82
+ value = value.toUpperCase();
83
+ other = other.toUpperCase();
84
+ }
85
+ }
86
+ if (!othIsNull && value > other || valIsNull && othIsDefined || !valIsDefined || !valIsReflexive) {
87
+ return 1;
88
+ }
89
+ return -1;
90
+ }
91
+ return 0;
92
+ }
93
+ function groupBy(collection, iteratee) {
94
+ return collection.reduce((records, record) => {
95
+ const key = iteratee(record);
96
+ if (records[key] === void 0) {
97
+ records[key] = [];
98
+ }
99
+ records[key].push(record);
100
+ return records;
101
+ }, {});
102
+ }
103
+ function throwError(message) {
104
+ throw new Error(["[Pinia ORM]"].concat(message).join(" "));
105
+ }
106
+ function assert(condition, message) {
107
+ if (!condition) {
108
+ throwError(message);
109
+ }
110
+ }
111
+ function generateId(size2, alphabet) {
112
+ let id = "";
113
+ let i = size2;
114
+ while (i--) {
115
+ id += alphabet[Math.random() * 64 | 0];
116
+ }
117
+ return id;
118
+ }
119
+ function generateKey(key, params) {
120
+ const keyValues = params ? { key, params } : { key };
121
+ const stringifiedKey = JSON.stringify(keyValues);
122
+ return typeof process === "undefined" ? btoa(stringifiedKey) : stringifiedKey;
123
+ }
124
+ function getValue(obj, keys) {
125
+ keys = typeof keys === "string" ? keys.split(".") : keys;
126
+ const key = keys.shift();
127
+ if (obj && obj.hasOwnProperty(key) && keys.length === 0) {
128
+ return obj[key];
129
+ } else if (!obj || !obj.hasOwnProperty(key)) {
130
+ return obj;
131
+ } else {
132
+ return getValue(obj[key], keys);
133
+ }
134
+ }
135
+ function equals(a, b) {
136
+ if (a === b) {
137
+ return true;
138
+ }
139
+ if (a instanceof Date && b instanceof Date) {
140
+ return a.getTime() === b.getTime();
141
+ }
142
+ if (!a || !b || typeof a !== "object" && typeof b !== "object") {
143
+ return a === b;
144
+ }
145
+ if (a.prototype !== b.prototype) {
146
+ return false;
147
+ }
148
+ const keys = Object.keys(a);
149
+ if (keys.length !== Object.keys(b).length) {
150
+ return false;
151
+ }
152
+ return keys.every((k) => equals(a[k], b[k]));
153
+ }
154
+
155
+ exports.assert = assert;
156
+ exports.compareWithOperator = compareWithOperator;
157
+ exports.equals = equals;
158
+ exports.generateId = generateId;
159
+ exports.generateKey = generateKey;
160
+ exports.getValue = getValue;
161
+ exports.groupBy = groupBy;
162
+ exports.isArray = isArray;
163
+ exports.isEmpty = isEmpty;
164
+ exports.isFunction = isFunction;
165
+ exports.isNullish = isNullish;
166
+ exports.orderBy = orderBy;
167
+ exports.throwError = throwError;
@@ -0,0 +1,68 @@
1
+ 'use strict';
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5
+ var __publicField = (obj, key, value) => {
6
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
7
+ return value;
8
+ };
9
+ class CastAttribute {
10
+ /**
11
+ * Create a new Attribute instance.
12
+ */
13
+ constructor(attributes) {
14
+ /**
15
+ * Default parameters
16
+ */
17
+ __publicField(this, "$parameters", {});
18
+ this.$self().attributes = attributes;
19
+ this.$parameters = {
20
+ ...this.$parameters,
21
+ ...this.$self().parameters
22
+ };
23
+ }
24
+ /**
25
+ * Get the value for return.
26
+ */
27
+ get(value) {
28
+ return value;
29
+ }
30
+ /**
31
+ * Set the value for the store.
32
+ */
33
+ set(value) {
34
+ return value;
35
+ }
36
+ static withParameters(parameters) {
37
+ this.parameters = parameters;
38
+ return this;
39
+ }
40
+ /**
41
+ * Get the cast parameters
42
+ */
43
+ getParameters() {
44
+ return this.$parameters;
45
+ }
46
+ /**
47
+ * Get the constructor for this cast.
48
+ */
49
+ $self() {
50
+ return this.constructor;
51
+ }
52
+ /**
53
+ * Generate new instance of cast
54
+ */
55
+ static newRawInstance(attributes) {
56
+ return new this(attributes);
57
+ }
58
+ }
59
+ /**
60
+ * The model instance.
61
+ */
62
+ __publicField(CastAttribute, "attributes");
63
+ /**
64
+ * Cast parameters
65
+ */
66
+ __publicField(CastAttribute, "parameters");
67
+
68
+ exports.CastAttribute = CastAttribute;
@@ -0,0 +1,41 @@
1
+ 'use strict';
2
+
3
+ const uuid = require('uuid');
4
+ const CastAttribute = require('../shared/pinia-orm.a7e3e0f3.cjs');
5
+
6
+ var __defProp = Object.defineProperty;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __publicField = (obj, key, value) => {
9
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
10
+ return value;
11
+ };
12
+ class UidCast extends CastAttribute.CastAttribute {
13
+ /**
14
+ * Create a new String attribute instance.
15
+ */
16
+ constructor(attributes) {
17
+ super(attributes);
18
+ }
19
+ static withParameters(parameters) {
20
+ this.parameters = parameters;
21
+ return this;
22
+ }
23
+ /**
24
+ * Make the value for the attribute.
25
+ */
26
+ set(value) {
27
+ return value ?? uuid.v1(this.$parameters);
28
+ }
29
+ }
30
+ __publicField(UidCast, "parameters");
31
+
32
+ function Uid(options) {
33
+ return (target, propertyKey) => {
34
+ const self = target.$self();
35
+ self.setCast(propertyKey, UidCast.withParameters(options));
36
+ self.setRegistry(propertyKey, () => self.uid());
37
+ };
38
+ }
39
+
40
+ exports.Uid = Uid;
41
+ exports.UidCast = UidCast;
@@ -0,0 +1,25 @@
1
+ import { V1Options } from 'uuid';
2
+ import { $ as CastAttribute, m as ModelFields, af as PropertyDecorator } from '../shared/pinia-orm.876a7cdc.cjs';
3
+ import 'pinia';
4
+ import '@pinia-orm/normalizr';
5
+ import '@/composables';
6
+
7
+ declare class UidCast extends CastAttribute {
8
+ static parameters?: V1Options;
9
+ /**
10
+ * Create a new String attribute instance.
11
+ */
12
+ constructor(attributes: ModelFields);
13
+ static withParameters(parameters?: V1Options): typeof CastAttribute;
14
+ /**
15
+ * Make the value for the attribute.
16
+ */
17
+ set(value: any): string | null;
18
+ }
19
+
20
+ /**
21
+ * Create a cast for an attribute property decorator.
22
+ */
23
+ declare function Uid(options?: V1Options): PropertyDecorator;
24
+
25
+ export { Uid, UidCast };
@@ -0,0 +1,25 @@
1
+ import { V1Options } from 'uuid';
2
+ import { $ as CastAttribute, m as ModelFields, af as PropertyDecorator } from '../shared/pinia-orm.876a7cdc.mjs';
3
+ import 'pinia';
4
+ import '@pinia-orm/normalizr';
5
+ import '@/composables';
6
+
7
+ declare class UidCast extends CastAttribute {
8
+ static parameters?: V1Options;
9
+ /**
10
+ * Create a new String attribute instance.
11
+ */
12
+ constructor(attributes: ModelFields);
13
+ static withParameters(parameters?: V1Options): typeof CastAttribute;
14
+ /**
15
+ * Make the value for the attribute.
16
+ */
17
+ set(value: any): string | null;
18
+ }
19
+
20
+ /**
21
+ * Create a cast for an attribute property decorator.
22
+ */
23
+ declare function Uid(options?: V1Options): PropertyDecorator;
24
+
25
+ export { Uid, UidCast };
@@ -0,0 +1,25 @@
1
+ import { V1Options } from 'uuid';
2
+ import { $ as CastAttribute, m as ModelFields, af as PropertyDecorator } from '../shared/pinia-orm.876a7cdc.js';
3
+ import 'pinia';
4
+ import '@pinia-orm/normalizr';
5
+ import '@/composables';
6
+
7
+ declare class UidCast extends CastAttribute {
8
+ static parameters?: V1Options;
9
+ /**
10
+ * Create a new String attribute instance.
11
+ */
12
+ constructor(attributes: ModelFields);
13
+ static withParameters(parameters?: V1Options): typeof CastAttribute;
14
+ /**
15
+ * Make the value for the attribute.
16
+ */
17
+ set(value: any): string | null;
18
+ }
19
+
20
+ /**
21
+ * Create a cast for an attribute property decorator.
22
+ */
23
+ declare function Uid(options?: V1Options): PropertyDecorator;
24
+
25
+ export { Uid, UidCast };
@@ -0,0 +1,38 @@
1
+ import { v1 } from 'uuid';
2
+ import { C as CastAttribute } from '../shared/pinia-orm.4ff2e12f.mjs';
3
+
4
+ var __defProp = Object.defineProperty;
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
+ var __publicField = (obj, key, value) => {
7
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
8
+ return value;
9
+ };
10
+ class UidCast extends CastAttribute {
11
+ /**
12
+ * Create a new String attribute instance.
13
+ */
14
+ constructor(attributes) {
15
+ super(attributes);
16
+ }
17
+ static withParameters(parameters) {
18
+ this.parameters = parameters;
19
+ return this;
20
+ }
21
+ /**
22
+ * Make the value for the attribute.
23
+ */
24
+ set(value) {
25
+ return value ?? v1(this.$parameters);
26
+ }
27
+ }
28
+ __publicField(UidCast, "parameters");
29
+
30
+ function Uid(options) {
31
+ return (target, propertyKey) => {
32
+ const self = target.$self();
33
+ self.setCast(propertyKey, UidCast.withParameters(options));
34
+ self.setRegistry(propertyKey, () => self.uid());
35
+ };
36
+ }
37
+
38
+ export { Uid, UidCast };
@@ -0,0 +1,41 @@
1
+ 'use strict';
2
+
3
+ const uuid = require('uuid');
4
+ const CastAttribute = require('../shared/pinia-orm.a7e3e0f3.cjs');
5
+
6
+ var __defProp = Object.defineProperty;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __publicField = (obj, key, value) => {
9
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
10
+ return value;
11
+ };
12
+ class UidCast extends CastAttribute.CastAttribute {
13
+ /**
14
+ * Create a new String attribute instance.
15
+ */
16
+ constructor(attributes) {
17
+ super(attributes);
18
+ }
19
+ static withParameters(parameters) {
20
+ this.parameters = parameters;
21
+ return this;
22
+ }
23
+ /**
24
+ * Make the value for the attribute.
25
+ */
26
+ set(value) {
27
+ return value ?? uuid.v4(this.$parameters);
28
+ }
29
+ }
30
+ __publicField(UidCast, "parameters");
31
+
32
+ function Uid(options) {
33
+ return (target, propertyKey) => {
34
+ const self = target.$self();
35
+ self.setCast(propertyKey, UidCast.withParameters(options));
36
+ self.setRegistry(propertyKey, () => self.uid());
37
+ };
38
+ }
39
+
40
+ exports.Uid = Uid;
41
+ exports.UidCast = UidCast;
@@ -0,0 +1,25 @@
1
+ import { V4Options } from 'uuid';
2
+ import { $ as CastAttribute, m as ModelFields, af as PropertyDecorator } from '../shared/pinia-orm.876a7cdc.cjs';
3
+ import 'pinia';
4
+ import '@pinia-orm/normalizr';
5
+ import '@/composables';
6
+
7
+ declare class UidCast extends CastAttribute {
8
+ static parameters?: V4Options;
9
+ /**
10
+ * Create a new String attribute instance.
11
+ */
12
+ constructor(attributes: ModelFields);
13
+ static withParameters(parameters?: V4Options): typeof CastAttribute;
14
+ /**
15
+ * Make the value for the attribute.
16
+ */
17
+ set(value: any): string | null;
18
+ }
19
+
20
+ /**
21
+ * Create a cast for an attribute property decorator.
22
+ */
23
+ declare function Uid(options?: V4Options): PropertyDecorator;
24
+
25
+ export { Uid, UidCast };
@@ -0,0 +1,25 @@
1
+ import { V4Options } from 'uuid';
2
+ import { $ as CastAttribute, m as ModelFields, af as PropertyDecorator } from '../shared/pinia-orm.876a7cdc.mjs';
3
+ import 'pinia';
4
+ import '@pinia-orm/normalizr';
5
+ import '@/composables';
6
+
7
+ declare class UidCast extends CastAttribute {
8
+ static parameters?: V4Options;
9
+ /**
10
+ * Create a new String attribute instance.
11
+ */
12
+ constructor(attributes: ModelFields);
13
+ static withParameters(parameters?: V4Options): typeof CastAttribute;
14
+ /**
15
+ * Make the value for the attribute.
16
+ */
17
+ set(value: any): string | null;
18
+ }
19
+
20
+ /**
21
+ * Create a cast for an attribute property decorator.
22
+ */
23
+ declare function Uid(options?: V4Options): PropertyDecorator;
24
+
25
+ export { Uid, UidCast };
@@ -0,0 +1,25 @@
1
+ import { V4Options } from 'uuid';
2
+ import { $ as CastAttribute, m as ModelFields, af as PropertyDecorator } from '../shared/pinia-orm.876a7cdc.js';
3
+ import 'pinia';
4
+ import '@pinia-orm/normalizr';
5
+ import '@/composables';
6
+
7
+ declare class UidCast extends CastAttribute {
8
+ static parameters?: V4Options;
9
+ /**
10
+ * Create a new String attribute instance.
11
+ */
12
+ constructor(attributes: ModelFields);
13
+ static withParameters(parameters?: V4Options): typeof CastAttribute;
14
+ /**
15
+ * Make the value for the attribute.
16
+ */
17
+ set(value: any): string | null;
18
+ }
19
+
20
+ /**
21
+ * Create a cast for an attribute property decorator.
22
+ */
23
+ declare function Uid(options?: V4Options): PropertyDecorator;
24
+
25
+ export { Uid, UidCast };
@@ -0,0 +1,38 @@
1
+ import { v4 } from 'uuid';
2
+ import { C as CastAttribute } from '../shared/pinia-orm.4ff2e12f.mjs';
3
+
4
+ var __defProp = Object.defineProperty;
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
+ var __publicField = (obj, key, value) => {
7
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
8
+ return value;
9
+ };
10
+ class UidCast extends CastAttribute {
11
+ /**
12
+ * Create a new String attribute instance.
13
+ */
14
+ constructor(attributes) {
15
+ super(attributes);
16
+ }
17
+ static withParameters(parameters) {
18
+ this.parameters = parameters;
19
+ return this;
20
+ }
21
+ /**
22
+ * Make the value for the attribute.
23
+ */
24
+ set(value) {
25
+ return value ?? v4(this.$parameters);
26
+ }
27
+ }
28
+ __publicField(UidCast, "parameters");
29
+
30
+ function Uid(options) {
31
+ return (target, propertyKey) => {
32
+ const self = target.$self();
33
+ self.setCast(propertyKey, UidCast.withParameters(options));
34
+ self.setRegistry(propertyKey, () => self.uid());
35
+ };
36
+ }
37
+
38
+ export { Uid, UidCast };
package/package.json ADDED
@@ -0,0 +1,126 @@
1
+ {
2
+ "name": "pinia-orm-edge",
3
+ "version": "1.7.3-28257628.bbb8bab",
4
+ "description": "The Pinia plugin to enable Object-Relational Mapping access to the Pinia Store.",
5
+ "keywords": [
6
+ "vue",
7
+ "pinia",
8
+ "pinia-plugin",
9
+ "pinia-orm",
10
+ "orm"
11
+ ],
12
+ "license": "MIT",
13
+ "author": {
14
+ "name": "Gregor Becker",
15
+ "email": "gregor@codedredd.de"
16
+ },
17
+ "funding": "https://github.com/sponsors/codedredd",
18
+ "jsdelivr": "dist/index.mjs",
19
+ "unpkg": "dist/index.mjs",
20
+ "types": "dist/index.d.ts",
21
+ "main": "./dist/index.cjs",
22
+ "module": "./dist/index.mjs",
23
+ "exports": {
24
+ ".": {
25
+ "types": "./dist/index.d.ts",
26
+ "require": "./dist/index.cjs",
27
+ "import": "./dist/index.mjs"
28
+ },
29
+ "./dist/*": {
30
+ "types": "./dist/*.d.ts",
31
+ "require": "./dist/*.cjs",
32
+ "import": "./dist/*.mjs"
33
+ },
34
+ "./*": {
35
+ "types": "./dist/*.d.ts",
36
+ "require": "./dist/*.cjs",
37
+ "import": "./dist/*.mjs"
38
+ }
39
+ },
40
+ "files": [
41
+ "dist",
42
+ "LICENSE",
43
+ "README.md"
44
+ ],
45
+ "peerDependencies": {
46
+ "pinia": "^2.1.6"
47
+ },
48
+ "dependencies": {
49
+ "@pinia-orm/normalizr": "npm:@pinia-orm/normalizr-edge@1.7.1-28257628.bbb8bab"
50
+ },
51
+ "devDependencies": {
52
+ "@nuxtjs/eslint-config-typescript": "^12.1.0",
53
+ "@pinia/testing": "^0.1.3",
54
+ "@size-limit/preset-small-lib": "^9.0.0",
55
+ "@types/node": "^18.17.18",
56
+ "@types/prettier": "^2.7.3",
57
+ "@types/uuid": "^9.0.4",
58
+ "@typescript-eslint/parser": "^6.7.2",
59
+ "@vitest/coverage-v8": "^0.34.5",
60
+ "@vitest/ui": "^0.34.5",
61
+ "@vue/composition-api": "^1.7.2",
62
+ "@vue/test-utils": "^2.4.1",
63
+ "c8": "^8.0.1",
64
+ "core-js": "^3.32.2",
65
+ "eslint": "^8.49.0",
66
+ "happy-dom": "^12.1.6",
67
+ "mkdist": "^1.3.0",
68
+ "nanoid": "4.0.2",
69
+ "pinia": "^2.1.6",
70
+ "prettier": "^3.0.3",
71
+ "size-limit": "^9.0.0",
72
+ "std-env": "^3.4.3",
73
+ "tsup": "^7.2.0",
74
+ "typescript": "^5.2.2",
75
+ "unbuild": "^2.0.0",
76
+ "uuid": "^9.0.1",
77
+ "vite": "^4.4.9",
78
+ "vitest": "^0.34.5",
79
+ "vue": "^3.3.4",
80
+ "vue-demi": "^0.14.6",
81
+ "vue2": "npm:vue@^2.7.3"
82
+ },
83
+ "size-limit": [
84
+ {
85
+ "path": "dist/index.mjs",
86
+ "limit": "13 kB"
87
+ },
88
+ {
89
+ "path": "dist/decorators.mjs",
90
+ "limit": "1 kB"
91
+ },
92
+ {
93
+ "path": "dist/casts.mjs",
94
+ "limit": "1 kB"
95
+ },
96
+ {
97
+ "path": "dist/helpers.mjs",
98
+ "limit": "1 kB"
99
+ }
100
+ ],
101
+ "volta": {
102
+ "node": "18.18.0"
103
+ },
104
+ "repository": {
105
+ "type": "git",
106
+ "url": "git+https://github.com/CodeDredd/pinia-orm.git"
107
+ },
108
+ "bugs": {
109
+ "url": "https://github.com/CodeDredd/pinia-orm/issues"
110
+ },
111
+ "homepage": "https://github.com/CodeDredd/pinia-orm#readme",
112
+ "_name": "pinia-orm",
113
+ "scripts": {
114
+ "build": "unbuild",
115
+ "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s --commit-path . -l pinia-orm -r 1",
116
+ "coverage": "vue-demi-switch 3 && vitest --run --coverage",
117
+ "size": "size-limit",
118
+ "lint": "eslint . --ext .ts",
119
+ "lint:fix": "eslint . --fix --ext .ts",
120
+ "test:ui": "vue-demi-switch 3 && vitest --ui --api 9527",
121
+ "test:watch": "vue-demi-switch 3 && vitest --watch",
122
+ "test:2": "vue-demi-switch 2 vue2 && vitest --run",
123
+ "test:3": "vue-demi-switch 3 && vitest --run",
124
+ "test": "pnpm run test:3"
125
+ }
126
+ }