@graphql-mesh/cross-helpers 0.1.5 → 0.1.6-alpha-aa8d75313.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/CHANGELOG.md +6 -0
- package/browser.js +16 -0
- package/index.d.ts +2 -1
- package/index.js +1 -0
- package/package.json +1 -1
- package/react-native.js +7 -0
package/CHANGELOG.md
CHANGED
package/browser.js
CHANGED
|
@@ -5,3 +5,19 @@ export const fs = {
|
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
export { path };
|
|
8
|
+
|
|
9
|
+
const processObj = typeof process !== 'undefined' ? process : {
|
|
10
|
+
get env() {
|
|
11
|
+
try {
|
|
12
|
+
// eslint-disable-next-line no-new-func
|
|
13
|
+
return new Function('return import.meta.env')();
|
|
14
|
+
} catch {
|
|
15
|
+
return {
|
|
16
|
+
NODE_ENV: 'production',
|
|
17
|
+
platform: 'linux',
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { processObj as process };
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
package/package.json
CHANGED