just-another-http-api 1.0.4 → 1.2.0

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/.eslintrc ADDED
@@ -0,0 +1,148 @@
1
+ {
2
+ "parserOptions": {
3
+ "ecmaVersion": 12,
4
+ "sourceType": "module",
5
+ "ecmaFeatures": {
6
+ "jsx": true
7
+ }
8
+ },
9
+ "env": {
10
+ "commonjs": true,
11
+ "node": true
12
+ },
13
+ "globals": {
14
+ "__lib": "readonly",
15
+ "__routes": "readonly",
16
+ "__base": "readonly",
17
+ "__utils": "readonly"
18
+ },
19
+ "rules": {
20
+ "max-len": [
21
+ "off",
22
+ 120
23
+ ],
24
+ "semi": [
25
+ "error",
26
+ "always"
27
+ ],
28
+ "no-underscore-dangle": 0,
29
+ "class-methods-use-this": 0,
30
+ "no-param-reassign": 0,
31
+ "no-restricted-syntax": 1,
32
+ "no-continue": 1,
33
+ "consistent-return": 1,
34
+ "guard-for-in": 1,
35
+ "import/no-commonjs": 0,
36
+ "import/no-dynamic-require": 0,
37
+ "new-cap": 1,
38
+ "no-nested-ternary": 0,
39
+ "prefer-const": "error",
40
+ "newline-before-return": "error",
41
+ "quotes": [
42
+ "error",
43
+ "single"
44
+ ],
45
+ "no-multiple-empty-lines": [
46
+ "error",
47
+ {
48
+ "max": 1
49
+ }
50
+ ],
51
+ "space-before-function-paren": [
52
+ "error",
53
+ "always"
54
+ ],
55
+ "func-call-spacing": [
56
+ "error",
57
+ "always"
58
+ ],
59
+ "block-spacing": [
60
+ "error",
61
+ "always"
62
+ ],
63
+ "space-in-parens": [
64
+ "error",
65
+ "always"
66
+ ],
67
+ "object-curly-spacing": [
68
+ "error",
69
+ "always"
70
+ ],
71
+ "no-spaced-func": 0,
72
+ "space-unary-ops": [
73
+ "error",
74
+ {
75
+ "words": true,
76
+ "nonwords": false,
77
+ "overrides": {
78
+ "new": false,
79
+ "++": false
80
+ }
81
+ }
82
+ ],
83
+ "arrow-spacing": [
84
+ "error",
85
+ {
86
+ "before": true,
87
+ "after": true
88
+ }
89
+ ],
90
+ "indent": [
91
+ "error",
92
+ 4,
93
+ {
94
+ "SwitchCase": 1
95
+ }
96
+ ],
97
+ "key-spacing": [
98
+ "error",
99
+ {
100
+ "beforeColon": false,
101
+ "afterColon": true
102
+ }
103
+ ],
104
+ "computed-property-spacing": [
105
+ "error",
106
+ "always"
107
+ ],
108
+ "array-bracket-spacing": [
109
+ "error",
110
+ "always"
111
+ ],
112
+ "comma-spacing": [
113
+ "error",
114
+ {
115
+ "before": false,
116
+ "after": true
117
+ }
118
+ ],
119
+ "brace-style": [
120
+ "error",
121
+ "stroustrup"
122
+ ],
123
+ "space-infix-ops": [
124
+ "error",
125
+ {
126
+ "int32Hint": true
127
+ }
128
+ ],
129
+ "keyword-spacing": [
130
+ "error",
131
+ {
132
+ "overrides": {
133
+ "if": {
134
+ "after": true
135
+ },
136
+ "for": {
137
+ "after": true
138
+ },
139
+ "while": {
140
+ "after": true
141
+ }
142
+ }
143
+ }
144
+ ],
145
+ "no-octal-escape": 0,
146
+ "no-octal": 0
147
+ }
148
+ }
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 Oliver Edgington
3
+ Copyright (c) 2024 Oliver Edgington
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal