@verdaccio/types 10.7.1 → 10.8.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Change Log
2
2
 
3
+ ## 10.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 51a0d28: feat: aesEncrypt string instead buffer
8
+
9
+ ## 10.7.2
10
+
11
+ ### Patch Changes
12
+
13
+ - 5bdde6c: fix: add enhancedLegacySignature property to security
14
+
3
15
  ## 10.7.1
4
16
 
5
17
  ### Patch Changes
@@ -87,6 +87,7 @@ export interface APITokenOptions {
87
87
  jwt?: JWTOptions;
88
88
  }
89
89
  export interface Security {
90
+ enhancedLegacySignature?: boolean;
90
91
  web: JWTOptions;
91
92
  api: APITokenOptions;
92
93
  }
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
1
  import { Callback, HttpError, RemoteUser } from '../commons';
4
2
  import { Config } from '../configuration';
5
3
  export interface AuthPluginPackage {
@@ -14,7 +12,7 @@ export declare type AuthAccessCallback = (error: AuthError | null, access: boole
14
12
  export declare type AuthCallback = (error: AuthError | null, groups: string[] | false) => void;
15
13
  export interface IBasicAuth<T> {
16
14
  config: T & Config;
17
- aesEncrypt(buf: Buffer): Buffer;
15
+ aesEncrypt(username: string, password: string): string;
18
16
  authenticate(user: string, password: string, cb: Callback): void;
19
17
  changePassword(user: string, password: string, newPassword: string, cb: Callback): void;
20
18
  allow_access(pkg: AuthPluginPackage, user: RemoteUser, callback: Callback): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdaccio/types",
3
- "version": "10.7.1",
3
+ "version": "10.8.0",
4
4
  "description": "verdaccio types definitions",
5
5
  "keywords": [
6
6
  "verdaccio",