@verdaccio/auth 8.0.0-next-8.23 → 8.0.0-next-8.25

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/build/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { NextFunction, Request, Response } from 'express';
1
+ import type { NextFunction, Request, Response } from 'express';
2
2
  import { VerdaccioError } from '@verdaccio/core';
3
3
  import { AuthPackageAllow, JWTSignOptions, Logger, RemoteUser } from '@verdaccio/types';
4
4
  export interface AESPayload {
package/build/types.js CHANGED
@@ -3,11 +3,4 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "NextFunction", {
7
- enumerable: true,
8
- get: function () {
9
- return _express.NextFunction;
10
- }
11
- });
12
- var _express = require("express");
13
6
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["_express","require"],"sources":["../src/types.ts"],"sourcesContent":["import { NextFunction, Request, Response } from 'express';\n\nimport { VerdaccioError } from '@verdaccio/core';\nimport { AuthPackageAllow, JWTSignOptions, Logger, RemoteUser } from '@verdaccio/types';\n\nexport interface AESPayload {\n user: string;\n password: string;\n}\n\nexport type BasicPayload = AESPayload | void;\nexport type AuthMiddlewarePayload = RemoteUser | BasicPayload;\n\nexport interface AuthTokenHeader {\n scheme: string;\n token: string;\n}\nexport type AllowActionCallbackResponse = boolean | undefined;\nexport type AllowActionCallback = (\n error: VerdaccioError | null,\n allowed?: AllowActionCallbackResponse\n) => void;\n\nexport type AllowAction = (\n user: RemoteUser,\n pkg: AuthPackageAllow,\n callback: AllowActionCallback\n) => void;\n\nexport interface TokenEncryption {\n jwtEncrypt(user: RemoteUser, signOptions: JWTSignOptions): Promise<string>;\n aesEncrypt(buf: string): string | void;\n}\n\nexport type ActionsAllowed = 'publish' | 'unpublish' | 'access';\n\n// remove\nexport interface IAuthMiddleware {\n apiJWTmiddleware(): $NextFunctionVer;\n webUIJWTmiddleware(): $NextFunctionVer;\n}\n\nexport type $RequestExtend = Request & { remote_user?: any; log: Logger };\nexport type $ResponseExtend = Response & { cookies?: any };\nexport type $NextFunctionVer = NextFunction & any;\nexport { NextFunction };\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA","ignoreList":[]}
1
+ {"version":3,"file":"types.js","names":[],"sources":["../src/types.ts"],"sourcesContent":["import type { NextFunction, Request, Response } from 'express';\n\nimport { VerdaccioError } from '@verdaccio/core';\nimport { AuthPackageAllow, JWTSignOptions, Logger, RemoteUser } from '@verdaccio/types';\n\nexport interface AESPayload {\n user: string;\n password: string;\n}\n\nexport type BasicPayload = AESPayload | void;\nexport type AuthMiddlewarePayload = RemoteUser | BasicPayload;\n\nexport interface AuthTokenHeader {\n scheme: string;\n token: string;\n}\nexport type AllowActionCallbackResponse = boolean | undefined;\nexport type AllowActionCallback = (\n error: VerdaccioError | null,\n allowed?: AllowActionCallbackResponse\n) => void;\n\nexport type AllowAction = (\n user: RemoteUser,\n pkg: AuthPackageAllow,\n callback: AllowActionCallback\n) => void;\n\nexport interface TokenEncryption {\n jwtEncrypt(user: RemoteUser, signOptions: JWTSignOptions): Promise<string>;\n aesEncrypt(buf: string): string | void;\n}\n\nexport type ActionsAllowed = 'publish' | 'unpublish' | 'access';\n\n// remove\nexport interface IAuthMiddleware {\n apiJWTmiddleware(): $NextFunctionVer;\n webUIJWTmiddleware(): $NextFunctionVer;\n}\n\nexport type $RequestExtend = Request & { remote_user?: any; log: Logger };\nexport type $ResponseExtend = Response & { cookies?: any };\nexport type $NextFunctionVer = NextFunction & any;\nexport { NextFunction };\n"],"mappings":"","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdaccio/auth",
3
- "version": "8.0.0-next-8.23",
3
+ "version": "8.0.0-next-8.25",
4
4
  "description": "Verdaccio Authentication",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -33,20 +33,21 @@
33
33
  },
34
34
  "license": "MIT",
35
35
  "dependencies": {
36
- "@verdaccio/config": "8.0.0-next-8.23",
37
- "@verdaccio/core": "8.0.0-next-8.23",
38
- "@verdaccio/loaders": "8.0.0-next-8.13",
39
- "@verdaccio/signature": "8.0.0-next-8.15",
36
+ "@verdaccio/config": "8.0.0-next-8.25",
37
+ "@verdaccio/core": "8.0.0-next-8.25",
38
+ "@verdaccio/loaders": "8.0.0-next-8.15",
39
+ "@verdaccio/signature": "8.0.0-next-8.17",
40
40
  "debug": "4.4.3",
41
41
  "lodash": "4.17.21",
42
- "verdaccio-htpasswd": "13.0.0-next-8.23"
42
+ "verdaccio-htpasswd": "13.0.0-next-8.25"
43
43
  },
44
44
  "devDependencies": {
45
- "@verdaccio/middleware": "8.0.0-next-8.23",
45
+ "@verdaccio/middleware": "8.0.0-next-8.25",
46
46
  "@verdaccio/types": "13.0.0-next-8.8",
47
- "@verdaccio/logger": "8.0.0-next-8.23",
47
+ "@verdaccio/logger": "8.0.0-next-8.25",
48
48
  "express": "4.21.2",
49
- "supertest": "7.1.4"
49
+ "supertest": "7.1.4",
50
+ "vitest": "3.2.4"
50
51
  },
51
52
  "funding": {
52
53
  "type": "opencollective",