@verdaccio/web 8.1.0-next-8.12 → 8.1.0-next-8.13

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,46 +0,0 @@
1
- auth:
2
- auth-memory:
3
- users:
4
- test:
5
- name: test
6
- password: test
7
-
8
- web:
9
- title: verdaccio web
10
- login: true
11
- scope: '@scope'
12
- pkgManagers:
13
- - pnpm
14
- - yarn
15
- showInfo: true
16
- showSettings: true
17
- showSearch: true
18
- showFooter: true
19
- showThemeSwitch: true
20
- showDownloadTarball: true
21
- showRaw: true
22
- primary_color: '#ffffff'
23
- logo: 'http://logo.org/logo.png'
24
- flags:
25
- - something: false
26
-
27
- url_prefix: /prefix
28
-
29
- publish:
30
- allow_offline: false
31
-
32
- uplinks:
33
-
34
- log: { type: stdout, format: pretty, level: trace }
35
-
36
- packages:
37
- '@*/*':
38
- access: $anonymous
39
- publish: $anonymous
40
- '**':
41
- access: $anonymous
42
- publish: $anonymous
43
- _debug: true
44
-
45
- flags:
46
- changePassword: true
package/test/helper.ts DELETED
@@ -1,26 +0,0 @@
1
- import { Application } from 'express';
2
- import path from 'path';
3
-
4
- import apiMiddleware from '@verdaccio/api';
5
- import { parseConfigFile } from '@verdaccio/config';
6
- import { setup } from '@verdaccio/logger';
7
- import { Storage } from '@verdaccio/store';
8
- import { initializeServer as initializeServerHelper } from '@verdaccio/test-helper';
9
-
10
- import routes from '../src';
11
-
12
- setup({});
13
-
14
- export const getConf = (configName: string) => {
15
- const configPath = path.join(__dirname, 'config', configName);
16
- return parseConfigFile(configPath);
17
- };
18
-
19
- // @deprecated
20
- export async function initializeServer(configName): Promise<Application> {
21
- return initializeServerHelper(
22
- getConf(configName),
23
- [apiMiddleware, { async: true, routes }],
24
- Storage
25
- );
26
- }
@@ -1 +0,0 @@
1
- export const parseHtml = (html) => require('node-html-parser').parse(html);
@@ -1,64 +0,0 @@
1
- {
2
- "main.js": "/-/static/main.6126058572f989c948b1.js",
3
- "main.css": "/-/static/main.6f2f2cccce0c813b509f.css",
4
- "main.woff2": "/-/static/fonts/roboto-latin-900italic.woff2",
5
- "main.woff": "/-/static/fonts/roboto-latin-900italic.woff",
6
- "main.svg": "/-/static/93df1ce974e744e7d98f5d842da74ba0.svg",
7
- "runtime.js": "/-/static/runtime.6126058572f989c948b1.js",
8
- "NotFound.js": "/-/static/NotFound.6126058572f989c948b1.js",
9
- "NotFound.svg": "/-/static/4743f1431b042843890a8644e89bb852.svg",
10
- "Provider.js": "/-/static/Provider.6126058572f989c948b1.js",
11
- "Version.css": "/-/static/454.97490e2b7f0dca05ddf3.css",
12
- "Home.js": "/-/static/Home.6126058572f989c948b1.js",
13
- "Home.css": "/-/static/268.97490e2b7f0dca05ddf3.css",
14
- "Versions.js": "/-/static/Versions.6126058572f989c948b1.js",
15
- "UpLinks.js": "/-/static/UpLinks.6126058572f989c948b1.js",
16
- "Dependencies.js": "/-/static/Dependencies.6126058572f989c948b1.js",
17
- "Engines.js": "/-/static/Engines.6126058572f989c948b1.js",
18
- "Engines.svg": "/-/static/737531cc93ceb77b82b1c2e074a2557a.svg",
19
- "Engines.png": "/-/static/2939f26c293bff8f35ba87194742aea8.png",
20
- "Dist.js": "/-/static/Dist.6126058572f989c948b1.js",
21
- "Install.js": "/-/static/Install.6126058572f989c948b1.js",
22
- "Install.svg": "/-/static/1f07aa4bad48cd09088966736d1ed121.svg",
23
- "Repository.js": "/-/static/Repository.6126058572f989c948b1.js",
24
- "Repository.png": "/-/static/728ff5a8e44d74cd0f2359ef0a9ec88a.png",
25
- "vendors.js": "/-/static/vendors.6126058572f989c948b1.js",
26
- "38.6126058572f989c948b1.js": "/-/static/38.6126058572f989c948b1.js",
27
- "26.6126058572f989c948b1.js": "/-/static/26.6126058572f989c948b1.js",
28
- "761.6126058572f989c948b1.js": "/-/static/761.6126058572f989c948b1.js",
29
- "4743f1431b042843890a8644e89bb852.svg": "/-/static/4743f1431b042843890a8644e89bb852.svg",
30
- "node.png": "/-/static/2939f26c293bff8f35ba87194742aea8.png",
31
- "fonts/roboto-latin-900italic.woff": "/-/static/fonts/roboto-latin-900italic.woff",
32
- "fonts/roboto-latin-300italic.woff": "/-/static/fonts/roboto-latin-300italic.woff",
33
- "fonts/roboto-latin-500italic.woff": "/-/static/fonts/roboto-latin-500italic.woff",
34
- "fonts/roboto-latin-400italic.woff": "/-/static/fonts/roboto-latin-400italic.woff",
35
- "fonts/roboto-latin-100italic.woff": "/-/static/fonts/roboto-latin-100italic.woff",
36
- "fonts/roboto-latin-700italic.woff": "/-/static/fonts/roboto-latin-700italic.woff",
37
- "fonts/roboto-latin-500.woff": "/-/static/fonts/roboto-latin-500.woff",
38
- "fonts/roboto-latin-900.woff": "/-/static/fonts/roboto-latin-900.woff",
39
- "fonts/roboto-latin-100.woff": "/-/static/fonts/roboto-latin-100.woff",
40
- "fonts/roboto-latin-700.woff": "/-/static/fonts/roboto-latin-700.woff",
41
- "fonts/roboto-latin-300.woff": "/-/static/fonts/roboto-latin-300.woff",
42
- "fonts/roboto-latin-400.woff": "/-/static/fonts/roboto-latin-400.woff",
43
- "fonts/roboto-latin-900italic.woff2": "/-/static/fonts/roboto-latin-900italic.woff2",
44
- "fonts/roboto-latin-300italic.woff2": "/-/static/fonts/roboto-latin-300italic.woff2",
45
- "fonts/roboto-latin-400italic.woff2": "/-/static/fonts/roboto-latin-400italic.woff2",
46
- "fonts/roboto-latin-500italic.woff2": "/-/static/fonts/roboto-latin-500italic.woff2",
47
- "fonts/roboto-latin-700italic.woff2": "/-/static/fonts/roboto-latin-700italic.woff2",
48
- "fonts/roboto-latin-100italic.woff2": "/-/static/fonts/roboto-latin-100italic.woff2",
49
- "fonts/roboto-latin-500.woff2": "/-/static/fonts/roboto-latin-500.woff2",
50
- "fonts/roboto-latin-700.woff2": "/-/static/fonts/roboto-latin-700.woff2",
51
- "fonts/roboto-latin-100.woff2": "/-/static/fonts/roboto-latin-100.woff2",
52
- "fonts/roboto-latin-300.woff2": "/-/static/fonts/roboto-latin-300.woff2",
53
- "fonts/roboto-latin-400.woff2": "/-/static/fonts/roboto-latin-400.woff2",
54
- "fonts/roboto-latin-900.woff2": "/-/static/fonts/roboto-latin-900.woff2",
55
- "favicon.ico": "/-/static/favicon.ico",
56
- "git.png": "/-/static/728ff5a8e44d74cd0f2359ef0a9ec88a.png",
57
- "logo.svg": "/-/static/93df1ce974e744e7d98f5d842da74ba0.svg",
58
- "pnpm.svg": "/-/static/81ca2d852b9bc86713fe993bf5c7104c.svg",
59
- "yarn.svg": "/-/static/1f07aa4bad48cd09088966736d1ed121.svg",
60
- "logo-black-and-white.svg": "/-/static/983328eca26f265748c004651ca0e6c8.svg",
61
- "npm.svg": "/-/static/737531cc93ceb77b82b1c2e074a2557a.svg",
62
- "index.html": "/-/static/index.html",
63
- "package.svg": "/-/static/4743f1431b042843890a8644e89bb852.svg"
64
- }
@@ -1,12 +0,0 @@
1
- = Hello, AsciiDoc!
2
- Doc Writer <doc@example.com>
3
-
4
- An introduction to http://asciidoc.org[AsciiDoc].
5
-
6
- == First Section
7
-
8
- * item 1
9
- * item 2
10
-
11
- [source,ruby]
12
- puts "Hello, World!"
@@ -1,157 +0,0 @@
1
- {
2
- "objects": [
3
- {
4
- "package": {
5
- "name": "verdaccio",
6
- "scope": "unscoped",
7
- "version": "5.1.2",
8
- "description": "A lightweight private npm proxy registry",
9
- "keywords": [
10
- "private",
11
- "package",
12
- "repository",
13
- "registry",
14
- "enterprise",
15
- "modules",
16
- "proxy",
17
- "server",
18
- "verdaccio"
19
- ],
20
- "date": "2021-07-14T18:26:48.823Z",
21
- "links": {
22
- "npm": "https://www.npmjs.com/package/verdaccio",
23
- "homepage": "https://verdaccio.org",
24
- "repository": "https://github.com/verdaccio/verdaccio",
25
- "bugs": "https://github.com/verdaccio/verdaccio/issues"
26
- },
27
- "author": {
28
- "name": "Verdaccio Maintainers",
29
- "email": "verdaccio.npm@gmail.com",
30
- "username": "verdaccio.npm"
31
- },
32
- "publisher": { "username": "verdaccio.npm", "email": "verdaccio.npm@gmail.com" },
33
- "maintainers": [
34
- { "username": "jotadeveloper", "email": "juanpicado19@gmail.com" },
35
- { "username": "ayusharma", "email": "ayush.aceit@gmail.com" },
36
- { "username": "trentearl", "email": "trent@trentearl.com" },
37
- { "username": "jmwilkinson", "email": "J.Wilkinson@f5.com" },
38
- { "username": "sergiohgz", "email": "sergio@sergiohgz.eu" },
39
- { "username": "verdaccio.npm", "email": "verdaccio.npm@gmail.com" }
40
- ]
41
- },
42
- "score": {
43
- "final": 0.38839042352668346,
44
- "detail": {
45
- "quality": 0.6389690936404147,
46
- "popularity": 0.22866579647969262,
47
- "maintenance": 0.3333333333333333
48
- }
49
- },
50
- "searchScore": 100000.375
51
- },
52
- {
53
- "package": {
54
- "name": "verdaccio-bitbucket",
55
- "scope": "unscoped",
56
- "version": "3.0.1",
57
- "description": "Verdaccio module to authenticate users via Bitbucket",
58
- "keywords": [
59
- "sinopia",
60
- "verdaccio",
61
- "bitbucket",
62
- "atlassian",
63
- "auth",
64
- "node",
65
- "nodejs",
66
- "js",
67
- "javascript"
68
- ],
69
- "date": "2020-11-17T18:31:50.893Z",
70
- "links": { "npm": "https://www.npmjs.com/package/verdaccio-bitbucket" },
71
- "author": {
72
- "name": "Idan Gozlan",
73
- "email": "idangozlan@gmail.com",
74
- "username": "idangozlan"
75
- },
76
- "publisher": { "username": "idangozlan", "email": "idangozlan@gmail.com" },
77
- "maintainers": [{ "username": "idangozlan", "email": "idangozlan@gmail.com" }]
78
- },
79
- "score": {
80
- "final": 0.3676150990565089,
81
- "detail": {
82
- "quality": 0.9333033508158308,
83
- "popularity": 0.005251300076726234,
84
- "maintenance": 0.2451032536711585
85
- }
86
- },
87
- "searchScore": 0.00029462433
88
- },
89
- {
90
- "package": {
91
- "name": "verdaccio-badger",
92
- "scope": "unscoped",
93
- "version": "1.0.0",
94
- "description": "verdaccio middleware plugin to serve svg badges",
95
- "keywords": ["verdaccio", "plugin", "middleware", "badge", "badges"],
96
- "date": "2020-08-02T18:08:10.321Z",
97
- "links": {
98
- "npm": "https://www.npmjs.com/package/verdaccio-badger",
99
- "homepage": "https://github.com/PaddeK/verdaccio-badger",
100
- "repository": "https://github.com/PaddeK/verdaccio-badger",
101
- "bugs": "https://github.com/PaddeK/verdaccio-badger/issues"
102
- },
103
- "author": { "name": "Patrick Klös", "email": "pkloes@web.de", "username": "paddek" },
104
- "publisher": { "username": "paddek", "email": "pkloes@web.de" },
105
- "maintainers": [{ "username": "paddek", "email": "pkloes@web.de" }]
106
- },
107
- "score": {
108
- "final": 0.3595405976501428,
109
- "detail": {
110
- "quality": 0.920245406776651,
111
- "popularity": 0.0027140305161327217,
112
- "maintenance": 0.23576304267571743
113
- }
114
- },
115
- "searchScore": 0.00022687363
116
- },
117
- {
118
- "package": {
119
- "name": "@verdaccio/streams",
120
- "scope": "verdaccio",
121
- "version": "10.0.0",
122
- "description": "Stream extension for Verdaccio",
123
- "keywords": ["verdaccio", "streams"],
124
- "date": "2021-03-29T13:01:49.263Z",
125
- "links": {
126
- "npm": "https://www.npmjs.com/package/%40verdaccio%2Fstreams",
127
- "homepage": "https://verdaccio.org",
128
- "repository": "https://github.com/verdaccio/monorepo",
129
- "bugs": "https://github.com/verdaccio/monorepo/issues"
130
- },
131
- "author": {
132
- "name": "Juan Picado",
133
- "email": "juanpicado19@gmail.com",
134
- "username": "jotadeveloper"
135
- },
136
- "publisher": { "username": "verdaccio.npm", "email": "verdaccio.npm@gmail.com" },
137
- "maintainers": [
138
- { "username": "sergiohgz", "email": "sergio@sergiohgz.eu" },
139
- { "username": "verdaccio.npm", "email": "verdaccio.npm@gmail.com" },
140
- { "username": "jotadeveloper", "email": "juanpicado19@gmail.com" },
141
- { "username": "ayusharma", "email": "ayush.aceit@gmail.com" }
142
- ]
143
- },
144
- "score": {
145
- "final": 0.34805712275547446,
146
- "detail": {
147
- "quality": 0.6324693223008875,
148
- "popularity": 0.11950424927689082,
149
- "maintenance": 0.3328281109094184
150
- }
151
- },
152
- "searchScore": 0.00015023774
153
- }
154
- ],
155
- "total": 218,
156
- "time": "Sun Jul 25 2021 14:11:11 GMT+0000 (Coordinated Universal Time)"
157
- }
@@ -1,3 +0,0 @@
1
- {
2
- main: '';
3
- }
@@ -1,3 +0,0 @@
1
- {
2
- runtime: '';
3
- }
@@ -1,3 +0,0 @@
1
- {
2
- vendors: '';
3
- }
@@ -1,46 +0,0 @@
1
- import { describe, expect, test } from 'vitest';
2
-
3
- import { sortByName } from '../src/web-utils';
4
-
5
- describe('Utilities', () => {
6
- describe('Sort packages', () => {
7
- const packages = [
8
- {
9
- name: 'ghc',
10
- },
11
- {
12
- name: 'abc',
13
- },
14
- {
15
- name: 'zxy',
16
- },
17
- ];
18
- test('should order ascending', () => {
19
- expect(sortByName(packages)).toEqual([
20
- {
21
- name: 'abc',
22
- },
23
- {
24
- name: 'ghc',
25
- },
26
- {
27
- name: 'zxy',
28
- },
29
- ]);
30
- });
31
-
32
- test('should order descending', () => {
33
- expect(sortByName(packages, false)).toEqual([
34
- {
35
- name: 'zxy',
36
- },
37
- {
38
- name: 'ghc',
39
- },
40
- {
41
- name: 'abc',
42
- },
43
- ]);
44
- });
45
- });
46
- });
@@ -1,9 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.base.json",
3
- "compilerOptions": {
4
- "rootDir": "./src",
5
- "outDir": "./build"
6
- },
7
- "include": ["src/**/*.ts", "types/*.d.ts"],
8
- "exclude": ["src/**/*.test.ts"]
9
- }
package/tsconfig.json DELETED
@@ -1,50 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.reference.json",
3
- "compilerOptions": {
4
- "rootDir": "./src",
5
- "outDir": "./build"
6
- },
7
- "include": ["src/**/*", "types/*.d.ts"],
8
- "exclude": ["src/**/*.test.ts"],
9
- "references": [
10
- {
11
- "path": "../auth"
12
- },
13
- {
14
- "path": "../config"
15
- },
16
- {
17
- "path": "../core/tarball"
18
- },
19
- {
20
- "path": "../core/url"
21
- },
22
- {
23
- "path": "../loaders"
24
- },
25
- {
26
- "path": "../api"
27
- },
28
- {
29
- "path": "../logger/logger"
30
- },
31
- {
32
- "path": "../middleware"
33
- },
34
- {
35
- "path": "../plugins/auth-memory"
36
- },
37
- {
38
- "path": "../plugins/memory"
39
- },
40
- {
41
- "path": "../store"
42
- },
43
- {
44
- "path": "../tools/helpers"
45
- },
46
- {
47
- "path": "../utils"
48
- }
49
- ]
50
- }
package/types/custom.d.ts DELETED
@@ -1,10 +0,0 @@
1
- import { Logger, RemoteUser } from '@verdaccio/types';
2
-
3
- declare global {
4
- namespace Express {
5
- export interface Request {
6
- remote_user: RemoteUser;
7
- log: Logger;
8
- }
9
- }
10
- }