@hostlink/nuxt-light 0.0.45 → 0.0.46
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/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -53,7 +53,8 @@ const module = defineNuxtModule({
|
|
|
53
53
|
{ name: "t", from },
|
|
54
54
|
{ name: "updateObject", from },
|
|
55
55
|
{ name: "listObject", from },
|
|
56
|
-
{ name: "useLight", from: index }
|
|
56
|
+
{ name: "useLight", from: index },
|
|
57
|
+
{ name: "isGranted", from }
|
|
57
58
|
]);
|
|
58
59
|
addPlugin({
|
|
59
60
|
src: resolver.resolve("./runtime/plugin"),
|
|
@@ -15,6 +15,7 @@ import deleteObject from "./deleteObject";
|
|
|
15
15
|
import t from "./t";
|
|
16
16
|
import updateObject from "./updateObject";
|
|
17
17
|
import listObject from "./listObject";
|
|
18
|
+
import isGranted from "./isGranted";
|
|
18
19
|
declare const notify: (message: string, color?: string) => void;
|
|
19
20
|
import getID from "./getID";
|
|
20
|
-
export { addObject, f, getApiUrl, getCurrentUser, getObject, id, list, listData, login, m, mutation, q, removeObject, t, updateObject, notify, getID, deleteObject, listObject };
|
|
21
|
+
export { addObject, f, getApiUrl, getCurrentUser, getObject, id, list, listData, login, m, mutation, q, removeObject, t, updateObject, notify, getID, deleteObject, listObject, isGranted };
|
|
@@ -16,6 +16,7 @@ import deleteObject from "./deleteObject.mjs";
|
|
|
16
16
|
import t from "./t.mjs";
|
|
17
17
|
import updateObject from "./updateObject.mjs";
|
|
18
18
|
import listObject from "./listObject.mjs";
|
|
19
|
+
import isGranted from "./isGranted.mjs";
|
|
19
20
|
const notify = function(message, color = "green") {
|
|
20
21
|
Notify.create({
|
|
21
22
|
message,
|
|
@@ -24,4 +25,25 @@ const notify = function(message, color = "green") {
|
|
|
24
25
|
});
|
|
25
26
|
};
|
|
26
27
|
import getID from "./getID.mjs";
|
|
27
|
-
export {
|
|
28
|
+
export {
|
|
29
|
+
addObject,
|
|
30
|
+
f,
|
|
31
|
+
getApiUrl,
|
|
32
|
+
getCurrentUser,
|
|
33
|
+
getObject,
|
|
34
|
+
id,
|
|
35
|
+
list,
|
|
36
|
+
listData,
|
|
37
|
+
login,
|
|
38
|
+
m,
|
|
39
|
+
mutation,
|
|
40
|
+
q,
|
|
41
|
+
removeObject,
|
|
42
|
+
t,
|
|
43
|
+
updateObject,
|
|
44
|
+
notify,
|
|
45
|
+
getID,
|
|
46
|
+
deleteObject,
|
|
47
|
+
listObject,
|
|
48
|
+
isGranted
|
|
49
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function isGranted(right: string): Promise<boolean>;
|