@vercel/config 0.0.17 → 0.0.18
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/dist/router.d.ts +0 -6
- package/dist/router.js +0 -10
- package/package.json +4 -4
package/dist/router.d.ts
CHANGED
|
@@ -544,12 +544,6 @@ export declare class Router {
|
|
|
544
544
|
* Returns both the proxy and a set of accessed environment variable names.
|
|
545
545
|
*/
|
|
546
546
|
private createEnvProxy;
|
|
547
|
-
/**
|
|
548
|
-
* @deprecated No longer used after refactor to return schema objects directly
|
|
549
|
-
* Internal helper to convert TransformOptions to Transform array
|
|
550
|
-
* @param options Transform options to convert
|
|
551
|
-
* @param trackedEnvVars Optional set of environment variables that were accessed via the env proxy
|
|
552
|
-
*/
|
|
553
547
|
/**
|
|
554
548
|
* Creates a rewrite rule. Returns either a Rewrite object (simple case) or Route with transforms.
|
|
555
549
|
*
|
package/dist/router.js
CHANGED
|
@@ -111,14 +111,6 @@ class Router {
|
|
|
111
111
|
});
|
|
112
112
|
return { proxy, accessedVars };
|
|
113
113
|
}
|
|
114
|
-
// Deprecated: extractEnvVars method no longer needed after refactor
|
|
115
|
-
/**
|
|
116
|
-
* @deprecated No longer used after refactor to return schema objects directly
|
|
117
|
-
* Internal helper to convert TransformOptions to Transform array
|
|
118
|
-
* @param options Transform options to convert
|
|
119
|
-
* @param trackedEnvVars Optional set of environment variables that were accessed via the env proxy
|
|
120
|
-
*/
|
|
121
|
-
// Deprecated: transformOptionsToTransforms method removed after refactor
|
|
122
114
|
/**
|
|
123
115
|
* Creates a rewrite rule. Returns either a Rewrite object (simple case) or Route with transforms.
|
|
124
116
|
*
|
|
@@ -134,7 +126,6 @@ class Router {
|
|
|
134
126
|
*/
|
|
135
127
|
rewrite(source, destination, optionsOrCallback) {
|
|
136
128
|
this.validateSourcePattern(source);
|
|
137
|
-
(0, validation_1.validateCaptureGroupReferences)(source, destination);
|
|
138
129
|
let options;
|
|
139
130
|
// Handle callback syntax
|
|
140
131
|
if (typeof optionsOrCallback === 'function') {
|
|
@@ -226,7 +217,6 @@ class Router {
|
|
|
226
217
|
*/
|
|
227
218
|
redirect(source, destination, optionsOrCallback) {
|
|
228
219
|
this.validateSourcePattern(source);
|
|
229
|
-
(0, validation_1.validateCaptureGroupReferences)(source, destination);
|
|
230
220
|
let options;
|
|
231
221
|
// Handle callback syntax
|
|
232
222
|
if (typeof optionsOrCallback === 'function') {
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/config",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "A TypeScript SDK for programmatically
|
|
3
|
+
"version": "0.0.18",
|
|
4
|
+
"description": "A TypeScript SDK for programmatically configuring Vercel projects",
|
|
5
5
|
"bugs": {
|
|
6
|
-
"url": "https://github.com/vercel/
|
|
6
|
+
"url": "https://github.com/vercel/config/issues"
|
|
7
7
|
},
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "https://github.com/vercel/
|
|
10
|
+
"url": "https://github.com/vercel/config"
|
|
11
11
|
},
|
|
12
12
|
"author": "Vercel",
|
|
13
13
|
"license": "MIT",
|