@towns-protocol/dlog 0.0.207 → 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 +2 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +3 -5
- package/dist/utils.js.map +1 -1
- package/package.json +3 -4
package/dist/utils.d.ts
CHANGED
package/dist/utils.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"
|
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
|
-
|
2
|
-
export
|
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 (
|
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,
|
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.
|
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.
|
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": "
|
43
|
+
"gitHead": "4c17eb8b0e21981befe5caf5e5c6f1e79ce23eb3"
|
45
44
|
}
|