@automattic/request-promise-native 2.1.1 → 2.3.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.
@@ -1,45 +0,0 @@
1
- {
2
- "name": "request-promise-core",
3
- "version": "1.1.4",
4
- "description": "Core Promise support implementation for the simplified HTTP request client 'request'.",
5
- "keywords": [
6
- "xhr",
7
- "http",
8
- "https",
9
- "promise",
10
- "request",
11
- "then",
12
- "thenable",
13
- "core"
14
- ],
15
- "main": "./lib/plumbing.js",
16
- "scripts": {
17
- "test": "mocha -R spec test/spec",
18
- "check-dependencies": "npx depcheck@1.4.7"
19
- },
20
- "repository": {
21
- "type": "git",
22
- "url": "git+https://github.com/request/promise-core.git"
23
- },
24
- "author": "Nicolai Kamenzky (https://github.com/analog-nico)",
25
- "license": "ISC",
26
- "bugs": {
27
- "url": "https://github.com/request/promise-core/issues"
28
- },
29
- "homepage": "https://github.com/request/promise-core#readme",
30
- "engines": {
31
- "node": ">=18"
32
- },
33
- "dependencies": {
34
- "lodash": "^4.17.19",
35
- "request": "npm:@cypress/request@^3.0.7"
36
- },
37
- "devDependencies": {
38
- "bluebird": "~3.4.1",
39
- "body-parser": "^1.20.3",
40
- "chai": "^4.5.0",
41
- "mocha": "^11.1.0",
42
- "node-version": "^3.0.0",
43
- "stealthy-require": "~1.0.0"
44
- }
45
- }
package/eslint.config.mjs DELETED
@@ -1,212 +0,0 @@
1
- import globals from 'globals';
2
-
3
- // https://eslint.org/docs/latest/use/configure/configuration-files#configuration-objects
4
- export default [{
5
- plugins: {},
6
-
7
- languageOptions: {
8
- globals: {
9
- ...globals.node,
10
- ...globals.mocha, // for tests
11
- Promise: false
12
- },
13
-
14
- ecmaVersion: 2020,
15
- sourceType: 'module',
16
-
17
- parserOptions: {
18
- ecmaFeatures: {}
19
- }
20
- },
21
-
22
- rules: {
23
- 'no-cond-assign': 2,
24
- 'no-console': 0,
25
- 'no-constant-condition': 2,
26
- 'no-control-regex': 2,
27
- 'no-debugger': 2,
28
- 'no-dupe-args': 2,
29
- 'no-dupe-keys': 2,
30
- 'no-duplicate-case': 2,
31
-
32
- 'no-empty': [2, {
33
- allowEmptyCatch: false
34
- }],
35
-
36
- 'no-empty-character-class': 2,
37
- 'no-ex-assign': 2,
38
- 'no-extra-boolean-cast': 2,
39
- 'no-extra-parens': [2, 'all'],
40
- 'no-extra-semi': 2,
41
- 'no-func-assign': 2,
42
- 'no-inner-declarations': [2, 'functions'],
43
- 'no-invalid-regexp': 2,
44
-
45
- 'no-irregular-whitespace': [2, {
46
- skipComments: false
47
- }],
48
-
49
- 'no-negated-in-lhs': 2,
50
- 'no-obj-calls': 2,
51
- 'no-prototype-builtins': 2,
52
- 'no-regex-spaces': 2,
53
- 'no-sparse-arrays': 2,
54
- 'no-unexpected-multiline': 2,
55
- 'no-unreachable': 2,
56
- 'no-unsafe-finally': 2,
57
- 'use-isnan': 2,
58
- 'valid-jsdoc': 0,
59
- 'valid-typeof': 2,
60
- 'accessor-pairs': 2,
61
- curly: [2, 'multi-line'],
62
- 'dot-location': [2, 'property'],
63
- eqeqeq: 2,
64
- 'no-caller': 2,
65
- 'no-empty-pattern': 0,
66
- 'no-eval': 2,
67
- 'no-extend-native': 2,
68
- 'no-extra-bind': 2,
69
- 'no-fallthrough': 2,
70
- 'no-floating-decimal': 2,
71
- 'no-implied-eval': 2,
72
- 'no-iterator': 2,
73
- 'no-labels': 2,
74
- 'no-lone-blocks': 2,
75
- 'no-magic-numbers': 0,
76
- 'no-multi-spaces': 2,
77
- 'no-multi-str': 2,
78
- 'no-native-reassign': 2,
79
- 'no-new': 2,
80
- 'no-new-func': 2,
81
- 'no-new-wrappers': 2,
82
- 'no-octal': 2,
83
- 'no-octal-escape': 2,
84
- 'no-proto': 2,
85
- 'no-redeclare': 2,
86
- 'no-return-assign': [2, 'except-parens'],
87
- 'no-self-assign': 2,
88
- 'no-self-compare': 2,
89
- 'no-sequences': 2,
90
- 'no-throw-literal': 2,
91
- 'no-unmodified-loop-condition': 2,
92
- 'no-useless-call': 2,
93
- 'no-useless-escape': 2,
94
- 'no-with': 2,
95
- 'wrap-iife': [2, 'inside'],
96
- yoda: 2,
97
- strict: [2, 'safe'],
98
- 'init-declarations': [2, 'always'],
99
- 'no-catch-shadow': 0,
100
- 'no-delete-var': 2,
101
- 'no-label-var': 2,
102
- 'no-restricted-globals': 0,
103
-
104
- 'no-shadow': [2, {
105
- builtinGlobals: false,
106
- hoist: 'all',
107
- allow: []
108
- }],
109
-
110
- 'no-shadow-restricted-names': 2,
111
-
112
- 'no-undef': [2, {
113
- typeof: true
114
- }],
115
-
116
- 'no-undef-init': 2,
117
- 'no-undefined': 0,
118
-
119
- 'no-unused-vars': [2, {
120
- vars: 'local',
121
- args: 'none',
122
- caughtErrors: 'none'
123
- }],
124
-
125
- 'no-use-before-define': [2, {
126
- functions: false,
127
- classes: true
128
- }],
129
-
130
- 'callback-return': 0,
131
- 'global-require': 0,
132
- 'handle-callback-err': [2, '^(err|error)$'],
133
- 'no-mixed-requires': 0,
134
- 'no-new-require': 2,
135
- 'no-path-concat': 2,
136
- 'no-process-env': 2,
137
- 'no-process-exit': 2,
138
- 'no-restricted-modules': 0,
139
- 'no-sync': 2,
140
- 'block-spacing': 2,
141
-
142
- 'brace-style': [2, '1tbs', {
143
- allowSingleLine: true
144
- }],
145
-
146
- camelcase: [2, {
147
- properties: 'never'
148
- }],
149
-
150
- 'comma-dangle': [2, 'never'],
151
- 'comma-spacing': 2,
152
- 'comma-style': 2,
153
- 'eol-last': 2,
154
-
155
- indent: [2, 4, {
156
- SwitchCase: 1
157
- }],
158
-
159
- 'jsx-quotes': 0,
160
- 'key-spacing': 2,
161
- 'keyword-spacing': 2,
162
- 'new-cap': 0,
163
- 'new-parens': 2,
164
- 'no-array-constructor': 2,
165
- 'no-mixed-spaces-and-tabs': 2,
166
-
167
- 'no-multiple-empty-lines': [2, {
168
- max: 2,
169
- maxBOF: 0,
170
- maxEOF: 1
171
- }],
172
-
173
- 'no-new-object': 2,
174
-
175
- 'no-plusplus': [2, {
176
- allowForLoopAfterthoughts: false
177
- }],
178
-
179
- 'no-spaced-func': 2,
180
- 'no-trailing-spaces': 2,
181
-
182
- 'no-unneeded-ternary': [2, {
183
- defaultAssignment: false
184
- }],
185
-
186
- 'no-whitespace-before-property': 2,
187
- 'one-var': 0,
188
-
189
- 'operator-linebreak': [2, 'after', {
190
- overrides: {
191
- '?': 'before',
192
- ':': 'before'
193
- }
194
- }],
195
-
196
- 'padded-blocks': 0,
197
- quotes: [2, 'single', 'avoid-escape'],
198
- semi: [2, 'always'],
199
- 'semi-spacing': 2,
200
- 'space-before-blocks': 2,
201
-
202
- 'space-before-function-paren': [2, {
203
- anonymous: 'always',
204
- named: 'never'
205
- }],
206
-
207
- 'space-in-parens': 0,
208
- 'space-infix-ops': 0,
209
- 'space-unary-ops': 2,
210
- 'spaced-comment': 0
211
- }
212
- }];