New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

verdaccio-memory

Package Overview
Dependencies
Maintainers
3
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

verdaccio-memory - npm Package Compare versions

Comparing version 11.0.0-6-next.14 to 11.0.0-6-next.15

6

build/local-memory.d.ts

@@ -1,4 +0,4 @@

import { Callback, Config, IPluginStorage, Logger, PluginOptions, Token } from '@verdaccio/types';
import { Callback, IPluginStorage, Logger, PluginOptions, Token } from '@verdaccio/types';
import MemoryHandler, { DataHandler } from './memory-handler';
export declare type ConfigMemory = Config & {
export declare type ConfigMemory = {
limit?: number;

@@ -17,3 +17,3 @@ };

config: ConfigMemory;
constructor(config: ConfigMemory, options: PluginOptions<ConfigMemory>);
constructor(config: ConfigMemory, options: PluginOptions);
init(): Promise<void>;

@@ -20,0 +20,0 @@ getSecret(): Promise<string>;

# Change Log
## 11.0.0-6-next.15
### Major Changes
- 9fc2e796: feat(plugins): improve plugin loader
### Changes
- Add scope plugin support to 6.x https://github.com/verdaccio/verdaccio/pull/3227
- Avoid config collisions https://github.com/verdaccio/verdaccio/issues/928
- https://github.com/verdaccio/verdaccio/issues/1394
- `config.plugins` plugin path validations
- Updated algorithm for plugin loader.
- improved documentation (included dev)
## Features
- Add scope plugin support to 6.x https://github.com/verdaccio/verdaccio/pull/3227
- Custom prefix:
```
// config.yaml
server:
pluginPrefix: mycompany
middleware:
audit:
foo: 1
```
This configuration will look up for `mycompany-audit` instead `Verdaccio-audit`.
## Breaking Changes
### sinopia plugins
- `sinopia` fallback support is removed, but can be restored using `pluginPrefix`
### plugin filter
- method rename `filter_metadata`->`filterMetadata`
### Plugin constructor does not merge configs anymore https://github.com/verdaccio/verdaccio/issues/928
The plugin receives as first argument `config`, which represents the config of the plugin. Example:
```
// config.yaml
auth:
plugin:
foo: 1
bar: 2
export class Plugin<T> {
public constructor(config: T, options: PluginOptions) {
console.log(config);
// {foo:1, bar: 2}
}
}
```
### Patch Changes
- Updated dependencies [43f32687]
- Updated dependencies [62c24b63]
- @verdaccio/core@6.0.0-6-next.48
## 11.0.0-6-next.14

@@ -4,0 +70,0 @@

{
"name": "verdaccio-memory",
"version": "11.0.0-6-next.14",
"version": "11.0.0-6-next.15",
"description": "Storage implementation in memory",

@@ -34,3 +34,3 @@ "keywords": [

"dependencies": {
"@verdaccio/core": "6.0.0-6-next.47",
"@verdaccio/core": "6.0.0-6-next.48",
"memory-fs": "0.5.0",

@@ -41,5 +41,5 @@ "debug": "4.3.4",

"devDependencies": {
"@verdaccio/types": "11.0.0-6-next.16",
"@verdaccio/config": "6.0.0-6-next.47",
"@verdaccio/logger": "6.0.0-6-next.15"
"@verdaccio/types": "11.0.0-6-next.17",
"@verdaccio/config": "6.0.0-6-next.48",
"@verdaccio/logger": "6.0.0-6-next.16"
},

@@ -46,0 +46,0 @@ "funding": {

import buildDebug from 'debug';
import { errorUtils } from '@verdaccio/core';
import { Callback, Config, IPluginStorage, Logger, PluginOptions, Token } from '@verdaccio/types';
import { Callback, IPluginStorage, Logger, PluginOptions, Token } from '@verdaccio/types';
import MemoryHandler, { DataHandler } from './memory-handler';
export type ConfigMemory = Config & { limit?: number };
export type ConfigMemory = { limit?: number };
export interface MemoryLocalStorage {

@@ -25,3 +25,3 @@ secret: string;

public constructor(config: ConfigMemory, options: PluginOptions<ConfigMemory>) {
public constructor(config: ConfigMemory, options: PluginOptions) {
this.config = config;

@@ -28,0 +28,0 @@ this.limit = config.limit || DEFAULT_LIMIT;

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc