@noormdev/sdk 1.0.0-alpha.5 → 1.0.0-alpha.6
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.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5,7 +5,6 @@ import { makeNestedConfig, attempt, retry, clone, merge, attemptSync } from '@lo
|
|
|
5
5
|
import { homedir, userInfo } from 'os';
|
|
6
6
|
import { readFile, stat, readdir, rm, access, mkdir, writeFile } from 'fs/promises';
|
|
7
7
|
import { createHash, createDecipheriv, randomBytes, createCipheriv, hkdfSync } from 'crypto';
|
|
8
|
-
import { createRequire } from 'module';
|
|
9
8
|
import { z } from 'zod';
|
|
10
9
|
import { parse, stringify } from 'yaml';
|
|
11
10
|
import { execSync } from 'child_process';
|
|
@@ -120,10 +119,11 @@ function needsMigration(state, currentVersion) {
|
|
|
120
119
|
if (!("knownUsers" in obj)) return true;
|
|
121
120
|
return false;
|
|
122
121
|
}
|
|
123
|
-
|
|
122
|
+
|
|
123
|
+
// src/core/state/version.ts
|
|
124
|
+
var VERSION = typeof __CLI_VERSION__ !== "undefined" ? __CLI_VERSION__ : "0.0.0-dev";
|
|
124
125
|
function getPackageVersion() {
|
|
125
|
-
|
|
126
|
-
return pkg.version;
|
|
126
|
+
return VERSION;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
// src/core/state/manager.ts
|