@geek-fun/serverlessinsight 0.5.6 → 0.5.7
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/README.md +12 -10
- package/dist/package.json +2 -1
- package/dist/src/commands/deploy.js +74 -2
- package/dist/src/commands/index.js +17 -16
- package/dist/src/commands/show.js +302 -0
- package/dist/src/common/aliyunClient/apigwOperations.js +6 -22
- package/dist/src/common/aliyunClient/index.js +3 -2
- package/dist/src/common/aliyunClient/ossOperations.js +126 -1
- package/dist/src/common/constants.js +2 -3
- package/dist/src/common/context.js +4 -1
- package/dist/src/common/domainUtils.js +121 -0
- package/dist/src/common/iacHelper.js +1 -8
- package/dist/src/common/stateBackend/cosStateBackend.js +16 -188
- package/dist/src/common/stateBackend/index.js +2 -0
- package/dist/src/common/stateBackend/lockUtils.js +55 -0
- package/dist/src/common/stateBackend/ossStateBackend.js +27 -199
- package/dist/src/common/stateBackend/remoteStateBackend.js +150 -0
- package/dist/src/common/tencentClient/cosOperations.js +366 -216
- package/dist/src/common/tencentClient/dnspodOperations.js +105 -0
- package/dist/src/common/tencentClient/index.js +5 -1
- package/dist/src/lang/en.js +30 -0
- package/dist/src/lang/zh-CN.js +28 -0
- package/dist/src/stack/aliyunStack/apigwResource.js +35 -0
- package/dist/src/stack/aliyunStack/ossResource.js +63 -19
- package/dist/src/stack/deploy.js +6 -33
- package/dist/src/stack/scfStack/cosResource.js +58 -8
- package/dist/src/types/domains/state.js +13 -0
- package/dist/src/validator/templateRefSchema.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
- package/dist/src/commands/template.js +0 -28
|
@@ -5,46 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.createOssStateBackend = void 0;
|
|
7
7
|
const ali_oss_1 = __importDefault(require("ali-oss"));
|
|
8
|
-
const
|
|
9
|
-
const node_os_1 = __importDefault(require("node:os"));
|
|
10
|
-
const node_child_process_1 = require("node:child_process");
|
|
11
|
-
const types_1 = require("../../types");
|
|
8
|
+
const remoteStateBackend_1 = require("./remoteStateBackend");
|
|
12
9
|
const constants_1 = require("../constants");
|
|
13
|
-
const
|
|
14
|
-
const logger_1 = require("../logger");
|
|
15
|
-
const lang_1 = require("../../lang");
|
|
16
|
-
const LOCK_KEY_SUFFIX = '.si-lock';
|
|
17
|
-
const getUserEmail = () => {
|
|
18
|
-
try {
|
|
19
|
-
const email = (0, node_child_process_1.execSync)('git config user.email', {
|
|
20
|
-
encoding: 'utf-8',
|
|
21
|
-
stdio: ['pipe', 'pipe', 'ignore'],
|
|
22
|
-
}).trim();
|
|
23
|
-
if (email)
|
|
24
|
-
return email;
|
|
25
|
-
}
|
|
26
|
-
catch {
|
|
27
|
-
// noop
|
|
28
|
-
}
|
|
29
|
-
const username = node_os_1.default.userInfo().username || 'unknown';
|
|
30
|
-
const hostname = node_os_1.default.hostname() || 'unknown';
|
|
31
|
-
return `${username}@${hostname}`;
|
|
32
|
-
};
|
|
33
|
-
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
34
|
-
const isLockStale = (lock) => {
|
|
35
|
-
const acquiredAt = new Date(lock.acquiredAt).getTime();
|
|
36
|
-
return Date.now() - acquiredAt > constants_1.STALE_LOCK_THRESHOLD;
|
|
37
|
-
};
|
|
38
|
-
const isProcessAlive = (pid) => {
|
|
39
|
-
try {
|
|
40
|
-
process.kill(pid, 0);
|
|
41
|
-
return true;
|
|
42
|
-
}
|
|
43
|
-
catch {
|
|
44
|
-
return false;
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
const createOssStateBackend = (config) => {
|
|
10
|
+
const createOssStorageAdapter = (config) => {
|
|
48
11
|
const ossClient = new ali_oss_1.default({
|
|
49
12
|
accessKeyId: config.accessKeyId,
|
|
50
13
|
accessKeySecret: config.accessKeySecret,
|
|
@@ -54,175 +17,40 @@ const createOssStateBackend = (config) => {
|
|
|
54
17
|
timeout: constants_1.OSS_STATE_REQUEST_TIMEOUT_MS,
|
|
55
18
|
connectTimeout: constants_1.OSS_STATE_CONNECT_TIMEOUT_MS,
|
|
56
19
|
});
|
|
57
|
-
const lockKey = `${config.key}${LOCK_KEY_SUFFIX}`;
|
|
58
|
-
const readObject = async (key) => {
|
|
59
|
-
try {
|
|
60
|
-
const result = await ossClient.get(key);
|
|
61
|
-
const content = result.content.toString('utf-8');
|
|
62
|
-
return JSON.parse(content);
|
|
63
|
-
}
|
|
64
|
-
catch (err) {
|
|
65
|
-
if (err && typeof err === 'object' && 'code' in err) {
|
|
66
|
-
const code = err.code;
|
|
67
|
-
if (code === 'NoSuchKey' || code === 'NoSuchBucket') {
|
|
68
|
-
return null;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
throw err;
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
const writeObject = async (key, data) => {
|
|
75
|
-
const content = JSON.stringify(data, null, 2);
|
|
76
|
-
await ossClient.put(key, Buffer.from(content, 'utf-8'));
|
|
77
|
-
};
|
|
78
|
-
const deleteObject = async (key) => {
|
|
79
|
-
try {
|
|
80
|
-
await ossClient.delete(key);
|
|
81
|
-
}
|
|
82
|
-
catch {
|
|
83
|
-
// noop
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
const readLockObject = async () => {
|
|
87
|
-
return readObject(lockKey);
|
|
88
|
-
};
|
|
89
|
-
const acquireLockObject = async (operation, options = {}) => {
|
|
90
|
-
const timeout = options.timeout ?? constants_1.DEFAULT_LOCK_TIMEOUT;
|
|
91
|
-
const retryDelay = options.retryDelay ?? constants_1.DEFAULT_LOCK_RETRY_DELAY;
|
|
92
|
-
const maxRetries = options.maxRetries ?? Math.ceil(timeout / retryDelay);
|
|
93
|
-
const metadata = {
|
|
94
|
-
id: node_crypto_1.default.randomBytes(16).toString('hex'),
|
|
95
|
-
user: getUserEmail(),
|
|
96
|
-
processId: process.pid,
|
|
97
|
-
hostname: node_os_1.default.hostname(),
|
|
98
|
-
operation,
|
|
99
|
-
acquiredAt: new Date().toISOString(),
|
|
100
|
-
path: `oss://${config.bucket}/${config.key}`,
|
|
101
|
-
};
|
|
102
|
-
const startTime = Date.now();
|
|
103
|
-
let attempt = 0;
|
|
104
|
-
while (attempt <= maxRetries) {
|
|
105
|
-
const existingLock = await readLockObject();
|
|
106
|
-
if (!existingLock) {
|
|
107
|
-
await writeObject(lockKey, metadata);
|
|
108
|
-
const verify = await readLockObject();
|
|
109
|
-
if (verify && verify.id === metadata.id) {
|
|
110
|
-
return metadata;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
if (existingLock.hostname === node_os_1.default.hostname() && !isProcessAlive(existingLock.processId)) {
|
|
115
|
-
logger_1.logger.info(lang_1.lang.__('LOCK_AUTO_RELEASED_DEAD_PROCESS', {
|
|
116
|
-
processId: String(existingLock.processId),
|
|
117
|
-
hostname: existingLock.hostname,
|
|
118
|
-
user: existingLock.user,
|
|
119
|
-
acquiredAt: existingLock.acquiredAt,
|
|
120
|
-
}));
|
|
121
|
-
await deleteObject(lockKey);
|
|
122
|
-
attempt++;
|
|
123
|
-
continue;
|
|
124
|
-
}
|
|
125
|
-
if (isLockStale(existingLock)) {
|
|
126
|
-
throw new lockManager_1.LockError(`State is currently locked (stale lock detected).\n${(0, lockManager_1.formatLockInfo)(existingLock)}\nThis lock appears to be stale. If you are certain no other operation is running, use:\n si force-unlock ${existingLock.id}`, existingLock);
|
|
127
|
-
}
|
|
128
|
-
if (Date.now() - startTime >= timeout) {
|
|
129
|
-
throw new lockManager_1.LockError(`Failed to acquire lock after ${timeout / 1000} seconds.\n${(0, lockManager_1.formatLockInfo)(existingLock)}\nIf you are certain no other operation is running, use:\n si force-unlock ${existingLock.id}`, existingLock);
|
|
130
|
-
}
|
|
131
|
-
const acquiredAt = new Date(existingLock.acquiredAt);
|
|
132
|
-
const minutesAgo = Math.floor((Date.now() - acquiredAt.getTime()) / 60000);
|
|
133
|
-
const timeAgo = minutesAgo < 1 ? lang_1.lang.__('LOCK_TIME_AGO_LESS_THAN_MINUTE') : `${minutesAgo}m`;
|
|
134
|
-
logger_1.logger.info(lang_1.lang.__('LOCK_WAITING', {
|
|
135
|
-
user: existingLock.user,
|
|
136
|
-
timeAgo,
|
|
137
|
-
attempt: String(attempt + 1),
|
|
138
|
-
}));
|
|
139
|
-
}
|
|
140
|
-
const delay = Math.min(retryDelay * Math.pow(2, attempt), 30000);
|
|
141
|
-
await sleep(delay);
|
|
142
|
-
attempt++;
|
|
143
|
-
}
|
|
144
|
-
const existingLock = await readLockObject();
|
|
145
|
-
throw new lockManager_1.LockError(`Failed to acquire lock.\n${existingLock ? (0, lockManager_1.formatLockInfo)(existingLock) : ''}\nIf you are certain no other operation is running, use:\n si force-unlock ${existingLock?.id || 'unknown'}`, existingLock || undefined);
|
|
146
|
-
};
|
|
147
20
|
return {
|
|
148
|
-
|
|
149
|
-
const state = await readObject(config.key);
|
|
150
|
-
if (state) {
|
|
151
|
-
const stageResources = state.stages?.[stage]?.resources ?? {};
|
|
152
|
-
return { ...state, resources: stageResources };
|
|
153
|
-
}
|
|
154
|
-
return { version: types_1.CURRENT_STATE_VERSION, provider, app, service, stages: {}, resources: {} };
|
|
155
|
-
},
|
|
156
|
-
saveState: async (state, app, service, stage) => {
|
|
157
|
-
let existing = {
|
|
158
|
-
version: types_1.CURRENT_STATE_VERSION,
|
|
159
|
-
provider: state.provider,
|
|
160
|
-
app,
|
|
161
|
-
service,
|
|
162
|
-
stages: {},
|
|
163
|
-
resources: {},
|
|
164
|
-
};
|
|
21
|
+
read: async (key) => {
|
|
165
22
|
try {
|
|
166
|
-
const
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}
|
|
170
|
-
catch {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
provider: state.provider,
|
|
179
|
-
stages: {
|
|
180
|
-
...existing.stages,
|
|
181
|
-
[stage]: { resources: state.resources },
|
|
182
|
-
},
|
|
183
|
-
resources: state.resources,
|
|
184
|
-
};
|
|
185
|
-
await writeObject(config.key, stateToSave);
|
|
186
|
-
},
|
|
187
|
-
acquireLock: async (operation, options) => {
|
|
188
|
-
const meta = await acquireLockObject(operation, options);
|
|
189
|
-
return meta.id;
|
|
190
|
-
},
|
|
191
|
-
releaseLock: async (lockId) => {
|
|
192
|
-
const existing = await readLockObject();
|
|
193
|
-
if (existing && existing.id === lockId) {
|
|
194
|
-
await deleteObject(lockKey);
|
|
195
|
-
}
|
|
196
|
-
},
|
|
197
|
-
forceUnlock: async (lockId) => {
|
|
198
|
-
const existing = await readLockObject();
|
|
199
|
-
if (!existing)
|
|
200
|
-
return false;
|
|
201
|
-
if (existing.id !== lockId) {
|
|
202
|
-
throw new Error(`Lock ID mismatch. Current lock ID is ${existing.id}, but you provided ${lockId}`);
|
|
23
|
+
const result = await ossClient.get(key);
|
|
24
|
+
const content = result.content.toString('utf-8');
|
|
25
|
+
return JSON.parse(content);
|
|
26
|
+
}
|
|
27
|
+
catch (err) {
|
|
28
|
+
if (err && typeof err === 'object' && 'code' in err) {
|
|
29
|
+
const code = err.code;
|
|
30
|
+
if (code === 'NoSuchKey' || code === 'NoSuchBucket') {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
throw err;
|
|
203
35
|
}
|
|
204
|
-
await deleteObject(lockKey);
|
|
205
|
-
return true;
|
|
206
36
|
},
|
|
207
|
-
|
|
208
|
-
|
|
37
|
+
write: async (key, data) => {
|
|
38
|
+
const content = JSON.stringify(data, null, 2);
|
|
39
|
+
await ossClient.put(key, Buffer.from(content, 'utf-8'));
|
|
209
40
|
},
|
|
210
|
-
|
|
211
|
-
let lockId = null;
|
|
41
|
+
delete: async (key) => {
|
|
212
42
|
try {
|
|
213
|
-
|
|
214
|
-
lockId = meta.id;
|
|
215
|
-
return await fn();
|
|
43
|
+
await ossClient.delete(key);
|
|
216
44
|
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
const existing = await readLockObject();
|
|
220
|
-
if (existing && existing.id === lockId) {
|
|
221
|
-
await deleteObject(lockKey);
|
|
222
|
-
}
|
|
223
|
-
}
|
|
45
|
+
catch {
|
|
46
|
+
// noop
|
|
224
47
|
}
|
|
225
48
|
},
|
|
49
|
+
lockPath: `oss://${config.bucket}/${config.key}`,
|
|
226
50
|
};
|
|
227
51
|
};
|
|
52
|
+
const createOssStateBackend = (config) => {
|
|
53
|
+
const adapter = createOssStorageAdapter(config);
|
|
54
|
+
return (0, remoteStateBackend_1.createRemoteStateBackend)(adapter, { key: config.key });
|
|
55
|
+
};
|
|
228
56
|
exports.createOssStateBackend = createOssStateBackend;
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.createRemoteStateBackend = void 0;
|
|
7
|
+
const node_os_1 = __importDefault(require("node:os"));
|
|
8
|
+
const types_1 = require("../../types");
|
|
9
|
+
const constants_1 = require("../constants");
|
|
10
|
+
const lockManager_1 = require("../lockManager");
|
|
11
|
+
const logger_1 = require("../logger");
|
|
12
|
+
const lang_1 = require("../../lang");
|
|
13
|
+
const lockUtils_1 = require("./lockUtils");
|
|
14
|
+
const createRemoteStateBackend = (adapter, config) => {
|
|
15
|
+
const lockKey = `${config.key}${lockUtils_1.LOCK_KEY_SUFFIX}`;
|
|
16
|
+
const readLockObject = async () => {
|
|
17
|
+
return adapter.read(lockKey);
|
|
18
|
+
};
|
|
19
|
+
const acquireLockObject = async (operation, options = {}) => {
|
|
20
|
+
const timeout = options.timeout ?? constants_1.DEFAULT_LOCK_TIMEOUT;
|
|
21
|
+
const retryDelay = options.retryDelay ?? constants_1.DEFAULT_LOCK_RETRY_DELAY;
|
|
22
|
+
const maxRetries = options.maxRetries ?? Math.ceil(timeout / retryDelay);
|
|
23
|
+
const metadata = (0, lockUtils_1.createLockMetadata)(operation, adapter.lockPath);
|
|
24
|
+
const startTime = Date.now();
|
|
25
|
+
let attempt = 0;
|
|
26
|
+
while (attempt <= maxRetries) {
|
|
27
|
+
const existingLock = await readLockObject();
|
|
28
|
+
if (!existingLock) {
|
|
29
|
+
await adapter.write(lockKey, metadata);
|
|
30
|
+
const verify = await readLockObject();
|
|
31
|
+
if (verify && verify.id === metadata.id) {
|
|
32
|
+
return metadata;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
if (existingLock.hostname === node_os_1.default.hostname() && !(0, lockUtils_1.isProcessAlive)(existingLock.processId)) {
|
|
37
|
+
logger_1.logger.info(lang_1.lang.__('LOCK_AUTO_RELEASED_DEAD_PROCESS', {
|
|
38
|
+
processId: String(existingLock.processId),
|
|
39
|
+
hostname: existingLock.hostname,
|
|
40
|
+
user: existingLock.user,
|
|
41
|
+
acquiredAt: existingLock.acquiredAt,
|
|
42
|
+
}));
|
|
43
|
+
await adapter.delete(lockKey);
|
|
44
|
+
attempt++;
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
if ((0, lockUtils_1.isLockStale)(existingLock)) {
|
|
48
|
+
throw new lockManager_1.LockError(`State is currently locked (stale lock detected).\n${(0, lockManager_1.formatLockInfo)(existingLock)}\nThis lock appears to be stale. If you are certain no other operation is running, use:\n si force-unlock ${existingLock.id}`, existingLock);
|
|
49
|
+
}
|
|
50
|
+
if (Date.now() - startTime >= timeout) {
|
|
51
|
+
throw new lockManager_1.LockError(`Failed to acquire lock after ${timeout / 1000} seconds.\n${(0, lockManager_1.formatLockInfo)(existingLock)}\nIf you are certain no other operation is running, use:\n si force-unlock ${existingLock.id}`, existingLock);
|
|
52
|
+
}
|
|
53
|
+
const acquiredAt = new Date(existingLock.acquiredAt);
|
|
54
|
+
const minutesAgo = Math.floor((Date.now() - acquiredAt.getTime()) / 60000);
|
|
55
|
+
const timeAgo = minutesAgo < 1 ? lang_1.lang.__('LOCK_TIME_AGO_LESS_THAN_MINUTE') : `${minutesAgo}m`;
|
|
56
|
+
logger_1.logger.info(lang_1.lang.__('LOCK_WAITING', {
|
|
57
|
+
user: existingLock.user,
|
|
58
|
+
timeAgo,
|
|
59
|
+
attempt: String(attempt + 1),
|
|
60
|
+
}));
|
|
61
|
+
}
|
|
62
|
+
const delay = Math.min(retryDelay * Math.pow(2, attempt), 30000);
|
|
63
|
+
await (0, lockUtils_1.sleep)(delay);
|
|
64
|
+
attempt++;
|
|
65
|
+
}
|
|
66
|
+
const existingLock = await readLockObject();
|
|
67
|
+
throw new lockManager_1.LockError(`Failed to acquire lock.\n${existingLock ? (0, lockManager_1.formatLockInfo)(existingLock) : ''}\nIf you are certain no other operation is running, use:\n si force-unlock ${existingLock?.id || 'unknown'}`, existingLock || undefined);
|
|
68
|
+
};
|
|
69
|
+
return {
|
|
70
|
+
loadState: async (provider, app, service, stage) => {
|
|
71
|
+
const state = await adapter.read(config.key);
|
|
72
|
+
if (state) {
|
|
73
|
+
const stageResources = state.stages?.[stage]?.resources ?? {};
|
|
74
|
+
return { ...state, resources: stageResources };
|
|
75
|
+
}
|
|
76
|
+
return { version: types_1.CURRENT_STATE_VERSION, provider, app, service, stages: {}, resources: {} };
|
|
77
|
+
},
|
|
78
|
+
saveState: async (state, app, service, stage) => {
|
|
79
|
+
let existing = {
|
|
80
|
+
version: types_1.CURRENT_STATE_VERSION,
|
|
81
|
+
provider: state.provider,
|
|
82
|
+
app,
|
|
83
|
+
service,
|
|
84
|
+
stages: {},
|
|
85
|
+
resources: {},
|
|
86
|
+
};
|
|
87
|
+
try {
|
|
88
|
+
const raw = await adapter.read(config.key);
|
|
89
|
+
if (raw)
|
|
90
|
+
existing = raw;
|
|
91
|
+
}
|
|
92
|
+
catch {
|
|
93
|
+
// noop
|
|
94
|
+
}
|
|
95
|
+
const stateToSave = {
|
|
96
|
+
...existing,
|
|
97
|
+
version: types_1.CURRENT_STATE_VERSION,
|
|
98
|
+
app,
|
|
99
|
+
service,
|
|
100
|
+
provider: state.provider,
|
|
101
|
+
stages: {
|
|
102
|
+
...existing.stages,
|
|
103
|
+
[stage]: { resources: state.resources },
|
|
104
|
+
},
|
|
105
|
+
resources: state.resources,
|
|
106
|
+
};
|
|
107
|
+
await adapter.write(config.key, stateToSave);
|
|
108
|
+
},
|
|
109
|
+
acquireLock: async (operation, options) => {
|
|
110
|
+
const meta = await acquireLockObject(operation, options);
|
|
111
|
+
return meta.id;
|
|
112
|
+
},
|
|
113
|
+
releaseLock: async (lockId) => {
|
|
114
|
+
const existing = await readLockObject();
|
|
115
|
+
if (existing && existing.id === lockId) {
|
|
116
|
+
await adapter.delete(lockKey);
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
forceUnlock: async (lockId) => {
|
|
120
|
+
const existing = await readLockObject();
|
|
121
|
+
if (!existing)
|
|
122
|
+
return false;
|
|
123
|
+
if (existing.id !== lockId) {
|
|
124
|
+
throw new Error(`Lock ID mismatch. Current lock ID is ${existing.id}, but you provided ${lockId}`);
|
|
125
|
+
}
|
|
126
|
+
await adapter.delete(lockKey);
|
|
127
|
+
return true;
|
|
128
|
+
},
|
|
129
|
+
readLock: async () => {
|
|
130
|
+
return readLockObject();
|
|
131
|
+
},
|
|
132
|
+
withLock: async (operation, fn, options) => {
|
|
133
|
+
let lockId = null;
|
|
134
|
+
try {
|
|
135
|
+
const meta = await acquireLockObject(operation, options);
|
|
136
|
+
lockId = meta.id;
|
|
137
|
+
return await fn();
|
|
138
|
+
}
|
|
139
|
+
finally {
|
|
140
|
+
if (lockId) {
|
|
141
|
+
const existing = await readLockObject();
|
|
142
|
+
if (existing && existing.id === lockId) {
|
|
143
|
+
await adapter.delete(lockKey);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
exports.createRemoteStateBackend = createRemoteStateBackend;
|