graphql-upload-nextjs 1.0.0 → 2.0.1
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/CODE_OF_CONDUCT.md +25 -0
- package/CONTRIBUTING.md +45 -0
- package/LICENSE +21 -21
- package/README.md +319 -364
- package/SECURITY.md +25 -0
- package/index.d.ts +37 -23
- package/index.js +280 -111
- package/package.json +78 -62
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Code of Conduct
|
|
2
|
+
|
|
3
|
+
This project operates on respect, practical engineering, and clear communication.
|
|
4
|
+
|
|
5
|
+
## Expected Behavior
|
|
6
|
+
|
|
7
|
+
* Default to patience and assume good intent.
|
|
8
|
+
* Keep discussions anchored to code, documentation, and user outcomes.
|
|
9
|
+
* Deliver feedback constructively.
|
|
10
|
+
* Respect varying experience levels and communication styles.
|
|
11
|
+
|
|
12
|
+
## Unacceptable Behavior
|
|
13
|
+
|
|
14
|
+
We maintain a strict policy against:
|
|
15
|
+
|
|
16
|
+
* Harassment, threats, or personal attacks.
|
|
17
|
+
* Discriminatory language or conduct.
|
|
18
|
+
* Publishing private information without explicit consent.
|
|
19
|
+
* Persistent disruption after a maintainer requests it to stop.
|
|
20
|
+
|
|
21
|
+
## Enforcement
|
|
22
|
+
|
|
23
|
+
Maintainers enforce these standards. We will remove comments, close issues, or permanently ban contributors who violate them.
|
|
24
|
+
|
|
25
|
+
If you encounter an issue, contact a maintainer directly through the project repository.
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Thank you for dedicating time to improve `graphql-upload-nextjs`.
|
|
4
|
+
|
|
5
|
+
## Development Setup
|
|
6
|
+
|
|
7
|
+
Initialize, build, and test the core package:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install
|
|
11
|
+
npm run build
|
|
12
|
+
npm test
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Verify the example application independently:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
cd examples/example-graphql-upload-nextjs
|
|
20
|
+
npm install
|
|
21
|
+
npm run build
|
|
22
|
+
npm run lint
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Pull Requests
|
|
27
|
+
|
|
28
|
+
We maintain strict engineering standards for incoming code:
|
|
29
|
+
|
|
30
|
+
* Keep scope tight. Maintain public API compatibility unless breaking changes are explicitly discussed in advance.
|
|
31
|
+
* Write or update tests to cover any behavioral changes.
|
|
32
|
+
* Pass the root build and test suite entirely before opening a pull request.
|
|
33
|
+
* Update the README when altering user-facing behavior, configuration options, or examples.
|
|
34
|
+
* Exclude generated tarballs, local upload outputs, and dependency directories from your commits.
|
|
35
|
+
|
|
36
|
+
## Reporting Issues
|
|
37
|
+
|
|
38
|
+
Clear, reproducible reports lead to faster fixes. When opening an issue, please include:
|
|
39
|
+
|
|
40
|
+
* The `graphql-upload-nextjs` package version.
|
|
41
|
+
* Your active Node.js and Next.js versions.
|
|
42
|
+
* A minimal reproduction repository or the exact request payload.
|
|
43
|
+
* A concise description of the expected and actual behavior.
|
|
44
|
+
|
|
45
|
+
For security vulnerabilities, please refer directly to `SECURITY.md` for proper disclosure steps.
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c)
|
|
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.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Lafitte Mehdy
|
|
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.
|