aeria-sdk 0.0.68 → 0.0.70

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/types.d.ts CHANGED
@@ -8,5 +8,6 @@ export type InstanceConfig = {
8
8
  strategy?: StorageStrategy;
9
9
  namespace?: string;
10
10
  };
11
+ environment?: 'production' | 'development';
11
12
  integrated?: boolean;
12
13
  };
package/dist/utils.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import type { InstanceConfig } from './types.js';
2
2
  export declare const publicUrl: (config: InstanceConfig) => string;
3
- export declare const getConfig: () => Promise<any>;
3
+ export declare const getConfig: () => Promise<InstanceConfig>;
package/dist/utils.js CHANGED
@@ -7,9 +7,9 @@ const publicUrl = (config) => {
7
7
  if (typeof config.publicUrl === 'string') {
8
8
  return config.publicUrl;
9
9
  }
10
- return process.env.NODE_ENV === 'production'
11
- ? config.publicUrl.production
12
- : config.publicUrl.development;
10
+ return config.environment === 'development'
11
+ ? config.publicUrl.development
12
+ : config.publicUrl.production;
13
13
  };
14
14
  exports.publicUrl = publicUrl;
15
15
  const getConfig = async () => {
package/dist/utils.mjs CHANGED
@@ -5,7 +5,7 @@ export const publicUrl = (config) => {
5
5
  if (typeof config.publicUrl === "string") {
6
6
  return config.publicUrl;
7
7
  }
8
- return false ? config.publicUrl.production : config.publicUrl.development;
8
+ return config.environment === "development" ? config.publicUrl.development : config.publicUrl.production;
9
9
  };
10
10
  export const getConfig = async () => {
11
11
  const { aeriaSdk } = await dynamicImport(path.join(process.cwd(), "package.json"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aeria-sdk",
3
- "version": "0.0.68",
3
+ "version": "0.0.70",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -60,8 +60,8 @@
60
60
  "@aeriajs/types": "link:../types"
61
61
  },
62
62
  "peerDependencies": {
63
- "@aeriajs/common": "^0.0.45",
64
- "@aeriajs/types": "^0.0.42"
63
+ "@aeriajs/common": "^0.0.47",
64
+ "@aeriajs/types": "^0.0.44"
65
65
  },
66
66
  "scripts": {
67
67
  "test": "echo skipping",