@aippy/runtime 0.2.0 → 0.2.1

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.
@@ -1,9 +1,9 @@
1
- import { c, a, i, b, p, u } from "../useAudioContext-D9Y4gIw9.js";
1
+ import { c as i, a as t, i as d, b as o, p as s, u as n } from "../useAudioContext-DaLkaQ8P.js";
2
2
  export {
3
- c as createHiddenMediaElement,
4
- a as createHiddenVideoElement,
5
- i as isIOSDevice,
6
- b as isMediaStreamAudioSupported,
7
- p as patchAudioContext,
8
- u as useAudioContext
3
+ i as createHiddenMediaElement,
4
+ t as createHiddenVideoElement,
5
+ d as isIOSDevice,
6
+ o as isMediaStreamAudioSupported,
7
+ s as patchAudioContext,
8
+ n as useAudioContext
9
9
  };
@@ -1,59 +1,45 @@
1
- import { A, E, c } from "../errors-DAz5_jDJ.js";
2
- const DEFAULT_CONFIG = {
1
+ import { A as d, E as v, c as _ } from "../errors-CDEBaBxB.js";
2
+ const o = {
3
3
  mode: "development",
4
- debug: false,
4
+ debug: !1,
5
5
  apiBaseUrl: void 0,
6
6
  headers: {}
7
7
  };
8
- function getConfigFromEnv() {
9
- const config = {};
10
- if (typeof process !== "undefined" && process.env) {
11
- if (process.env.NODE_ENV) {
12
- config.mode = process.env.NODE_ENV;
13
- }
14
- if (process.env.AIPPY_DEBUG) {
15
- config.debug = process.env.AIPPY_DEBUG === "true";
16
- }
17
- if (process.env.AIPPY_API_BASE_URL) {
18
- config.apiBaseUrl = process.env.AIPPY_API_BASE_URL;
19
- }
20
- }
21
- return config;
8
+ function r() {
9
+ const e = {};
10
+ return typeof process < "u" && process.env && (process.env.NODE_ENV && (e.mode = process.env.NODE_ENV), process.env.AIPPY_DEBUG && (e.debug = process.env.AIPPY_DEBUG === "true"), process.env.AIPPY_API_BASE_URL && (e.apiBaseUrl = process.env.AIPPY_API_BASE_URL)), e;
22
11
  }
23
- function mergeConfig(userConfig) {
24
- const envConfig = getConfigFromEnv();
12
+ function a(e) {
13
+ const n = r();
25
14
  return {
26
- ...DEFAULT_CONFIG,
27
- ...envConfig,
28
- ...userConfig,
15
+ ...o,
16
+ ...n,
17
+ ...e,
29
18
  headers: {
30
- ...DEFAULT_CONFIG.headers,
31
- ...envConfig.headers,
32
- ...userConfig?.headers
19
+ ...o.headers,
20
+ ...n.headers,
21
+ ...e?.headers
33
22
  }
34
23
  };
35
24
  }
36
- const version = "0.2.0";
37
- const packageJson = {
38
- version
39
- };
40
- const VERSION = packageJson.version;
41
- const SDK_NAME = "@aippy/runtime";
42
- function getVersionInfo() {
25
+ const s = "0.2.1", t = {
26
+ version: s
27
+ }, i = t.version, c = "@aippy/runtime";
28
+ function p() {
43
29
  return {
44
- name: SDK_NAME,
45
- version: VERSION,
30
+ name: c,
31
+ version: i,
46
32
  buildTime: (/* @__PURE__ */ new Date()).toISOString()
47
33
  };
48
34
  }
49
35
  export {
50
- A as AippyRuntimeError,
51
- DEFAULT_CONFIG,
52
- E as ERROR_CODES,
53
- SDK_NAME,
54
- VERSION,
55
- c as createError,
56
- getConfigFromEnv,
57
- getVersionInfo,
58
- mergeConfig
36
+ d as AippyRuntimeError,
37
+ o as DEFAULT_CONFIG,
38
+ v as ERROR_CODES,
39
+ c as SDK_NAME,
40
+ i as VERSION,
41
+ _ as createError,
42
+ r as getConfigFromEnv,
43
+ p as getVersionInfo,
44
+ a as mergeConfig
59
45
  };