@nexushub/client 0.4.8 → 0.4.9

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.
@@ -162,11 +162,11 @@ BinaryCompiler.ALGORITHM = "aes-256-cbc";
162
162
 
163
163
  // src/content/local-cache-server.ts
164
164
  var LocalCache = class {
165
- constructor(customPath) {
165
+ constructor(customPath, apiKey) {
166
166
  this.apiKey = "";
167
167
  this.baseDir = customPath || ".nexus/local";
168
168
  const config = getEnvConfig();
169
- this.apiKey = config.apiKey || "";
169
+ this.apiKey = apiKey || config.apiKey || "";
170
170
  }
171
171
  isLoaded() {
172
172
  return import_fs.default.existsSync(import_path.default.resolve(process.cwd(), this.baseDir));
@@ -3,7 +3,7 @@ import { I as ILocalCache } from '../cache-types-B39iNHfE.cjs';
3
3
  declare class LocalCache implements ILocalCache {
4
4
  private baseDir;
5
5
  private apiKey;
6
- constructor(customPath?: string);
6
+ constructor(customPath?: string, apiKey?: string);
7
7
  isLoaded(): boolean;
8
8
  /**
9
9
  * Helper to decrypt and decompile `.nx` files on-the-fly.
@@ -3,7 +3,7 @@ import { I as ILocalCache } from '../cache-types-B39iNHfE.js';
3
3
  declare class LocalCache implements ILocalCache {
4
4
  private baseDir;
5
5
  private apiKey;
6
- constructor(customPath?: string);
6
+ constructor(customPath?: string, apiKey?: string);
7
7
  isLoaded(): boolean;
8
8
  /**
9
9
  * Helper to decrypt and decompile `.nx` files on-the-fly.
@@ -128,11 +128,11 @@ BinaryCompiler.ALGORITHM = "aes-256-cbc";
128
128
 
129
129
  // src/content/local-cache-server.ts
130
130
  var LocalCache = class {
131
- constructor(customPath) {
131
+ constructor(customPath, apiKey) {
132
132
  this.apiKey = "";
133
133
  this.baseDir = customPath || ".nexus/local";
134
134
  const config = getEnvConfig();
135
- this.apiKey = config.apiKey || "";
135
+ this.apiKey = apiKey || config.apiKey || "";
136
136
  }
137
137
  isLoaded() {
138
138
  return fs.existsSync(path.resolve(process.cwd(), this.baseDir));
package/dist/index.cjs CHANGED
@@ -202,11 +202,11 @@ var init_local_cache_server = __esm({
202
202
  init_config();
203
203
  init_binary_compiler();
204
204
  LocalCache = class {
205
- constructor(customPath) {
205
+ constructor(customPath, apiKey) {
206
206
  this.apiKey = "";
207
207
  this.baseDir = customPath || ".nexus/local";
208
208
  const config = getEnvConfig();
209
- this.apiKey = config.apiKey || "";
209
+ this.apiKey = apiKey || config.apiKey || "";
210
210
  }
211
211
  isLoaded() {
212
212
  return import_fs.default.existsSync(import_path.default.resolve(process.cwd(), this.baseDir));
package/dist/index.js CHANGED
@@ -180,11 +180,11 @@ var init_local_cache_server = __esm({
180
180
  init_config();
181
181
  init_binary_compiler();
182
182
  LocalCache = class {
183
- constructor(customPath) {
183
+ constructor(customPath, apiKey) {
184
184
  this.apiKey = "";
185
185
  this.baseDir = customPath || ".nexus/local";
186
186
  const config = getEnvConfig();
187
- this.apiKey = config.apiKey || "";
187
+ this.apiKey = apiKey || config.apiKey || "";
188
188
  }
189
189
  isLoaded() {
190
190
  return fs.existsSync(path.resolve(process.cwd(), this.baseDir));
@@ -106,11 +106,11 @@ BinaryCompiler.ALGORITHM = "aes-256-cbc";
106
106
 
107
107
  // src/content/local-cache-server.ts
108
108
  var LocalCache = class {
109
- constructor(customPath) {
109
+ constructor(customPath, apiKey) {
110
110
  this.apiKey = "";
111
111
  this.baseDir = customPath || ".nexus/local";
112
112
  const config = _chunkVFVPDENWcjs.getEnvConfig.call(void 0, );
113
- this.apiKey = config.apiKey || "";
113
+ this.apiKey = apiKey || config.apiKey || "";
114
114
  }
115
115
  isLoaded() {
116
116
  return _fs2.default.existsSync(_path2.default.resolve(process.cwd(), this.baseDir));
@@ -106,11 +106,11 @@ BinaryCompiler.ALGORITHM = "aes-256-cbc";
106
106
 
107
107
  // src/content/local-cache-server.ts
108
108
  var LocalCache = class {
109
- constructor(customPath) {
109
+ constructor(customPath, apiKey) {
110
110
  this.apiKey = "";
111
111
  this.baseDir = customPath || ".nexus/local";
112
112
  const config = getEnvConfig();
113
- this.apiKey = config.apiKey || "";
113
+ this.apiKey = apiKey || config.apiKey || "";
114
114
  }
115
115
  isLoaded() {
116
116
  return fs.existsSync(path.resolve(process.cwd(), this.baseDir));
package/dist/react.cjs CHANGED
@@ -282,7 +282,7 @@ var LocalCacheProxy = class {
282
282
  async getInstance() {
283
283
  if (this.instance) return this.instance;
284
284
  if (typeof window === "undefined") {
285
- const mod = await Promise.resolve().then(() => _interopRequireWildcard(require("./local-cache-server-SF5SXE7H.cjs")));
285
+ const mod = await Promise.resolve().then(() => _interopRequireWildcard(require("./local-cache-server-BBTSKKEV.cjs")));
286
286
  this.instance = new mod.LocalCache(this.cachePath);
287
287
  } else {
288
288
  const mod = await Promise.resolve().then(() => _interopRequireWildcard(require("./local-cache-client-IGAL7SZ6.cjs")));
package/dist/react.js CHANGED
@@ -282,7 +282,7 @@ var LocalCacheProxy = class {
282
282
  async getInstance() {
283
283
  if (this.instance) return this.instance;
284
284
  if (typeof window === "undefined") {
285
- const mod = await import("./local-cache-server-BNLLL4NR.js");
285
+ const mod = await import("./local-cache-server-CWKX622Y.js");
286
286
  this.instance = new mod.LocalCache(this.cachePath);
287
287
  } else {
288
288
  const mod = await import("./local-cache-client-I6UYVJJV.js");