@nosana/kit 0.1.2 → 0.1.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/dist/index.js CHANGED
@@ -52,7 +52,9 @@ export class NosanaClient {
52
52
  // Only try file/environment loading in Node.js environment
53
53
  if (typeof window === 'undefined') {
54
54
  try {
55
- const { loadKeypairSignerFromFile, loadKeypairSignerFromEnvironment, loadKeypairSignerFromEnvironmentBase58 } = await import('gill/node');
55
+ // Use string concatenation to avoid bundler resolving this import at build time
56
+ const nodeModule = 'gill' + '/node';
57
+ const { loadKeypairSignerFromFile, loadKeypairSignerFromEnvironment, loadKeypairSignerFromEnvironmentBase58 } = await import(nodeModule);
56
58
  // Try to load from file path
57
59
  if (await this.isValidFilePath(wallet)) {
58
60
  try {
@@ -153,5 +155,5 @@ export { JobsProgram } from './programs/JobsProgram.js';
153
155
  export * from './ipfs/IPFS.js';
154
156
  // Export all generated client types and functions
155
157
  export * from './generated_clients/jobs/index.js';
156
- // Export dependencies
158
+ // Export dependencies
157
159
  export * from 'gill';
@@ -1,4 +1,4 @@
1
- import { createSolanaClient, address, getProgramDerivedAddress, getAddressEncoder, generateKeyPairSigner, createTransaction, signTransactionMessageWithSigners, getExplorerLink, getSignatureFromTransaction } from 'gill';
1
+ import { createSolanaClient, address, getProgramDerivedAddress, getAddressEncoder, createTransaction, signTransactionMessageWithSigners, getExplorerLink, getSignatureFromTransaction } from 'gill';
2
2
  import { NosanaError, ErrorCodes } from '../errors/NosanaError.js';
3
3
  export class SolanaUtils {
4
4
  constructor(sdk) {
@@ -32,9 +32,6 @@ export class SolanaUtils {
32
32
  }
33
33
  }
34
34
  async getLatestBlockhash() {
35
- console.log('testing gen key..');
36
- const jobKey = await generateKeyPairSigner();
37
- console.log('test', jobKey);
38
35
  try {
39
36
  const { value: blockhash } = await this.rpc.getLatestBlockhash().send();
40
37
  return blockhash;
@@ -18,7 +18,7 @@ export default defineNuxtConfig({
18
18
  },
19
19
  optimizeDeps: {
20
20
  include: ['@nosana/kit'],
21
- exclude: ['gill/node', 'gill']
21
+ exclude: ['gill/node']
22
22
  },
23
23
  }
24
24
  })