Initialisation
Added the packages and files for the backend server
This commit is contained in:
21
node_modules/@apollo/utils.isnodelike/LICENSE
generated
vendored
Normal file
21
node_modules/@apollo/utils.isnodelike/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2022 Apollo Graph, Inc. (Formerly Meteor Development Group, Inc.)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
14
node_modules/@apollo/utils.isnodelike/README.md
generated
vendored
Normal file
14
node_modules/@apollo/utils.isnodelike/README.md
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
# isNodeLike
|
||||
|
||||
A simple constant to determine if the current environment is Node-like by
|
||||
inspecting the `process` global for Node-specific properties.
|
||||
|
||||
## Usage
|
||||
|
||||
```ts
|
||||
import { isNodeLike } from "@apollo/utils.isnodelike";
|
||||
|
||||
if (isNodeLike) {
|
||||
require("fs").readFileSync("foo");
|
||||
}
|
||||
```
|
||||
2
node_modules/@apollo/utils.isnodelike/dist/index.d.ts
generated
vendored
Normal file
2
node_modules/@apollo/utils.isnodelike/dist/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare const isNodeLike: boolean;
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/@apollo/utils.isnodelike/dist/index.d.ts.map
generated
vendored
Normal file
1
node_modules/@apollo/utils.isnodelike/dist/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,SAWoB,CAAC"}
|
||||
9
node_modules/@apollo/utils.isnodelike/dist/index.js
generated
vendored
Normal file
9
node_modules/@apollo/utils.isnodelike/dist/index.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isNodeLike = void 0;
|
||||
exports.isNodeLike = typeof process === "object" &&
|
||||
process &&
|
||||
process.release &&
|
||||
process.versions &&
|
||||
typeof process.versions.node === "string";
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/@apollo/utils.isnodelike/dist/index.js.map
generated
vendored
Normal file
1
node_modules/@apollo/utils.isnodelike/dist/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GACrB,OAAO,OAAO,KAAK,QAAQ;IAC3B,OAAO;IAKP,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,QAAQ;IAGhB,OAAO,OAAO,CAAC,QAAQ,CAAC,IAAI,KAAK,QAAQ,CAAC"}
|
||||
23
node_modules/@apollo/utils.isnodelike/package.json
generated
vendored
Normal file
23
node_modules/@apollo/utils.isnodelike/package.json
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"name": "@apollo/utils.isnodelike",
|
||||
"version": "2.0.1",
|
||||
"description": "Node environment detection utility",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/apollographql/apollo-utils.git",
|
||||
"directory": "packages/isNodeLike/"
|
||||
},
|
||||
"keywords": [
|
||||
"apollo",
|
||||
"graphql",
|
||||
"typescript",
|
||||
"node"
|
||||
],
|
||||
"author": "Apollo <packages@apollographql.com>",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=14"
|
||||
}
|
||||
}
|
||||
12
node_modules/@apollo/utils.isnodelike/src/index.ts
generated
vendored
Normal file
12
node_modules/@apollo/utils.isnodelike/src/index.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
export const isNodeLike =
|
||||
typeof process === "object" &&
|
||||
process &&
|
||||
// We used to check `process.release.name === "node"`, however that doesn't
|
||||
// account for certain forks of Node.js which are otherwise identical to
|
||||
// Node.js. For example, NodeSource's N|Solid reports itself as "nsolid",
|
||||
// though it's mostly the same build of Node.js with an extra addon.
|
||||
process.release &&
|
||||
process.versions &&
|
||||
// The one thing which is present on both Node.js and N|Solid (a fork of
|
||||
// Node.js), is `process.versions.node` being defined.
|
||||
typeof process.versions.node === "string";
|
||||
Reference in New Issue
Block a user