@junobuild/core 0.0.40 → 0.0.41

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.
@@ -0,0 +1,2 @@
1
+ export declare const DOCKER_CONTAINER_URL = "http://127.0.0.1:5987";
2
+ export declare const DOCKER_INTERNET_IDENTITY_ID = "rdmx6-jaaaa-aaaaa-aaadq-cai";
@@ -7,6 +7,5 @@ export declare class EnvStore extends Store<Environment | undefined> {
7
7
  static getInstance(): EnvStore;
8
8
  set(env: Environment | undefined): void;
9
9
  get(): Environment | undefined;
10
- localIdentity(): boolean;
11
10
  subscribe(callback: (data: Environment | null | undefined) => void): () => void;
12
11
  }
@@ -5,6 +5,6 @@ export interface EnvironmentWorkers {
5
5
  auth?: EnvironmentWorker;
6
6
  }
7
7
  export type Environment = {
8
- localIdentityCanisterId?: string;
8
+ internetIdentityId?: string;
9
9
  workers?: EnvironmentWorkers;
10
- } & Required<Pick<Satellite, 'satelliteId'>>;
10
+ } & Required<Pick<Satellite, 'satelliteId' | 'container'>>;
@@ -3,6 +3,6 @@ export interface Satellite {
3
3
  identity: Identity;
4
4
  satelliteId?: string;
5
5
  fetch?: typeof fetch;
6
- env?: 'dev' | 'prod';
6
+ container?: boolean | 'string';
7
7
  }
8
8
  export type SatelliteOptions = Partial<Satellite>;
@@ -1,6 +1,6 @@
1
1
  import type { ActorMethod, ActorSubclass } from '@dfinity/agent';
2
2
  import type { IDL } from '@dfinity/candid';
3
3
  import type { Satellite } from '../types/satellite.types';
4
- export declare const createActor: <T = Record<string, ActorMethod<unknown[], unknown>>>({ satelliteId: canisterId, idlFactory, identity, fetch, env }: {
4
+ export declare const createActor: <T = Record<string, ActorMethod<unknown[], unknown>>>({ satelliteId: canisterId, idlFactory, identity, fetch, container }: {
5
5
  idlFactory: IDL.InterfaceFactory;
6
- } & Required<Pick<Satellite, "satelliteId" | "identity">> & Pick<Satellite, "fetch" | "env">) => Promise<ActorSubclass<T>>;
6
+ } & Required<Pick<Satellite, "satelliteId" | "identity">> & Pick<Satellite, "container" | "fetch">) => Promise<ActorSubclass<T>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/core",
3
- "version": "0.0.40",
3
+ "version": "0.0.41",
4
4
  "description": "JavaScript core client for Juno",
5
5
  "author": "David Dal Busco (https://daviddalbusco.com)",
6
6
  "license": "MIT",