@moonbase.sh/vue 0.2.12 → 0.2.14
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 +6 -0
- package/dist/index.d.cts +31 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +6 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -120,6 +120,9 @@ var _StorefrontContextImpl = class _StorefrontContextImpl {
|
|
|
120
120
|
});
|
|
121
121
|
this.loadedStorefront = stateFactory(`${_StorefrontContextImpl.storefrontKey}_loaded`, false);
|
|
122
122
|
}
|
|
123
|
+
if (this.client.tokenStore.hasAccessToken) {
|
|
124
|
+
this.currentUser.value = this.client.tokenStore.user;
|
|
125
|
+
}
|
|
123
126
|
const _2 = this.updateStorefront();
|
|
124
127
|
const _3 = this.updateUser();
|
|
125
128
|
}
|
|
@@ -267,6 +270,9 @@ function useInventory(context) {
|
|
|
267
270
|
getLicenseActivations: async (licenseId, nextUrl) => {
|
|
268
271
|
return storefront.client.inventory.licenses.getActivations(licenseId, nextUrl);
|
|
269
272
|
},
|
|
273
|
+
getProduct: async (productId, version) => {
|
|
274
|
+
return storefront.client.inventory.products.get(productId, version);
|
|
275
|
+
},
|
|
270
276
|
getProducts: async (nextUrl) => {
|
|
271
277
|
return storefront.client.inventory.products.getOwned(nextUrl);
|
|
272
278
|
},
|
package/dist/index.d.cts
CHANGED
|
@@ -55,6 +55,8 @@ declare function useInventory(context?: StorefrontContext): {
|
|
|
55
55
|
numberOfTrials?: number | undefined;
|
|
56
56
|
currentActivations?: number | undefined;
|
|
57
57
|
maxActivations?: number | undefined;
|
|
58
|
+
version?: string | undefined;
|
|
59
|
+
prerelease?: boolean | undefined;
|
|
58
60
|
downloads?: {
|
|
59
61
|
path: string | null;
|
|
60
62
|
name: string;
|
|
@@ -75,6 +77,29 @@ declare function useInventory(context?: StorefrontContext): {
|
|
|
75
77
|
activationMethod: ActivationMethod;
|
|
76
78
|
lastValidatedAt: Date | null;
|
|
77
79
|
}>>;
|
|
80
|
+
getProduct: (productId: string, version?: string) => Promise<{
|
|
81
|
+
id: string;
|
|
82
|
+
name: string;
|
|
83
|
+
tagline: string;
|
|
84
|
+
currentVersion: string | null;
|
|
85
|
+
downloadsNeedsUser: boolean;
|
|
86
|
+
downloadsNeedsOwnership: boolean;
|
|
87
|
+
website?: string | undefined;
|
|
88
|
+
iconUrl?: string | undefined;
|
|
89
|
+
numberOfLicenses?: number | undefined;
|
|
90
|
+
numberOfTrials?: number | undefined;
|
|
91
|
+
currentActivations?: number | undefined;
|
|
92
|
+
maxActivations?: number | undefined;
|
|
93
|
+
version?: string | undefined;
|
|
94
|
+
prerelease?: boolean | undefined;
|
|
95
|
+
downloads?: {
|
|
96
|
+
path: string | null;
|
|
97
|
+
name: string;
|
|
98
|
+
key: string;
|
|
99
|
+
platform: _moonbase_sh_storefront_api.Platform;
|
|
100
|
+
size: number;
|
|
101
|
+
}[] | undefined;
|
|
102
|
+
}>;
|
|
78
103
|
getProducts: (nextUrl?: string) => Promise<_moonbase_sh_storefront_api.Page<{
|
|
79
104
|
id: string;
|
|
80
105
|
name: string;
|
|
@@ -88,6 +113,8 @@ declare function useInventory(context?: StorefrontContext): {
|
|
|
88
113
|
numberOfTrials?: number | undefined;
|
|
89
114
|
currentActivations?: number | undefined;
|
|
90
115
|
maxActivations?: number | undefined;
|
|
116
|
+
version?: string | undefined;
|
|
117
|
+
prerelease?: boolean | undefined;
|
|
91
118
|
downloads?: {
|
|
92
119
|
path: string | null;
|
|
93
120
|
name: string;
|
|
@@ -112,6 +139,8 @@ declare function useInventory(context?: StorefrontContext): {
|
|
|
112
139
|
numberOfTrials?: number | undefined;
|
|
113
140
|
currentActivations?: number | undefined;
|
|
114
141
|
maxActivations?: number | undefined;
|
|
142
|
+
version?: string | undefined;
|
|
143
|
+
prerelease?: boolean | undefined;
|
|
115
144
|
downloads?: {
|
|
116
145
|
path: string | null;
|
|
117
146
|
name: string;
|
|
@@ -150,6 +179,8 @@ declare function useInventory(context?: StorefrontContext): {
|
|
|
150
179
|
numberOfTrials?: number | undefined;
|
|
151
180
|
currentActivations?: number | undefined;
|
|
152
181
|
maxActivations?: number | undefined;
|
|
182
|
+
version?: string | undefined;
|
|
183
|
+
prerelease?: boolean | undefined;
|
|
153
184
|
downloads?: {
|
|
154
185
|
path: string | null;
|
|
155
186
|
name: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -55,6 +55,8 @@ declare function useInventory(context?: StorefrontContext): {
|
|
|
55
55
|
numberOfTrials?: number | undefined;
|
|
56
56
|
currentActivations?: number | undefined;
|
|
57
57
|
maxActivations?: number | undefined;
|
|
58
|
+
version?: string | undefined;
|
|
59
|
+
prerelease?: boolean | undefined;
|
|
58
60
|
downloads?: {
|
|
59
61
|
path: string | null;
|
|
60
62
|
name: string;
|
|
@@ -75,6 +77,29 @@ declare function useInventory(context?: StorefrontContext): {
|
|
|
75
77
|
activationMethod: ActivationMethod;
|
|
76
78
|
lastValidatedAt: Date | null;
|
|
77
79
|
}>>;
|
|
80
|
+
getProduct: (productId: string, version?: string) => Promise<{
|
|
81
|
+
id: string;
|
|
82
|
+
name: string;
|
|
83
|
+
tagline: string;
|
|
84
|
+
currentVersion: string | null;
|
|
85
|
+
downloadsNeedsUser: boolean;
|
|
86
|
+
downloadsNeedsOwnership: boolean;
|
|
87
|
+
website?: string | undefined;
|
|
88
|
+
iconUrl?: string | undefined;
|
|
89
|
+
numberOfLicenses?: number | undefined;
|
|
90
|
+
numberOfTrials?: number | undefined;
|
|
91
|
+
currentActivations?: number | undefined;
|
|
92
|
+
maxActivations?: number | undefined;
|
|
93
|
+
version?: string | undefined;
|
|
94
|
+
prerelease?: boolean | undefined;
|
|
95
|
+
downloads?: {
|
|
96
|
+
path: string | null;
|
|
97
|
+
name: string;
|
|
98
|
+
key: string;
|
|
99
|
+
platform: _moonbase_sh_storefront_api.Platform;
|
|
100
|
+
size: number;
|
|
101
|
+
}[] | undefined;
|
|
102
|
+
}>;
|
|
78
103
|
getProducts: (nextUrl?: string) => Promise<_moonbase_sh_storefront_api.Page<{
|
|
79
104
|
id: string;
|
|
80
105
|
name: string;
|
|
@@ -88,6 +113,8 @@ declare function useInventory(context?: StorefrontContext): {
|
|
|
88
113
|
numberOfTrials?: number | undefined;
|
|
89
114
|
currentActivations?: number | undefined;
|
|
90
115
|
maxActivations?: number | undefined;
|
|
116
|
+
version?: string | undefined;
|
|
117
|
+
prerelease?: boolean | undefined;
|
|
91
118
|
downloads?: {
|
|
92
119
|
path: string | null;
|
|
93
120
|
name: string;
|
|
@@ -112,6 +139,8 @@ declare function useInventory(context?: StorefrontContext): {
|
|
|
112
139
|
numberOfTrials?: number | undefined;
|
|
113
140
|
currentActivations?: number | undefined;
|
|
114
141
|
maxActivations?: number | undefined;
|
|
142
|
+
version?: string | undefined;
|
|
143
|
+
prerelease?: boolean | undefined;
|
|
115
144
|
downloads?: {
|
|
116
145
|
path: string | null;
|
|
117
146
|
name: string;
|
|
@@ -150,6 +179,8 @@ declare function useInventory(context?: StorefrontContext): {
|
|
|
150
179
|
numberOfTrials?: number | undefined;
|
|
151
180
|
currentActivations?: number | undefined;
|
|
152
181
|
maxActivations?: number | undefined;
|
|
182
|
+
version?: string | undefined;
|
|
183
|
+
prerelease?: boolean | undefined;
|
|
153
184
|
downloads?: {
|
|
154
185
|
path: string | null;
|
|
155
186
|
name: string;
|
package/dist/index.js
CHANGED
|
@@ -85,6 +85,9 @@ var _StorefrontContextImpl = class _StorefrontContextImpl {
|
|
|
85
85
|
});
|
|
86
86
|
this.loadedStorefront = stateFactory(`${_StorefrontContextImpl.storefrontKey}_loaded`, false);
|
|
87
87
|
}
|
|
88
|
+
if (this.client.tokenStore.hasAccessToken) {
|
|
89
|
+
this.currentUser.value = this.client.tokenStore.user;
|
|
90
|
+
}
|
|
88
91
|
const _2 = this.updateStorefront();
|
|
89
92
|
const _3 = this.updateUser();
|
|
90
93
|
}
|
|
@@ -232,6 +235,9 @@ function useInventory(context) {
|
|
|
232
235
|
getLicenseActivations: async (licenseId, nextUrl) => {
|
|
233
236
|
return storefront.client.inventory.licenses.getActivations(licenseId, nextUrl);
|
|
234
237
|
},
|
|
238
|
+
getProduct: async (productId, version) => {
|
|
239
|
+
return storefront.client.inventory.products.get(productId, version);
|
|
240
|
+
},
|
|
235
241
|
getProducts: async (nextUrl) => {
|
|
236
242
|
return storefront.client.inventory.products.getOwned(nextUrl);
|
|
237
243
|
},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbase.sh/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.14",
|
|
5
5
|
"description": "Package to let you build vue.js storefronts with Moonbase.sh as payment and delivery provider",
|
|
6
6
|
"author": "Tobias Lønnerød Madsen <m@dsen.tv>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@vue/devtools-api": "^6.5.1",
|
|
20
20
|
"uuid": "^9.0.1",
|
|
21
|
-
"@moonbase.sh/storefront-api": "0.2.
|
|
21
|
+
"@moonbase.sh/storefront-api": "0.2.14"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/uuid": "^9.0.7",
|