@superblocksteam/sdk 2.0.0-next.35 → 2.0.0-next.36
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/test/version-control.test.mts +14 -14
- package/tsconfig.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superblocksteam/sdk",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.36",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Superblocks JS SDK",
|
|
6
6
|
"homepage": "https://www.superblocks.com",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"@rollup/wasm-node": "^4.35.0",
|
|
28
28
|
"@superblocksteam/bucketeer-sdk": "0.4.1",
|
|
29
29
|
"@superblocksteam/shared": "0.9132.0",
|
|
30
|
-
"@superblocksteam/util": "2.0.0-next.
|
|
31
|
-
"@superblocksteam/vite-plugin-file-sync": "2.0.0-next.
|
|
30
|
+
"@superblocksteam/util": "2.0.0-next.36",
|
|
31
|
+
"@superblocksteam/vite-plugin-file-sync": "2.0.0-next.36",
|
|
32
32
|
"@vitejs/plugin-react": "^4.3.4",
|
|
33
33
|
"axios": "^1.4.0",
|
|
34
34
|
"chokidar": "^4.0.3",
|
|
@@ -100,7 +100,7 @@ describe("version-control", function () {
|
|
|
100
100
|
await expectNoFileExists(apiDir, "test_api.yaml");
|
|
101
101
|
|
|
102
102
|
// and can be read back in
|
|
103
|
-
(await readApiFile(apiDir, "
|
|
103
|
+
(await readApiFile(apiDir, "test_api")).to.deep.equal({
|
|
104
104
|
api: api.apiPb,
|
|
105
105
|
stepPathMap: {},
|
|
106
106
|
});
|
|
@@ -159,7 +159,7 @@ describe("version-control", function () {
|
|
|
159
159
|
await expectNoFileExists(apiDir, "test_api.yaml");
|
|
160
160
|
|
|
161
161
|
// and can be read back in
|
|
162
|
-
(await readApiFile(apiDir,
|
|
162
|
+
(await readApiFile(apiDir, "test_api")).to.deep.equal({
|
|
163
163
|
api: api.apiPb,
|
|
164
164
|
stepPathMap: {
|
|
165
165
|
"Large Block": "./large_block.js",
|
|
@@ -238,7 +238,7 @@ describe("version-control", function () {
|
|
|
238
238
|
await expectNoFileExists(apiDir, "test_api.yaml");
|
|
239
239
|
|
|
240
240
|
// and can be read back in
|
|
241
|
-
(await readApiFile(apiDir,
|
|
241
|
+
(await readApiFile(apiDir, "test_api")).to.deep.equal({
|
|
242
242
|
api: api.apiPb,
|
|
243
243
|
stepPathMap: {
|
|
244
244
|
"Large Block": "./large_block.js",
|
|
@@ -301,7 +301,7 @@ describe("version-control", function () {
|
|
|
301
301
|
await expectNoFileExists(apisDir, "test_api/test_api.yaml");
|
|
302
302
|
|
|
303
303
|
// and can be read back in
|
|
304
|
-
(await readApiFile(apisDir,
|
|
304
|
+
(await readApiFile(apisDir, "test_api")).to.deep.equal({
|
|
305
305
|
api: api.apiPb,
|
|
306
306
|
stepPathMap: {
|
|
307
307
|
"Small Block": "./small_block.js",
|
|
@@ -365,7 +365,7 @@ describe("version-control", function () {
|
|
|
365
365
|
await expectNoFileExists(apisDir, "test_api/large_block.js");
|
|
366
366
|
|
|
367
367
|
// and can be read back in
|
|
368
|
-
(await readApiFile(apisDir,
|
|
368
|
+
(await readApiFile(apisDir, "test_api")).to.deep.equal({
|
|
369
369
|
api: api.apiPb,
|
|
370
370
|
stepPathMap: {},
|
|
371
371
|
});
|
|
@@ -576,7 +576,7 @@ describe("version-control", function () {
|
|
|
576
576
|
).and.includes(SMALL_JS_CONTENT);
|
|
577
577
|
|
|
578
578
|
// and can be read back in
|
|
579
|
-
(await readApiFile(apiDir, "
|
|
579
|
+
(await readApiFile(apiDir, "try_catch_api")).to.deep.equal({
|
|
580
580
|
api: api.apiPb,
|
|
581
581
|
stepPathMap: {
|
|
582
582
|
"Else If Step": "./else_if_step.js",
|
|
@@ -629,7 +629,7 @@ describe("version-control", function () {
|
|
|
629
629
|
await expectNoFileExists(apiDir, "try_catch_api");
|
|
630
630
|
|
|
631
631
|
// and can be read back in
|
|
632
|
-
(await readApiFile(apiDir, "
|
|
632
|
+
(await readApiFile(apiDir, "try_catch_api")).to.deep.equal({
|
|
633
633
|
api: api.apiPb,
|
|
634
634
|
stepPathMap: {},
|
|
635
635
|
});
|
|
@@ -727,7 +727,7 @@ describe("version-control", function () {
|
|
|
727
727
|
).and.includes(LARGE_JS_CONTENT);
|
|
728
728
|
// and can be read back in
|
|
729
729
|
(
|
|
730
|
-
await readApiFile(`${testDir}/apps/test_app/apis`, "
|
|
730
|
+
await readApiFile(`${testDir}/apps/test_app/apis`, "test_api")
|
|
731
731
|
).to.deep.equal({
|
|
732
732
|
api: testApi.apiPb,
|
|
733
733
|
stepPathMap: {
|
|
@@ -1000,7 +1000,7 @@ describe("version-control", function () {
|
|
|
1000
1000
|
(
|
|
1001
1001
|
await readApiFile(
|
|
1002
1002
|
`${testDir}/apps/test_app/pages/test_page/apis`,
|
|
1003
|
-
"
|
|
1003
|
+
"test_api",
|
|
1004
1004
|
)
|
|
1005
1005
|
).to.deep.equal({
|
|
1006
1006
|
api: testApi.apiPb,
|
|
@@ -1107,7 +1107,7 @@ describe("version-control", function () {
|
|
|
1107
1107
|
(
|
|
1108
1108
|
await readApiFile(
|
|
1109
1109
|
`${testDir}/apps/test_app/pages/test_page/apis`,
|
|
1110
|
-
"
|
|
1110
|
+
"test_api",
|
|
1111
1111
|
)
|
|
1112
1112
|
).to.deep.equal({ api: testApi.apiPb, stepPathMap: {} });
|
|
1113
1113
|
// and a push operation would consider it valid
|
|
@@ -1169,7 +1169,7 @@ describe("version-control", function () {
|
|
|
1169
1169
|
(
|
|
1170
1170
|
await readApiFile(
|
|
1171
1171
|
`${testDir}/apps/test_app/pages/test_page/apis`,
|
|
1172
|
-
"
|
|
1172
|
+
"test_api",
|
|
1173
1173
|
)
|
|
1174
1174
|
).to.deep.equal({
|
|
1175
1175
|
api: testApi.apiPb,
|
|
@@ -1237,7 +1237,7 @@ describe("version-control", function () {
|
|
|
1237
1237
|
(
|
|
1238
1238
|
await readApiFile(
|
|
1239
1239
|
`${testDir}/apps/test_app/pages/test_page/apis`,
|
|
1240
|
-
"
|
|
1240
|
+
"test_api",
|
|
1241
1241
|
)
|
|
1242
1242
|
).to.deep.equal({
|
|
1243
1243
|
api: testApi.apiPb,
|
|
@@ -1309,7 +1309,7 @@ describe("version-control", function () {
|
|
|
1309
1309
|
(
|
|
1310
1310
|
await readApiFile(
|
|
1311
1311
|
`${testDir}/apps/test_app/pages/test_page/apis`,
|
|
1312
|
-
"
|
|
1312
|
+
"test_api",
|
|
1313
1313
|
)
|
|
1314
1314
|
).to.deep.equal({
|
|
1315
1315
|
api: testApi.apiPb,
|
|
@@ -1362,7 +1362,7 @@ describe("version-control", function () {
|
|
|
1362
1362
|
(
|
|
1363
1363
|
await readApiFile(
|
|
1364
1364
|
`${testDir}/apps/test_app/pages/test_page/apis`,
|
|
1365
|
-
"
|
|
1365
|
+
"test_api",
|
|
1366
1366
|
)
|
|
1367
1367
|
).to.deep.equal({
|
|
1368
1368
|
api: testApi.apiPb,
|