@towns-protocol/dlog 0.0.206 → 0.0.208

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/utils.d.ts CHANGED
@@ -1,3 +1,4 @@
1
- export declare function isNodeEnv(): boolean;
1
+ export declare const isBrowser: boolean;
2
+ export declare const isNodeEnv: boolean;
2
3
  export declare function isTestEnv(): boolean;
3
4
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAEA,wBAAgB,SAAS,IAAI,OAAO,CAEnC;AAED,wBAAgB,SAAS,IAAI,OAAO,CAOnC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,SAA0E,CAAA;AAEhG,eAAO,MAAM,SAAS,SACyE,CAAA;AAE/F,wBAAgB,SAAS,IAAI,OAAO,CAOnC"}
package/dist/utils.js CHANGED
@@ -1,9 +1,7 @@
1
- import { isNode } from 'browser-or-node';
2
- export function isNodeEnv() {
3
- return isNode;
4
- }
1
+ export const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
2
+ export const isNodeEnv = typeof process !== 'undefined' && process.versions != null && process.versions.node != null;
5
3
  export function isTestEnv() {
6
- return (isNode &&
4
+ return (isNodeEnv &&
7
5
  (process.env.NODE_ENV === 'test' ||
8
6
  process.env.JEST_WORKER_ID !== undefined ||
9
7
  process.env.TS_JEST === '1'));
package/dist/utils.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAExC,MAAM,UAAU,SAAS;IACrB,OAAO,MAAM,CAAA;AACjB,CAAC;AAED,MAAM,UAAU,SAAS;IACrB,OAAO,CACH,MAAM;QACN,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,MAAM;YAC5B,OAAO,CAAC,GAAG,CAAC,cAAc,KAAK,SAAS;YACxC,OAAO,CAAC,GAAG,CAAC,OAAO,KAAK,GAAG,CAAC,CACnC,CAAA;AACL,CAAC"}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG,OAAO,MAAM,KAAK,WAAW,IAAI,OAAO,MAAM,CAAC,QAAQ,KAAK,WAAW,CAAA;AAEhG,MAAM,CAAC,MAAM,SAAS,GAClB,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,QAAQ,IAAI,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,IAAI,IAAI,CAAA;AAE/F,MAAM,UAAU,SAAS;IACrB,OAAO,CACH,SAAS;QACT,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,MAAM;YAC5B,OAAO,CAAC,GAAG,CAAC,cAAc,KAAK,SAAS;YACxC,OAAO,CAAC,GAAG,CAAC,OAAO,KAAK,GAAG,CAAC,CACnC,CAAA;AACL,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@towns-protocol/dlog",
3
- "version": "0.0.206",
3
+ "version": "0.0.208",
4
4
  "packageManager": "yarn@3.8.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -22,8 +22,7 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@bufbuild/protobuf": "^2.2.2",
25
- "@towns-protocol/proto": "^0.0.206",
26
- "browser-or-node": "^3.0.0",
25
+ "@towns-protocol/proto": "^0.0.208",
27
26
  "debug": "^4.3.4",
28
27
  "ethereum-cryptography": "^1.2.0"
29
28
  },
@@ -41,5 +40,5 @@
41
40
  "files": [
42
41
  "/dist"
43
42
  ],
44
- "gitHead": "1fbd3b7a9c7b51255fec9ecfda7643e7c11f8d27"
43
+ "gitHead": "4c17eb8b0e21981befe5caf5e5c6f1e79ce23eb3"
45
44
  }