修改后台权限
This commit is contained in:
18
node_modules/is-node-process/lib/index.mjs
generated
vendored
Normal file
18
node_modules/is-node-process/lib/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
// src/index.ts
|
||||
function isNodeProcess() {
|
||||
if (typeof navigator !== "undefined" && navigator.product === "ReactNative") {
|
||||
return true;
|
||||
}
|
||||
if (typeof process !== "undefined") {
|
||||
const type = process.type;
|
||||
if (type === "renderer" || type === "worker") {
|
||||
return false;
|
||||
}
|
||||
return !!(process.versions && process.versions.node);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
export {
|
||||
isNodeProcess
|
||||
};
|
||||
//# sourceMappingURL=index.mjs.map
|
||||
Reference in New Issue
Block a user