pinia-orm-edge 2.0.0-28996311.a613861 → 2.0.0-28996332.a86dc5d
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/package.json +3 -3
- package/dist/nanoid/async.cjs +0 -36
- package/dist/nanoid/async.d.cts +0 -30
- package/dist/nanoid/async.d.mts +0 -30
- package/dist/nanoid/async.d.ts +0 -30
- package/dist/nanoid/async.mjs +0 -33
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "pinia-orm-edge",
|
3
|
-
"version": "2.0.0-
|
3
|
+
"version": "2.0.0-28996332.a86dc5d",
|
4
4
|
"description": "The Pinia plugin to enable Object-Relational Mapping access to the Pinia Store.",
|
5
5
|
"keywords": [
|
6
6
|
"vue",
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"pinia": "^3.0.1"
|
47
47
|
},
|
48
48
|
"dependencies": {
|
49
|
-
"@pinia-orm/normalizr": "npm:@pinia-orm/normalizr-edge@2.0.0-
|
49
|
+
"@pinia-orm/normalizr": "npm:@pinia-orm/normalizr-edge@2.0.0-28996332.a86dc5d"
|
50
50
|
},
|
51
51
|
"devDependencies": {
|
52
52
|
"@nuxt/eslint-config": "^0.3.13",
|
@@ -66,7 +66,7 @@
|
|
66
66
|
"eslint": "^9.6.0",
|
67
67
|
"happy-dom": "^16.0.1",
|
68
68
|
"mkdist": "^2.1.0",
|
69
|
-
"nanoid": "
|
69
|
+
"nanoid": "^5.1.0",
|
70
70
|
"pinia": "^3.0.1",
|
71
71
|
"prettier": "^3.3.2",
|
72
72
|
"size-limit": "^11.1.4",
|
package/dist/nanoid/async.cjs
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
const async = require('nanoid/async');
|
4
|
-
const CastAttribute = require('../shared/pinia-orm.DWjxIbAJ.cjs');
|
5
|
-
|
6
|
-
class UidCast extends CastAttribute.CastAttribute {
|
7
|
-
static parameters;
|
8
|
-
/**
|
9
|
-
* Create a new String attribute instance.
|
10
|
-
*/
|
11
|
-
constructor(attributes) {
|
12
|
-
super(attributes);
|
13
|
-
}
|
14
|
-
static withParameters(parameters) {
|
15
|
-
this.parameters = parameters;
|
16
|
-
return this;
|
17
|
-
}
|
18
|
-
/**
|
19
|
-
* Make the value for the attribute.
|
20
|
-
*/
|
21
|
-
async set(value) {
|
22
|
-
const nanoid = this.$parameters?.alphabet ? async.customAlphabet(this.$parameters.alphabet) : async.nanoid;
|
23
|
-
return value ?? await nanoid(this.$parameters?.size);
|
24
|
-
}
|
25
|
-
}
|
26
|
-
|
27
|
-
function Uid(options) {
|
28
|
-
return (target, propertyKey) => {
|
29
|
-
const self = target.$self();
|
30
|
-
self.setCast(propertyKey, UidCast.withParameters(options));
|
31
|
-
self.setRegistry(propertyKey, () => self.uid());
|
32
|
-
};
|
33
|
-
}
|
34
|
-
|
35
|
-
exports.Uid = Uid;
|
36
|
-
exports.UidCast = UidCast;
|
package/dist/nanoid/async.d.cts
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
import { a2 as CastAttribute, at as NanoidOptions, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.eiCLbQIe.cjs';
|
2
|
-
import 'pinia';
|
3
|
-
import 'vue';
|
4
|
-
import '@pinia-orm/normalizr';
|
5
|
-
import '@/composables';
|
6
|
-
|
7
|
-
/**
|
8
|
-
* Create a cast nanoid/async.
|
9
|
-
* @deprecated will be removed in v2 because nanoid v5 dropped it
|
10
|
-
*/
|
11
|
-
declare class UidCast extends CastAttribute {
|
12
|
-
static parameters?: NanoidOptions;
|
13
|
-
/**
|
14
|
-
* Create a new String attribute instance.
|
15
|
-
*/
|
16
|
-
constructor(attributes: ModelFields);
|
17
|
-
static withParameters(parameters?: NanoidOptions): typeof CastAttribute;
|
18
|
-
/**
|
19
|
-
* Make the value for the attribute.
|
20
|
-
*/
|
21
|
-
set(value: any): Promise<string | null>;
|
22
|
-
}
|
23
|
-
|
24
|
-
/**
|
25
|
-
* Creates an uuid based on nanoid/async.
|
26
|
-
* @deprecated will be removed in v2 because nanoid v5 dropped it
|
27
|
-
*/
|
28
|
-
declare function Uid(options?: NanoidOptions): PropertyDecorator;
|
29
|
-
|
30
|
-
export { Uid, UidCast };
|
package/dist/nanoid/async.d.mts
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
import { a2 as CastAttribute, at as NanoidOptions, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.eiCLbQIe.mjs';
|
2
|
-
import 'pinia';
|
3
|
-
import 'vue';
|
4
|
-
import '@pinia-orm/normalizr';
|
5
|
-
import '@/composables';
|
6
|
-
|
7
|
-
/**
|
8
|
-
* Create a cast nanoid/async.
|
9
|
-
* @deprecated will be removed in v2 because nanoid v5 dropped it
|
10
|
-
*/
|
11
|
-
declare class UidCast extends CastAttribute {
|
12
|
-
static parameters?: NanoidOptions;
|
13
|
-
/**
|
14
|
-
* Create a new String attribute instance.
|
15
|
-
*/
|
16
|
-
constructor(attributes: ModelFields);
|
17
|
-
static withParameters(parameters?: NanoidOptions): typeof CastAttribute;
|
18
|
-
/**
|
19
|
-
* Make the value for the attribute.
|
20
|
-
*/
|
21
|
-
set(value: any): Promise<string | null>;
|
22
|
-
}
|
23
|
-
|
24
|
-
/**
|
25
|
-
* Creates an uuid based on nanoid/async.
|
26
|
-
* @deprecated will be removed in v2 because nanoid v5 dropped it
|
27
|
-
*/
|
28
|
-
declare function Uid(options?: NanoidOptions): PropertyDecorator;
|
29
|
-
|
30
|
-
export { Uid, UidCast };
|
package/dist/nanoid/async.d.ts
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
import { a2 as CastAttribute, at as NanoidOptions, q as ModelFields, aq as PropertyDecorator } from '../shared/pinia-orm.eiCLbQIe.js';
|
2
|
-
import 'pinia';
|
3
|
-
import 'vue';
|
4
|
-
import '@pinia-orm/normalizr';
|
5
|
-
import '@/composables';
|
6
|
-
|
7
|
-
/**
|
8
|
-
* Create a cast nanoid/async.
|
9
|
-
* @deprecated will be removed in v2 because nanoid v5 dropped it
|
10
|
-
*/
|
11
|
-
declare class UidCast extends CastAttribute {
|
12
|
-
static parameters?: NanoidOptions;
|
13
|
-
/**
|
14
|
-
* Create a new String attribute instance.
|
15
|
-
*/
|
16
|
-
constructor(attributes: ModelFields);
|
17
|
-
static withParameters(parameters?: NanoidOptions): typeof CastAttribute;
|
18
|
-
/**
|
19
|
-
* Make the value for the attribute.
|
20
|
-
*/
|
21
|
-
set(value: any): Promise<string | null>;
|
22
|
-
}
|
23
|
-
|
24
|
-
/**
|
25
|
-
* Creates an uuid based on nanoid/async.
|
26
|
-
* @deprecated will be removed in v2 because nanoid v5 dropped it
|
27
|
-
*/
|
28
|
-
declare function Uid(options?: NanoidOptions): PropertyDecorator;
|
29
|
-
|
30
|
-
export { Uid, UidCast };
|
package/dist/nanoid/async.mjs
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
import { customAlphabet, nanoid } from 'nanoid/async';
|
2
|
-
import { C as CastAttribute } from '../shared/pinia-orm.C7bM_uXu.mjs';
|
3
|
-
|
4
|
-
class UidCast extends CastAttribute {
|
5
|
-
static parameters;
|
6
|
-
/**
|
7
|
-
* Create a new String attribute instance.
|
8
|
-
*/
|
9
|
-
constructor(attributes) {
|
10
|
-
super(attributes);
|
11
|
-
}
|
12
|
-
static withParameters(parameters) {
|
13
|
-
this.parameters = parameters;
|
14
|
-
return this;
|
15
|
-
}
|
16
|
-
/**
|
17
|
-
* Make the value for the attribute.
|
18
|
-
*/
|
19
|
-
async set(value) {
|
20
|
-
const nanoid$1 = this.$parameters?.alphabet ? customAlphabet(this.$parameters.alphabet) : nanoid;
|
21
|
-
return value ?? await nanoid$1(this.$parameters?.size);
|
22
|
-
}
|
23
|
-
}
|
24
|
-
|
25
|
-
function Uid(options) {
|
26
|
-
return (target, propertyKey) => {
|
27
|
-
const self = target.$self();
|
28
|
-
self.setCast(propertyKey, UidCast.withParameters(options));
|
29
|
-
self.setRegistry(propertyKey, () => self.uid());
|
30
|
-
};
|
31
|
-
}
|
32
|
-
|
33
|
-
export { Uid, UidCast };
|