We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 322ff9e commit 4163f6fCopy full SHA for 4163f6f
src/store_factory.ts
@@ -68,6 +68,19 @@ export const getStore: {
68
return new Store({ client, name: input })
69
}
70
71
+ if (typeof input?.name === 'string' && typeof input?.siteID === 'string' && typeof input?.token === 'string') {
72
+ const { name, siteID, token } = input
73
+ const clientOptions = getClientOptions(input, { siteID, token })
74
+
75
+ if (!name || !siteID || !token) {
76
+ throw new MissingBlobsEnvironmentError(['name', 'siteID', 'token'])
77
+ }
78
79
+ const client = new Client(clientOptions)
80
81
+ return new Store({ client, name })
82
83
84
if (typeof input?.name === 'string') {
85
const { name } = input
86
const clientOptions = getClientOptions(input)
0 commit comments