@superblocksteam/sdk 2.0.64-next.1 → 2.0.64-next.3
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/.prettierrc +1 -1
- package/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-publish-package.log +0 -0
- package/dist/cli-replacement/automatic-upgrades.d.ts.map +1 -1
- package/dist/cli-replacement/automatic-upgrades.js +4 -2
- package/dist/cli-replacement/automatic-upgrades.js.map +1 -1
- package/dist/cli-replacement/dev.d.mts.map +1 -1
- package/dist/cli-replacement/dev.mjs +1 -0
- package/dist/cli-replacement/dev.mjs.map +1 -1
- package/dist/dbfs/local.d.ts.map +1 -1
- package/dist/dbfs/local.js +1 -1
- package/dist/dbfs/local.js.map +1 -1
- package/dist/flag.d.ts +1 -0
- package/dist/flag.d.ts.map +1 -1
- package/dist/flag.js +3 -0
- package/dist/flag.js.map +1 -1
- package/dist/telemetry/index.d.ts.map +1 -1
- package/dist/telemetry/index.js +12 -4
- package/dist/telemetry/index.js.map +1 -1
- package/dist/types/common.d.ts +3 -0
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js.map +1 -1
- package/eslint.config.js +3 -2
- package/package.json +17 -18
- package/src/cli-replacement/automatic-upgrades.ts +4 -2
- package/src/cli-replacement/dev.mts +1 -0
- package/src/dbfs/local.ts +3 -1
- package/src/flag.ts +4 -0
- package/src/telemetry/index.ts +26 -4
- package/src/types/common.ts +3 -0
- package/test/clients.test.mts +2 -0
- package/test/version-control.test.mts +4 -4
- package/tsconfig.json +2 -1
- package/tsconfig.tsbuildinfo +1 -1
package/test/clients.test.mts
CHANGED
|
@@ -19,6 +19,7 @@ const currentGitBranch = await getCurrentGitBranch();
|
|
|
19
19
|
describe("get current branch info", () => {
|
|
20
20
|
let createdSuperblocksFolder = false;
|
|
21
21
|
|
|
22
|
+
// eslint-disable-next-line mocha/no-top-level-hooks
|
|
22
23
|
before(async function () {
|
|
23
24
|
// Make the .superblocks folder in the test directory, if it is missing. It should be git-ignored.
|
|
24
25
|
if (!fs.existsSync(superblocksTestFolder)) {
|
|
@@ -39,6 +40,7 @@ describe("get current branch info", () => {
|
|
|
39
40
|
);
|
|
40
41
|
});
|
|
41
42
|
|
|
43
|
+
// eslint-disable-next-line mocha/no-top-level-hooks
|
|
42
44
|
after(async function () {
|
|
43
45
|
// Delete the .superblocks folder in the test directory.
|
|
44
46
|
if (createdSuperblocksFolder && fs.existsSync(superblocksTestFolder)) {
|
|
@@ -45,17 +45,17 @@ const NO_EXTRACT_SOURCE_CODE: ApiRepresentation = {
|
|
|
45
45
|
|
|
46
46
|
describe("version-control", function () {
|
|
47
47
|
const testDir = USE_TEMP_TEST_DIR
|
|
48
|
-
?
|
|
49
|
-
|
|
50
|
-
: // eslint-disable-next-line mocha/no-setup-in-describe
|
|
51
|
-
new URL("../../test-output", import.meta.url).pathname;
|
|
48
|
+
? fs.mkdtempSync(path.join(os.tmpdir(), "test-output"))
|
|
49
|
+
: new URL("../../test-output", import.meta.url).pathname;
|
|
52
50
|
|
|
51
|
+
// eslint-disable-next-line mocha/no-top-level-hooks
|
|
53
52
|
beforeEach(async function () {
|
|
54
53
|
// Clean up the temporary directory before each test, then create it
|
|
55
54
|
await fs.rm(testDir, { recursive: true, force: true });
|
|
56
55
|
await fs.ensureDir(testDir);
|
|
57
56
|
});
|
|
58
57
|
|
|
58
|
+
// eslint-disable-next-line mocha/no-top-level-hooks
|
|
59
59
|
afterEach(async function () {
|
|
60
60
|
// Clean up the temporary directory after each test
|
|
61
61
|
await fs.rm(testDir, { recursive: true, force: true });
|
package/tsconfig.json
CHANGED