@account-kit/logging 4.1.1 → 4.3.0

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/esm/utils.js CHANGED
@@ -2,7 +2,8 @@ export function isClientDevMode() {
2
2
  if (typeof __DEV__ !== "undefined" && __DEV__) {
3
3
  return true;
4
4
  }
5
- if (process.env.NODE_ENV === "development") {
5
+ if (typeof process !== "undefined" &&
6
+ process.env.NODE_ENV === "development") {
6
7
  return true;
7
8
  }
8
9
  if (typeof window !== "undefined" &&
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,eAAe;IAC7B,IAAI,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,EAAE,CAAC;QAC9C,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,EAAE,CAAC;QAC3C,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IACE,OAAO,MAAM,KAAK,WAAW;QAC7B,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,WAAW,CAAC,EAChD,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC","sourcesContent":["// just in case we're in a setting that doesn't have these types defined\ndeclare const __DEV__: boolean | undefined;\ndeclare const window: Window | undefined;\n\nexport function isClientDevMode() {\n if (typeof __DEV__ !== \"undefined\" && __DEV__) {\n return true;\n }\n\n if (process.env.NODE_ENV === \"development\") {\n return true;\n }\n\n if (\n typeof window !== \"undefined\" &&\n window.location?.hostname?.includes(\"localhost\")\n ) {\n return true;\n }\n\n return false;\n}\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,eAAe;IAC7B,IAAI,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,EAAE,CAAC;QAC9C,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IACE,OAAO,OAAO,KAAK,WAAW;QAC9B,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,EACtC,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IACE,OAAO,MAAM,KAAK,WAAW;QAC7B,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,WAAW,CAAC,EAChD,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC","sourcesContent":["// just in case we're in a setting that doesn't have these types defined\ndeclare const __DEV__: boolean | undefined;\ndeclare const window: Window | undefined;\n\nexport function isClientDevMode() {\n if (typeof __DEV__ !== \"undefined\" && __DEV__) {\n return true;\n }\n\n if (\n typeof process !== \"undefined\" &&\n process.env.NODE_ENV === \"development\"\n ) {\n return true;\n }\n\n if (\n typeof window !== \"undefined\" &&\n window.location?.hostname?.includes(\"localhost\")\n ) {\n return true;\n }\n\n return false;\n}\n"]}
@@ -1 +1 @@
1
- export declare const VERSION = "4.1.1";
1
+ export declare const VERSION = "4.3.0";
@@ -1,4 +1,4 @@
1
1
  // This file is autogenerated by inject-version.ts. Any changes will be
2
2
  // overwritten on commit!
3
- export const VERSION = "4.1.1";
3
+ export const VERSION = "4.3.0";
4
4
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,yBAAyB;AACzB,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC","sourcesContent":["// This file is autogenerated by inject-version.ts. Any changes will be\n// overwritten on commit!\nexport const VERSION = \"4.1.1\";\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,yBAAyB;AACzB,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC","sourcesContent":["// This file is autogenerated by inject-version.ts. Any changes will be\n// overwritten on commit!\nexport const VERSION = \"4.3.0\";\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAIA,wBAAgB,eAAe,YAiB9B"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAIA,wBAAgB,eAAe,YAoB9B"}
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.1.1";
1
+ export declare const VERSION = "4.3.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@account-kit/logging",
3
- "version": "4.1.1",
3
+ "version": "4.3.0",
4
4
  "description": "Core logging library for Account Kit packages",
5
5
  "author": "Alchemy",
6
6
  "license": "MIT",
@@ -61,5 +61,5 @@
61
61
  "@segment/analytics-next": "^1.74.0",
62
62
  "uuidv4": "^6.2.13"
63
63
  },
64
- "gitHead": "36eb306e10b5d476a993316bafdbff17755ff8f3"
64
+ "gitHead": "78c86103afeee309748c9d604af58bc7707c8b16"
65
65
  }
package/src/utils.ts CHANGED
@@ -7,7 +7,10 @@ export function isClientDevMode() {
7
7
  return true;
8
8
  }
9
9
 
10
- if (process.env.NODE_ENV === "development") {
10
+ if (
11
+ typeof process !== "undefined" &&
12
+ process.env.NODE_ENV === "development"
13
+ ) {
11
14
  return true;
12
15
  }
13
16
 
package/src/version.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  // This file is autogenerated by inject-version.ts. Any changes will be
2
2
  // overwritten on commit!
3
- export const VERSION = "4.1.1";
3
+ export const VERSION = "4.3.0";