swc-plugin-minify-graphql 0.1.1 → 0.1.4
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/LICENSE-MIT +21 -0
- package/README.md +11 -0
- package/lib/swc_plugin_minify_graphql.wasm +0 -0
- package/package.json +11 -5
- package/packages/graphql-minify/LICENSE +21 -0
- /package/{LICENSE → UNLICENSE} +0 -0
package/LICENSE-MIT
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 hikiko4ern
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -121,6 +121,17 @@ While the minified code may be correct in some cases, this usage is not intended
|
|
|
121
121
|
|
|
122
122
|
- [`graphql-minify`](https://github.com/dan-lee/graphql-minify-rs): a re-implementation of [`stripIgnoredCharacters`](https://graphql-js.org/api/function/stripignoredcharacters/) from the [GraphQL.js reference implementation](https://github.com/graphql/graphql-js) in Rust
|
|
123
123
|
|
|
124
|
+
## License
|
|
125
|
+
|
|
126
|
+
Licensed under either of
|
|
127
|
+
|
|
128
|
+
- The Unlicense
|
|
129
|
+
([UNLICENSE](./UNLICENSE) or https://unlicense.org/UNLICENSE)
|
|
130
|
+
- MIT license
|
|
131
|
+
([LICENSE-MIT](./LICENSE-MIT) or http://opensource.org/licenses/MIT)
|
|
132
|
+
|
|
133
|
+
at your option.
|
|
134
|
+
|
|
124
135
|
<!-- links -->
|
|
125
136
|
|
|
126
137
|
[GraphQL]: https://graphql.org
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "swc-plugin-minify-graphql",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "GraphQL query and schema minimizer plugin for SWC",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"swc-plugin",
|
|
@@ -8,20 +8,25 @@
|
|
|
8
8
|
],
|
|
9
9
|
"main": "lib/swc_plugin_minify_graphql.wasm",
|
|
10
10
|
"devDependencies": {
|
|
11
|
+
"@biomejs/biome": "^1.9.4",
|
|
12
|
+
"@types/node": "^22.9.0",
|
|
11
13
|
"binaryen": "^119.0.0",
|
|
12
14
|
"cspell": "^8.15.4",
|
|
13
15
|
"dprint": "^0.47.4",
|
|
14
16
|
"git-cliff": "^2.6.1",
|
|
15
17
|
"lefthook": "^1.7.22",
|
|
16
|
-
"npm-run-all2": "^7.0.0"
|
|
18
|
+
"npm-run-all2": "^7.0.0",
|
|
19
|
+
"typescript": "^5.6.3"
|
|
17
20
|
},
|
|
18
21
|
"files": [
|
|
19
22
|
"README.md",
|
|
20
|
-
"
|
|
23
|
+
"UNLICENSE",
|
|
24
|
+
"LICENSE-MIT",
|
|
25
|
+
"packages/graphql-minify/LICENSE",
|
|
21
26
|
"lib/swc_plugin_minify_graphql.wasm"
|
|
22
27
|
],
|
|
23
28
|
"preferUnplugged": true,
|
|
24
|
-
"license": "Unlicense",
|
|
29
|
+
"license": "(Unlicense OR MIT)",
|
|
25
30
|
"author": "hikiko4ern",
|
|
26
31
|
"repository": {
|
|
27
32
|
"type": "git",
|
|
@@ -36,6 +41,7 @@
|
|
|
36
41
|
"version:gen-changelog": "git-cliff --bump -o",
|
|
37
42
|
"version:cargo-version": "./utils/cargo_set_version.sh",
|
|
38
43
|
"version:add-files": "git add Cargo.toml Cargo.lock CHANGELOG.md",
|
|
39
|
-
"_watch": "cargo bin cargo-watch -w src -w packages/graphql-minify -w Cargo.lock -w Cargo.toml -w rust-toolchain.toml"
|
|
44
|
+
"_watch": "cargo bin cargo-watch -w src -w packages/graphql-minify -w packages/graphql_semantic_compare -w Cargo.lock -w Cargo.toml -w rust-toolchain.toml",
|
|
45
|
+
"fuzz": "pnpm --filter=\"swc-plugin-minify-graphql-fuzz\""
|
|
40
46
|
}
|
|
41
47
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Daniel Lehr
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
/package/{LICENSE → UNLICENSE}
RENAMED
|
File without changes
|