├── .github ├── FUNDING.yml └── workflows │ └── deploy.yml ├── .gitignore ├── .prettierrc ├── .yarn └── releases │ └── yarn-berry.cjs ├── .yarnrc.yml ├── CODE_OF_CONDUCT.md ├── LICENSE.md ├── README.md ├── graphiql.js ├── index.js ├── package.json ├── webpack.config.js ├── wrangler.toml └── yarn.lock /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: enisdenjo 2 | -------------------------------------------------------------------------------- /.github/workflows/deploy.yml: -------------------------------------------------------------------------------- 1 | name: Deploy to Cloudflare Workers 2 | 3 | on: workflow_dispatch 4 | 5 | jobs: 6 | build-and-publish: 7 | name: Build and publish 8 | runs-on: ubuntu-latest 9 | environment: Cloudflare Workers 10 | steps: 11 | - name: Checkout 12 | uses: actions/checkout@v2 13 | - name: Set up node 14 | uses: actions/setup-node@v2-beta 15 | with: 16 | node-version: '14' 17 | - name: Install 18 | run: yarn install --immutable 19 | - name: Publish 20 | uses: cloudflare/wrangler-action@1.3.0 21 | with: 22 | apiToken: ${{ secrets.CF_API_TOKEN }} 23 | env: 24 | CF_ACCOUNT_ID: ${{secrets.CF_ACCOUNT_ID}} 25 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | **/.DS_Store 2 | node_modules 3 | lib 4 | umd 5 | dist 6 | /dist 7 | bin/ 8 | pkg/ 9 | worker/ 10 | .vscode 11 | .yarn/* 12 | !.yarn/releases 13 | !.yarn/plugins 14 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "singleQuote": true, 3 | "trailingComma": "all" 4 | } 5 | -------------------------------------------------------------------------------- /.yarnrc.yml: -------------------------------------------------------------------------------- 1 | nodeLinker: node-modules 2 | 3 | yarnPath: '.yarn/releases/yarn-berry.cjs' 4 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as 6 | contributors and maintainers pledge to making participation in our project and 7 | our community a harassment-free experience for everyone, regardless of age, body 8 | size, disability, ethnicity, sex characteristics, gender identity and expression, 9 | level of experience, education, socio-economic status, nationality, personal 10 | appearance, race, religion, or sexual identity and orientation. 11 | 12 | ## Our Standards 13 | 14 | Examples of behavior that contributes to creating a positive environment 15 | include: 16 | 17 | - Using welcoming and inclusive language 18 | - Being respectful of differing viewpoints and experiences 19 | - Gracefully accepting constructive criticism 20 | - Focusing on what is best for the community 21 | - Showing empathy towards other community members 22 | 23 | Examples of unacceptable behavior by participants include: 24 | 25 | - The use of sexualized language or imagery and unwelcome sexual attention or 26 | advances 27 | - Trolling, insulting/derogatory comments, and personal or political attacks 28 | - Public or private harassment 29 | - Publishing others' private information, such as a physical or electronic 30 | address, without explicit permission 31 | - Other conduct which could reasonably be considered inappropriate in a 32 | professional setting 33 | 34 | ## Our Responsibilities 35 | 36 | Project maintainers are responsible for clarifying the standards of acceptable 37 | behavior and are expected to take appropriate and fair corrective action in 38 | response to any instances of unacceptable behavior. 39 | 40 | Project maintainers have the right and responsibility to remove, edit, or 41 | reject comments, commits, code, wiki edits, issues, and other contributions 42 | that are not aligned to this Code of Conduct, or to ban temporarily or 43 | permanently any contributor for other behaviors that they deem inappropriate, 44 | threatening, offensive, or harmful. 45 | 46 | ## Scope 47 | 48 | This Code of Conduct applies both within project spaces and in public spaces 49 | when an individual is representing the project or its community. Examples of 50 | representing a project or community include using an official project e-mail 51 | address, posting via an official social media account, or acting as an appointed 52 | representative at an online or offline event. Representation of a project may be 53 | further defined and clarified by project maintainers. 54 | 55 | ## Enforcement 56 | 57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 | reported by contacting the project team at badurinadenis@gmail.com. All 59 | complaints will be reviewed and investigated and will result in a response that 60 | is deemed necessary and appropriate to the circumstances. The project team is 61 | obligated to maintain confidentiality with regard to the reporter of an incident. 62 | Further details of specific enforcement policies may be posted separately. 63 | 64 | Project maintainers who do not follow or enforce the Code of Conduct in good 65 | faith may face temporary or permanent repercussions as determined by other 66 | members of the project's leadership. 67 | 68 | ## Attribution 69 | 70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 71 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html 72 | 73 | [homepage]: https://www.contributor-covenant.org 74 | 75 | For answers to common questions about this code of conduct, see 76 | https://www.contributor-covenant.org/faq 77 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Denis Badurina 4 | 5 | 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: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | 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. 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # [🚡 `graphql-ws`](https://github.com/enisdenjo/graphql-ws) on [Cloudflare Workers](https://workers.cloudflare.com/) 2 | 3 | A template for [WebSockets](https://developers.cloudflare.com/workers/runtime-apis/websockets) powered Cloudflare Worker project using graphql-ws. 4 | 5 | The worker serves the following routes: 6 | 7 | - `"/"` renders GraphiQL using only `graphql-ws` ([as showcased here](https://gist.github.com/enisdenjo/a68312878fdc4df299cb0433c60c1dea)) 8 | - `"/graphql"` serves the GraphQL over WebSocket 9 | 10 | ## Getting started 11 | 12 | This template is meant to be used with [Wrangler](https://github.com/cloudflare/wrangler). If you are not already familiar with the tool, we recommend that you install the tool and configure it to work with your [Cloudflare account](https://dash.cloudflare.com). Documentation can be found [here](https://developers.cloudflare.com/workers/tooling/wrangler/). 13 | 14 | To generate using Wrangler, run this command: 15 | 16 | ```bash 17 | wrangler generate my-graphql-ws https://github.com/enisdenjo/cloudflare-worker-graphql-ws-template 18 | ``` 19 | 20 | ## Gotchas 21 | 22 | - Server WebSocket instance does not contain the `protocol` property ([as `ws` does](https://github.com/websockets/ws/blob/145480a5b520ee951d848009d51069bfd7ed928c/lib/websocket.js#L115-L120)) which is why you should pass the `Sec-WebSocket-Protocol` header to the `graphql-ws` server 23 | - Message listener event `data` property is already a string 24 | - If the client does not support the `"graphql-transport-ws"` subprotocol, the `Sec-WebSocket-Protocol` header will be omitted. This causes Chrome to abruptly terminate the connection with a `1006` close event code. 25 | - `webpack.config.js` is configured to omit the `browser` entry field in `package.json`s since we are bundling for Node workers and not for browsers 26 | 27 | _This is especially necessary for `graphql-ws` since the `browser` bundle does NOT contain any server code._ 28 | -------------------------------------------------------------------------------- /graphiql.js: -------------------------------------------------------------------------------- 1 | const template = ` 2 | 9 | 10 | 11 | 12 | 24 | 25 | 32 | 36 | 40 | 41 | 46 | 47 | 48 | 49 | 50 |
Loading...
51 | 55 | 59 | 60 | 132 | 133 | `; 134 | 135 | export default () => { 136 | return new Response(template, { 137 | headers: { 138 | 'Content-type': 'text/html; charset=utf-8', 139 | }, 140 | }); 141 | }; 142 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | import { 2 | handleProtocols, 3 | makeServer, 4 | MessageType, 5 | stringifyMessage, 6 | } from 'graphql-ws'; 7 | import { buildSchema } from 'graphql'; 8 | import graphiql from './graphiql'; 9 | 10 | // construct a schema, using GraphQL schema language 11 | const schema = buildSchema(` 12 | type Query { 13 | hello: String 14 | } 15 | type Subscription { 16 | greetings: String 17 | } 18 | `); 19 | 20 | // the roots provide resolvers for each GraphQL operation 21 | const roots = { 22 | query: { 23 | hello: () => 'Hello World!', 24 | }, 25 | subscription: { 26 | greetings: async function* sayHiIn5Languages() { 27 | for (const hi of ['Hi', 'Bonjour', 'Hola', 'Ciao', 'Zdravo']) { 28 | yield { greetings: hi }; 29 | } 30 | }, 31 | }, 32 | }; 33 | 34 | // use cloudflare server websocket for graphql-ws 35 | function useWebsocket(socket, request, protocol) { 36 | // configure and make server 37 | const server = makeServer({ schema, roots }); 38 | 39 | // accept socket to begin 40 | socket.accept(); 41 | 42 | // subprotocol pinger because WS level ping/pongs are not be available 43 | let pinger, pongWait; 44 | function ping() { 45 | if (socket.readyState === socket.OPEN) { 46 | // send the subprotocol level ping message 47 | socket.send(stringifyMessage({ type: MessageType.Ping })); 48 | 49 | // wait for the pong for 6 seconds and then terminate 50 | pongWait = setTimeout(() => { 51 | clearInterval(pinger); 52 | socket.close(); 53 | }, 6000); 54 | } 55 | } 56 | 57 | // ping the client on an interval every 12 seconds 58 | pinger = setInterval(() => ping(), 12000); 59 | 60 | // use the server 61 | const closed = server.opened( 62 | { 63 | protocol, // will be validated 64 | send: (data) => socket.send(data), 65 | close: (code, reason) => socket.close(code, reason), 66 | onMessage: (cb) => 67 | socket.addEventListener('message', async (event) => { 68 | try { 69 | // wait for the the operation to complete 70 | // - if init message, waits for connect 71 | // - if query/mutation, waits for result 72 | // - if subscription, waits for complete 73 | await cb(event.data); 74 | } catch (err) { 75 | // all errors that could be thrown during the 76 | // execution of operations will be caught here 77 | socket.close(1011, err.message); 78 | } 79 | }), 80 | // pong received, clear termination timeout 81 | onPong: () => clearTimeout(pongWait), 82 | }, 83 | // pass values to the `extra` field in the context 84 | { socket, request }, 85 | ); 86 | 87 | // notify server that the socket closed and stop the pinger 88 | socket.addEventListener('close', (code, reason) => { 89 | clearTimeout(pongWait); 90 | clearInterval(pinger); 91 | closed(code, reason); 92 | }); 93 | } 94 | 95 | function handleRequest(request) { 96 | const url = new URL(request.url); 97 | switch (url.pathname) { 98 | case '/': 99 | return graphiql(); 100 | case '/graphql': 101 | const upgradeHeader = request.headers.get('Upgrade'); 102 | if (upgradeHeader !== 'websocket') { 103 | return new Response('Expected websocket', { status: 400 }); 104 | } 105 | 106 | const [client, server] = Object.values(new WebSocketPair()); 107 | 108 | const protocol = handleProtocols( 109 | request.headers.get('Sec-WebSocket-Protocol'), 110 | ); 111 | 112 | useWebsocket(server, request, subprotocol); 113 | 114 | return new Response(null, { 115 | status: 101, 116 | webSocket: client, 117 | headers: protocol 118 | ? { 119 | // As per the WS spec, if the server does not accept any subprotocol - it should omit this header. 120 | // Beware that doing so will have Chrome abruptly close the WebSocket connection with a 1006 code. 121 | 'Sec-WebSocket-Protocol': protocol, 122 | } 123 | : {}, 124 | }); 125 | default: 126 | return new Response('Not found', { status: 404 }); 127 | } 128 | } 129 | 130 | addEventListener('fetch', (event) => { 131 | event.respondWith(handleRequest(event.request)); 132 | }); 133 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cloudflare-worker-graphql-ws-template", 3 | "private": true, 4 | "version": "0.0.0", 5 | "description": "A template for WebSockets powered Cloudflare Worker project using graphql-ws", 6 | "main": "index.js", 7 | "author": "Denis Badurina ", 8 | "license": "MIT", 9 | "devDependencies": { 10 | "@cloudflare/wrangler": "^1.17.0", 11 | "prettier": "^2.3.1" 12 | }, 13 | "dependencies": { 14 | "graphql": "^15.5.1", 15 | "graphql-ws": "^5.6.1" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | target: 'webworker', 3 | entry: './index.js', 4 | resolve: { 5 | // we dont bundle for 'browser' in cloudflare workers 6 | mainFields: ['module', 'main'], 7 | }, 8 | }; 9 | -------------------------------------------------------------------------------- /wrangler.toml: -------------------------------------------------------------------------------- 1 | name = "graphql-ws" 2 | type = "webpack" 3 | webpack_config = "webpack.config.js" 4 | 5 | account_id = "" 6 | workers_dev = true 7 | -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- 1 | # This file is generated by running "yarn install" inside your project. 2 | # Manual changes might be lost - proceed with caution! 3 | 4 | __metadata: 5 | version: 4 6 | cacheKey: 7 7 | 8 | "@cloudflare/wrangler@npm:^1.17.0": 9 | version: 1.17.0 10 | resolution: "@cloudflare/wrangler@npm:1.17.0" 11 | dependencies: 12 | axios: ^0.21.1 13 | rimraf: ^3.0.2 14 | tar: ^6.0.2 15 | bin: 16 | wrangler: run-wrangler.js 17 | checksum: 62babc93ff96297f3bd80d8e56d96c1d50ed873f454deaa9ed2d0218a82977c9487b3058d99d52a90e4494ae8da6bff739d1ded5ca333123a501e9b115f6af06 18 | languageName: node 19 | linkType: hard 20 | 21 | "axios@npm:^0.21.1": 22 | version: 0.21.1 23 | resolution: "axios@npm:0.21.1" 24 | dependencies: 25 | follow-redirects: ^1.10.0 26 | checksum: 864fb7b5d077d236737f10adca53bf451a93f35a15271f56fba8da07265a02d26b7d881b935a6697dc6adb0549ea3e56d2eecb403edaa3bb78f6479901c10f69 27 | languageName: node 28 | linkType: hard 29 | 30 | "balanced-match@npm:^1.0.0": 31 | version: 1.0.2 32 | resolution: "balanced-match@npm:1.0.2" 33 | checksum: 690643f3009a04289ac401079de5a780aae452f7625fb2884051cc847b231e6521ee15dd6430b066d3cf4bd8bb00bb7ff55b7d134f34b8f0b8c043806796f94e 34 | languageName: node 35 | linkType: hard 36 | 37 | "brace-expansion@npm:^1.1.7": 38 | version: 1.1.11 39 | resolution: "brace-expansion@npm:1.1.11" 40 | dependencies: 41 | balanced-match: ^1.0.0 42 | concat-map: 0.0.1 43 | checksum: 4c878e25e4858baf801945dfd63eb68feab2e502cf1122f25f3915c0e3bf397af3a93ff6bef0798db41c0d81ef28c08e55daac38058710f749a3b96eee6b8f40 44 | languageName: node 45 | linkType: hard 46 | 47 | "chownr@npm:^2.0.0": 48 | version: 2.0.0 49 | resolution: "chownr@npm:2.0.0" 50 | checksum: b06ba0bf4218bc2214cdb94a7d0200db5c6425f9425795c064dcf5a3801aac8ae87f764727890cd1f48c026559159e7e0e15ed3d1940ce453dec54898d013379 51 | languageName: node 52 | linkType: hard 53 | 54 | "cloudflare-worker-graphql-ws-template@workspace:.": 55 | version: 0.0.0-use.local 56 | resolution: "cloudflare-worker-graphql-ws-template@workspace:." 57 | dependencies: 58 | "@cloudflare/wrangler": ^1.17.0 59 | graphql: ^15.5.1 60 | graphql-ws: ^5.6.1 61 | prettier: ^2.3.1 62 | languageName: unknown 63 | linkType: soft 64 | 65 | "concat-map@npm:0.0.1": 66 | version: 0.0.1 67 | resolution: "concat-map@npm:0.0.1" 68 | checksum: 554e28d9ee5aa6e061795473ee092cb3d3a2cbdb76c35416e0bb6e03f136d7d07676da387b2ed0ec4106cedbb6534080d9abc48ecc4a92b76406cf2d0c3c0c4b 69 | languageName: node 70 | linkType: hard 71 | 72 | "follow-redirects@npm:^1.10.0": 73 | version: 1.14.1 74 | resolution: "follow-redirects@npm:1.14.1" 75 | peerDependenciesMeta: 76 | debug: 77 | optional: true 78 | checksum: 761a18699688b19d66b3e9199ecaf9cd39ede953f3529299c7fca4190b27b855c17c491170977844d5db5e169ffc35ebae999bb0833e9c9c61988d19c20ae7ab 79 | languageName: node 80 | linkType: hard 81 | 82 | "fs-minipass@npm:^2.0.0": 83 | version: 2.1.0 84 | resolution: "fs-minipass@npm:2.1.0" 85 | dependencies: 86 | minipass: ^3.0.0 87 | checksum: e14a490658621cf1f7d8cbf9e92a9cc4dc7ce050418e4817e877e4531c438223db79f7a1774668087428d665a3de95f87014ce36c8afdc841fea42bcb782abcb 88 | languageName: node 89 | linkType: hard 90 | 91 | "fs.realpath@npm:^1.0.0": 92 | version: 1.0.0 93 | resolution: "fs.realpath@npm:1.0.0" 94 | checksum: 698a91b1695e3926185c9e5b0dd57cf687dceb4eb73799af91e6b2ab741735e2962c366c5af6403ffddae2619914193bd339efa706fdc984d0ffc74b7a3603f4 95 | languageName: node 96 | linkType: hard 97 | 98 | "glob@npm:^7.1.3": 99 | version: 7.1.7 100 | resolution: "glob@npm:7.1.7" 101 | dependencies: 102 | fs.realpath: ^1.0.0 103 | inflight: ^1.0.4 104 | inherits: 2 105 | minimatch: ^3.0.4 106 | once: ^1.3.0 107 | path-is-absolute: ^1.0.0 108 | checksum: 352f74f08247db5420161a2f68f2bd84b53228b5fcfc9dcc37cd54d3f19ec0232495d84aeff1286d0727059e9fdc1031400e00b971bdc59e30f8f82b199c9d02 109 | languageName: node 110 | linkType: hard 111 | 112 | "graphql-ws@npm:^5.6.1": 113 | version: 5.6.1 114 | resolution: "graphql-ws@npm:5.6.1" 115 | peerDependencies: 116 | graphql: ">=0.11 <=16" 117 | checksum: f5b4ccabc6db32be53e6de8ffc0a97a39d9a922b0adff95e3e0fc12a70fd522869e6bb9a86e6ea29b2624d971f4e74507720c718f6054b38289cefc2968c104c 118 | languageName: node 119 | linkType: hard 120 | 121 | "graphql@npm:^15.5.1": 122 | version: 15.5.1 123 | resolution: "graphql@npm:15.5.1" 124 | checksum: 509cdc2fc072e7cd1b5a25cf3fe13838d41892b035434f02419c209608f89e323f5234ca7e2bde77e9371e629339cbd8435f1dbc8c250910e4e9ac0babfa6c64 125 | languageName: node 126 | linkType: hard 127 | 128 | "inflight@npm:^1.0.4": 129 | version: 1.0.6 130 | resolution: "inflight@npm:1.0.6" 131 | dependencies: 132 | once: ^1.3.0 133 | wrappy: 1 134 | checksum: 17c53fc42cbe7f7f471d2bc41b97a0cde4b79a74d5ff59997d3f75210566fa278e17596da526d43de2bd07e222706240ce50e60097e54f2cde2e64cbbb372638 135 | languageName: node 136 | linkType: hard 137 | 138 | "inherits@npm:2": 139 | version: 2.0.4 140 | resolution: "inherits@npm:2.0.4" 141 | checksum: 98426da247ddfc3dcd7d7daedd90c3ca32d5b08deca08949726f12d49232aef94772a07b36cf4ff833e105ae2ef931777f6de4a6dd8245a216b9299ad4a50bea 142 | languageName: node 143 | linkType: hard 144 | 145 | "minimatch@npm:^3.0.4": 146 | version: 3.0.4 147 | resolution: "minimatch@npm:3.0.4" 148 | dependencies: 149 | brace-expansion: ^1.1.7 150 | checksum: 47eab9263962cacd5733e274ecad2d8e54b0f8e124ba35ae69189e296058f634a4967b87a98954f86fa5c830ff177caf827ce0136d28717ed3232951fb4fae62 151 | languageName: node 152 | linkType: hard 153 | 154 | "minipass@npm:^3.0.0": 155 | version: 3.1.3 156 | resolution: "minipass@npm:3.1.3" 157 | dependencies: 158 | yallist: ^4.0.0 159 | checksum: d12b95a845f15950bce7a77730c89400cf0c4f55e7066338da1d201ac148ece4ea8efa79e45a2c07c868c61bcaf9e996c4c3d6bf6b85c038ffa454521fc6ecd5 160 | languageName: node 161 | linkType: hard 162 | 163 | "minizlib@npm:^2.1.1": 164 | version: 2.1.2 165 | resolution: "minizlib@npm:2.1.2" 166 | dependencies: 167 | minipass: ^3.0.0 168 | yallist: ^4.0.0 169 | checksum: 5a45b57b3467e5a743d87a96d7be57598a6f72eb3b7eeac237074c566bd04278766ae03bb523c32f34581c565a19e74e54ec90c6ce0630a540787c755b4c4b4e 170 | languageName: node 171 | linkType: hard 172 | 173 | "mkdirp@npm:^1.0.3": 174 | version: 1.0.4 175 | resolution: "mkdirp@npm:1.0.4" 176 | bin: 177 | mkdirp: bin/cmd.js 178 | checksum: 1aa3a6a2d7514f094a91329ec09994f5d32d2955a4985ecbb3d86f2aaeafc4aa11521f98d606144c1d49cd9835004d9a73342709b8c692c92e59eacf37412468 179 | languageName: node 180 | linkType: hard 181 | 182 | "once@npm:^1.3.0": 183 | version: 1.4.0 184 | resolution: "once@npm:1.4.0" 185 | dependencies: 186 | wrappy: 1 187 | checksum: 57afc246536cf6494437f982b26475f22bee860f8b77ce8eb1543f42a8bffe04b2c66ddfea9a16cb25ccb80943f8ee4fc639367ef97b7a6a4f2672eb573963f5 188 | languageName: node 189 | linkType: hard 190 | 191 | "path-is-absolute@npm:^1.0.0": 192 | version: 1.0.1 193 | resolution: "path-is-absolute@npm:1.0.1" 194 | checksum: 907e1e3e6ac0aef6e65adffd75b3892191d76a5b94c5cf26b43667c4240531d11872ca6979c209b2e5e1609f7f579d02f64ba9936b48bb59d36cc529f0d965ed 195 | languageName: node 196 | linkType: hard 197 | 198 | "prettier@npm:^2.3.1": 199 | version: 2.3.1 200 | resolution: "prettier@npm:2.3.1" 201 | bin: 202 | prettier: bin-prettier.js 203 | checksum: 9b4a695b87ce5f510fc20feec01cce7371f0fa0b92ffe79d543f6be52e2004c532861629de4d7ab1c577e1f649dce3cfccd62cb2ca6526b1da8d9c63eb84bf36 204 | languageName: node 205 | linkType: hard 206 | 207 | "rimraf@npm:^3.0.2": 208 | version: 3.0.2 209 | resolution: "rimraf@npm:3.0.2" 210 | dependencies: 211 | glob: ^7.1.3 212 | bin: 213 | rimraf: bin.js 214 | checksum: f0de3e445581e64a8a077af476cc30708e659f5779ec2ca2a161556d0792aa318a685923798ae22055b4ecd02b9aff444ef619578f7af53cf8e0e248031e3dee 215 | languageName: node 216 | linkType: hard 217 | 218 | "tar@npm:^6.0.2": 219 | version: 6.1.0 220 | resolution: "tar@npm:6.1.0" 221 | dependencies: 222 | chownr: ^2.0.0 223 | fs-minipass: ^2.0.0 224 | minipass: ^3.0.0 225 | minizlib: ^2.1.1 226 | mkdirp: ^1.0.3 227 | yallist: ^4.0.0 228 | checksum: d1d988eceb1ad2ecfaaf6fc5ecfe0c46fa005d04fe4c283355ccc52d3ffb4b6bf459a62f9ac7e36fd35251ab020399bdf527ab48b968120e06b4f61906a87d62 229 | languageName: node 230 | linkType: hard 231 | 232 | "wrappy@npm:1": 233 | version: 1.0.2 234 | resolution: "wrappy@npm:1.0.2" 235 | checksum: 519fcda0fcdf0c16327be2de9d98646742307bc830277e8868529fcf7566f2b330a6453c233e0cdcb767d5838dd61a90984a02ecc983bcddebea5ad0833bbf98 236 | languageName: node 237 | linkType: hard 238 | 239 | "yallist@npm:^4.0.0": 240 | version: 4.0.0 241 | resolution: "yallist@npm:4.0.0" 242 | checksum: a2960ef879af6ee67a76cae29bac9d8bffeb6e9e366c217dbd21464e7fce071933705544724f47e90ba5209cf9c83c17d5582dd04415d86747a826b2a231efb8 243 | languageName: node 244 | linkType: hard 245 | --------------------------------------------------------------------------------