@verdaccio/types 12.0.0-next.1 → 12.0.0-next.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 12.0.0-next.2
4
+
5
+ ### Minor Changes
6
+
7
+ - f047cc8: refactor: auth with legacy sign support
8
+
3
9
  ## 12.0.0-next.1
4
10
 
5
11
  ### Major Changes
@@ -211,12 +217,12 @@
211
217
  - 8f43bf17d: feat: node api new structure based on promise
212
218
 
213
219
  ```js
214
- import { runServer } from '@verdaccio/node-api';
220
+ import { runServer } from "@verdaccio/node-api";
215
221
  // or
216
- import { runServer } from 'verdaccio';
222
+ import { runServer } from "verdaccio";
217
223
 
218
224
  const app = await runServer(); // default configuration
219
- const app = await runServer('./config/config.yaml');
225
+ const app = await runServer("./config/config.yaml");
220
226
  const app = await runServer({ configuration });
221
227
  app.listen(4000, (event) => {
222
228
  // do something
@@ -808,14 +814,14 @@
808
814
  - 5c5057fc: feat: node api new structure based on promise
809
815
 
810
816
  ```js
811
- import { runServer } from '@verdaccio/node-api';
817
+ import { runServer } from "@verdaccio/node-api";
812
818
  // or
813
- import { runServer } from 'verdaccio';
819
+ import { runServer } from "verdaccio";
814
820
 
815
821
  const app = await runServer(); // default configuration
816
- const app = await runServer('./config/config.yaml');
822
+ const app = await runServer("./config/config.yaml");
817
823
  const app = await runServer({ configuration });
818
- app.listen(4000, event => {
824
+ app.listen(4000, (event) => {
819
825
  // do something
820
826
  });
821
827
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdaccio/types",
3
- "version": "12.0.0-next.1",
3
+ "version": "12.0.0-next.2",
4
4
  "description": "verdaccio types definitions",
5
5
  "keywords": [
6
6
  "private",
@@ -296,7 +296,7 @@ export interface Config extends Omit<ConfigYaml, 'packages' | 'security' | 'conf
296
296
  // security object defaults is added by the config file but optional in the yaml file
297
297
  security: Security;
298
298
  // @deprecated (pending adding the replacement)
299
- checkSecretKey(token: string): string;
299
+ checkSecretKey(token: string | void): string;
300
300
  getMatchedPackagesSpec(storage: string): PackageAccess | void;
301
301
  // TODO: verify how to handle this in the future
302
302
  [key: string]: any;
package/src/manifest.ts CHANGED
@@ -3,7 +3,7 @@ export interface PackageAccess {
3
3
  publish?: string[];
4
4
  proxy?: string[];
5
5
  access?: string[];
6
- unpublish: string[];
6
+ unpublish?: string[];
7
7
  }
8
8
 
9
9
  export interface PackageList {