修改后台权限
This commit is contained in:
6
node_modules/is-node-process/lib/index.d.ts
generated
vendored
Normal file
6
node_modules/is-node-process/lib/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* Determines if the current process is a Node.js process.
|
||||
*/
|
||||
declare function isNodeProcess(): boolean;
|
||||
|
||||
export { isNodeProcess };
|
||||
42
node_modules/is-node-process/lib/index.js
generated
vendored
Normal file
42
node_modules/is-node-process/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/index.ts
|
||||
var src_exports = {};
|
||||
__export(src_exports, {
|
||||
isNodeProcess: () => isNodeProcess
|
||||
});
|
||||
module.exports = __toCommonJS(src_exports);
|
||||
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;
|
||||
}
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
isNodeProcess
|
||||
});
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/is-node-process/lib/index.js.map
generated
vendored
Normal file
1
node_modules/is-node-process/lib/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * Determines if the current process is a Node.js process.\n */\nexport function isNodeProcess(): boolean {\n if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {\n return true\n }\n\n if (typeof process !== 'undefined') {\n // Electron (https://www.electronjs.org/docs/latest/api/process#processtype-readonly)\n const type = (process as any).type\n if (type === 'renderer' || type === 'worker') {\n return false\n }\n\n\n return !!(\n process.versions &&\n process.versions.node\n )\n }\n\n return false\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,SAAS,gBAAyB;AACvC,MAAI,OAAO,cAAc,eAAe,UAAU,YAAY,eAAe;AAC3E,WAAO;AAAA,EACT;AAEA,MAAI,OAAO,YAAY,aAAa;AAElC,UAAM,OAAQ,QAAgB;AAC9B,QAAI,SAAS,cAAc,SAAS,UAAU;AAC5C,aAAO;AAAA,IACT;AAGA,WAAO,CAAC,EACN,QAAQ,YACR,QAAQ,SAAS;AAAA,EAErB;AAEA,SAAO;AACT;","names":[]}
|
||||
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
|
||||
1
node_modules/is-node-process/lib/index.mjs.map
generated
vendored
Normal file
1
node_modules/is-node-process/lib/index.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * Determines if the current process is a Node.js process.\n */\nexport function isNodeProcess(): boolean {\n if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {\n return true\n }\n\n if (typeof process !== 'undefined') {\n // Electron (https://www.electronjs.org/docs/latest/api/process#processtype-readonly)\n const type = (process as any).type\n if (type === 'renderer' || type === 'worker') {\n return false\n }\n\n\n return !!(\n process.versions &&\n process.versions.node\n )\n }\n\n return false\n}\n"],"mappings":";AAGO,SAAS,gBAAyB;AACvC,MAAI,OAAO,cAAc,eAAe,UAAU,YAAY,eAAe;AAC3E,WAAO;AAAA,EACT;AAEA,MAAI,OAAO,YAAY,aAAa;AAElC,UAAM,OAAQ,QAAgB;AAC9B,QAAI,SAAS,cAAc,SAAS,UAAU;AAC5C,aAAO;AAAA,IACT;AAGA,WAAO,CAAC,EACN,QAAQ,YACR,QAAQ,SAAS;AAAA,EAErB;AAEA,SAAO;AACT;","names":[]}
|
||||
Reference in New Issue
Block a user