@webiny/plugins 0.0.0-unstable.78f581c1d2 → 0.0.0-unstable.7f63ea0744
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/Plugin.js +0 -7
- package/Plugin.js.map +1 -1
- package/PluginsContainer.js +4 -31
- package/PluginsContainer.js.map +1 -1
- package/index.js +0 -3
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/types.js +0 -1
- package/types.js.map +1 -1
package/Plugin.js
CHANGED
|
@@ -1,28 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.Plugin = void 0;
|
|
9
|
-
|
|
10
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
-
|
|
12
9
|
class Plugin {
|
|
13
10
|
constructor() {
|
|
14
11
|
(0, _defineProperty2.default)(this, "name", void 0);
|
|
15
|
-
|
|
16
12
|
if (!this.constructor.type) {
|
|
17
13
|
throw Error(`Missing "type" definition in "${this.constructor.name}"!`);
|
|
18
14
|
}
|
|
19
15
|
}
|
|
20
|
-
|
|
21
16
|
get type() {
|
|
22
17
|
return this.constructor.type;
|
|
23
18
|
}
|
|
24
|
-
|
|
25
19
|
}
|
|
26
|
-
|
|
27
20
|
exports.Plugin = Plugin;
|
|
28
21
|
(0, _defineProperty2.default)(Plugin, "type", void 0);
|
package/Plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Plugin","constructor","type","Error","name"],"sources":["Plugin.ts"],"sourcesContent":["export abstract class Plugin {\n public static readonly type: string;\n public name?: string;\n\n constructor() {\n if (!(this.constructor as typeof Plugin).type) {\n throw Error(`Missing \"type\" definition in \"${this.constructor.name}\"!`);\n }\n }\n\n get type() {\n return (this.constructor as typeof Plugin).type;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["Plugin","constructor","type","Error","name"],"sources":["Plugin.ts"],"sourcesContent":["export abstract class Plugin {\n public static readonly type: string;\n public name?: string;\n\n constructor() {\n if (!(this.constructor as typeof Plugin).type) {\n throw Error(`Missing \"type\" definition in \"${this.constructor.name}\"!`);\n }\n }\n\n get type() {\n return (this.constructor as typeof Plugin).type;\n }\n}\n"],"mappings":";;;;;;;;AAAO,MAAeA,MAAM,CAAC;EAIzBC,WAAW,GAAG;IAAA;IACV,IAAI,CAAE,IAAI,CAACA,WAAW,CAAmBC,IAAI,EAAE;MAC3C,MAAMC,KAAK,CAAE,iCAAgC,IAAI,CAACF,WAAW,CAACG,IAAK,IAAG,CAAC;IAC3E;EACJ;EAEA,IAAIF,IAAI,GAAG;IACP,OAAQ,IAAI,CAACD,WAAW,CAAmBC,IAAI;EACnD;AACJ;AAAC;AAAA,8BAbqBF,MAAM"}
|
package/PluginsContainer.js
CHANGED
|
@@ -1,58 +1,47 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.PluginsContainer = void 0;
|
|
9
|
-
|
|
10
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
-
|
|
12
9
|
var _uniqid = _interopRequireDefault(require("uniqid"));
|
|
13
|
-
|
|
14
10
|
const isOptionsObject = item => item && !Array.isArray(item) && !item.type && !item.name;
|
|
15
|
-
|
|
16
11
|
const normalizeArgs = args => {
|
|
17
|
-
let options = {};
|
|
12
|
+
let options = {};
|
|
18
13
|
|
|
14
|
+
// Check if last item in the plugins array is actually an options object.
|
|
19
15
|
if (isOptionsObject(args[args.length - 1])) {
|
|
20
16
|
[options] = args.splice(-1, 1);
|
|
21
17
|
}
|
|
22
|
-
|
|
23
18
|
return [args, options];
|
|
24
19
|
};
|
|
25
|
-
|
|
26
20
|
const assign = (plugins, options, target) => {
|
|
27
21
|
for (let i = 0; i < plugins.length; i++) {
|
|
28
22
|
const plugin = plugins[i];
|
|
29
|
-
|
|
30
23
|
if (Array.isArray(plugin)) {
|
|
31
24
|
assign(plugin, options, target);
|
|
32
25
|
continue;
|
|
33
26
|
}
|
|
34
|
-
|
|
35
27
|
let name = plugin._name || plugin.name;
|
|
36
|
-
|
|
37
28
|
if (!name) {
|
|
38
29
|
plugin.name = name = (0, _uniqid.default)(plugin.type + "-");
|
|
39
|
-
}
|
|
40
|
-
|
|
30
|
+
}
|
|
41
31
|
|
|
32
|
+
// If skip existing was set to true, and a plugin with the same name was already registered, skip registration.
|
|
42
33
|
if (!options.skipExisting || !target[name]) {
|
|
43
34
|
target[name] = plugin;
|
|
44
35
|
plugin.init && plugin.init();
|
|
45
36
|
}
|
|
46
37
|
}
|
|
47
38
|
};
|
|
48
|
-
|
|
49
39
|
class PluginsContainer {
|
|
50
40
|
constructor(...args) {
|
|
51
41
|
(0, _defineProperty2.default)(this, "plugins", {});
|
|
52
42
|
(0, _defineProperty2.default)(this, "_byTypeCache", {});
|
|
53
43
|
this.register(...args);
|
|
54
44
|
}
|
|
55
|
-
|
|
56
45
|
byName(name) {
|
|
57
46
|
if (!name) {
|
|
58
47
|
return null;
|
|
@@ -60,62 +49,46 @@ class PluginsContainer {
|
|
|
60
49
|
/**
|
|
61
50
|
* We can safely cast name as string, we know it is so.
|
|
62
51
|
*/
|
|
63
|
-
|
|
64
|
-
|
|
65
52
|
return this.plugins[name];
|
|
66
53
|
}
|
|
67
|
-
|
|
68
54
|
byType(type) {
|
|
69
55
|
if (this._byTypeCache[type]) {
|
|
70
56
|
return Array.from(this._byTypeCache[type]);
|
|
71
57
|
}
|
|
72
|
-
|
|
73
58
|
const plugins = this.findByType(type);
|
|
74
59
|
this._byTypeCache[type] = plugins;
|
|
75
60
|
return Array.from(plugins);
|
|
76
61
|
}
|
|
77
|
-
|
|
78
62
|
atLeastOneByType(type) {
|
|
79
63
|
const list = this.byType(type);
|
|
80
|
-
|
|
81
64
|
if (list.length === 0) {
|
|
82
65
|
throw new Error(`There are no plugins by type "${type}".`);
|
|
83
66
|
}
|
|
84
|
-
|
|
85
67
|
return list;
|
|
86
68
|
}
|
|
87
|
-
|
|
88
69
|
oneByType(type) {
|
|
89
70
|
const list = this.atLeastOneByType(type);
|
|
90
|
-
|
|
91
71
|
if (list.length > 1) {
|
|
92
72
|
throw new Error(`There is a requirement for plugin of type "${type}" to be only one registered.`);
|
|
93
73
|
}
|
|
94
|
-
|
|
95
74
|
return list[0];
|
|
96
75
|
}
|
|
97
|
-
|
|
98
76
|
all() {
|
|
99
77
|
return Object.values(this.plugins);
|
|
100
78
|
}
|
|
101
|
-
|
|
102
79
|
register(...args) {
|
|
103
80
|
// reset the cache when adding new plugins
|
|
104
81
|
this._byTypeCache = {};
|
|
105
82
|
const [plugins, options] = normalizeArgs(args);
|
|
106
83
|
assign(plugins, options, this.plugins);
|
|
107
84
|
}
|
|
108
|
-
|
|
109
85
|
unregister(name) {
|
|
110
86
|
// reset the cache when removing a plugin
|
|
111
87
|
this._byTypeCache = {};
|
|
112
88
|
delete this.plugins[name];
|
|
113
89
|
}
|
|
114
|
-
|
|
115
90
|
findByType(type) {
|
|
116
91
|
return Object.values(this.plugins).filter(pl => pl.type === type);
|
|
117
92
|
}
|
|
118
|
-
|
|
119
93
|
}
|
|
120
|
-
|
|
121
94
|
exports.PluginsContainer = PluginsContainer;
|
package/PluginsContainer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["isOptionsObject","item","Array","isArray","type","name","normalizeArgs","args","options","length","splice","assign","plugins","target","i","plugin","_name","uniqid","skipExisting","init","PluginsContainer","constructor","register","byName","byType","_byTypeCache","from","findByType","atLeastOneByType","list","Error","oneByType","all","Object","values","unregister","filter","pl"],"sources":["PluginsContainer.ts"],"sourcesContent":["import { Plugin, PluginCollection } from \"./types\";\nimport uniqid from \"uniqid\";\n\nconst isOptionsObject = (item?: any) => item && !Array.isArray(item) && !item.type && !item.name;\nconst normalizeArgs = (args: any[]) => {\n let options = {};\n\n // Check if last item in the plugins array is actually an options object.\n if (isOptionsObject(args[args.length - 1])) {\n [options] = args.splice(-1, 1);\n }\n\n return [args, options];\n};\n\nconst assign = (plugins: any, options: any, target: Record<string, any>): void => {\n for (let i = 0; i < plugins.length; i++) {\n const plugin = plugins[i];\n if (Array.isArray(plugin)) {\n assign(plugin, options, target);\n continue;\n }\n\n let name = plugin._name || plugin.name;\n if (!name) {\n plugin.name = name = uniqid(plugin.type + \"-\");\n }\n\n // If skip existing was set to true, and a plugin with the same name was already registered, skip registration.\n if (!options.skipExisting || !target[name]) {\n target[name] = plugin;\n plugin.init && plugin.init();\n }\n }\n};\n\nexport class PluginsContainer {\n private plugins: Record<string, Plugin> = {};\n private _byTypeCache: Record<string, Plugin[]> = {};\n\n constructor(...args: PluginCollection) {\n this.register(...args);\n }\n\n public byName<T extends Plugin>(name: T[\"name\"]): T | null {\n if (!name) {\n return null;\n }\n /**\n * We can safely cast name as string, we know it is so.\n */\n return this.plugins[name as string] as T;\n }\n\n public byType<T extends Plugin>(type: T[\"type\"]): T[] {\n if (this._byTypeCache[type]) {\n return Array.from(this._byTypeCache[type]) as T[];\n }\n const plugins = this.findByType<T>(type);\n this._byTypeCache[type] = plugins;\n return Array.from(plugins);\n }\n\n public atLeastOneByType<T extends Plugin>(type: T[\"type\"]): T[] {\n const list = this.byType<T>(type);\n if (list.length === 0) {\n throw new Error(`There are no plugins by type \"${type}\".`);\n }\n return list;\n }\n\n public oneByType<T extends Plugin>(type: T[\"type\"]): T {\n const list = this.atLeastOneByType<T>(type);\n if (list.length > 1) {\n throw new Error(\n `There is a requirement for plugin of type \"${type}\" to be only one registered.`\n );\n }\n return list[0];\n }\n\n public all<T extends Plugin>(): T[] {\n return Object.values(this.plugins) as T[];\n }\n\n public register(...args: any): void {\n // reset the cache when adding new plugins\n this._byTypeCache = {};\n const [plugins, options] = normalizeArgs(args);\n assign(plugins, options, this.plugins);\n }\n\n public unregister(name: string): void {\n // reset the cache when removing a plugin\n this._byTypeCache = {};\n delete this.plugins[name];\n }\n\n private findByType<T extends Plugin>(type: T[\"type\"]): T[] {\n return (Object.values(this.plugins) as T[]).filter(pl => pl.type === type) as T[];\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["isOptionsObject","item","Array","isArray","type","name","normalizeArgs","args","options","length","splice","assign","plugins","target","i","plugin","_name","uniqid","skipExisting","init","PluginsContainer","constructor","register","byName","byType","_byTypeCache","from","findByType","atLeastOneByType","list","Error","oneByType","all","Object","values","unregister","filter","pl"],"sources":["PluginsContainer.ts"],"sourcesContent":["import { Plugin, PluginCollection } from \"./types\";\nimport uniqid from \"uniqid\";\n\nconst isOptionsObject = (item?: any) => item && !Array.isArray(item) && !item.type && !item.name;\nconst normalizeArgs = (args: any[]) => {\n let options = {};\n\n // Check if last item in the plugins array is actually an options object.\n if (isOptionsObject(args[args.length - 1])) {\n [options] = args.splice(-1, 1);\n }\n\n return [args, options];\n};\n\nconst assign = (plugins: any, options: any, target: Record<string, any>): void => {\n for (let i = 0; i < plugins.length; i++) {\n const plugin = plugins[i];\n if (Array.isArray(plugin)) {\n assign(plugin, options, target);\n continue;\n }\n\n let name = plugin._name || plugin.name;\n if (!name) {\n plugin.name = name = uniqid(plugin.type + \"-\");\n }\n\n // If skip existing was set to true, and a plugin with the same name was already registered, skip registration.\n if (!options.skipExisting || !target[name]) {\n target[name] = plugin;\n plugin.init && plugin.init();\n }\n }\n};\n\nexport class PluginsContainer {\n private plugins: Record<string, Plugin> = {};\n private _byTypeCache: Record<string, Plugin[]> = {};\n\n constructor(...args: PluginCollection) {\n this.register(...args);\n }\n\n public byName<T extends Plugin>(name: T[\"name\"]): T | null {\n if (!name) {\n return null;\n }\n /**\n * We can safely cast name as string, we know it is so.\n */\n return this.plugins[name as string] as T;\n }\n\n public byType<T extends Plugin>(type: T[\"type\"]): T[] {\n if (this._byTypeCache[type]) {\n return Array.from(this._byTypeCache[type]) as T[];\n }\n const plugins = this.findByType<T>(type);\n this._byTypeCache[type] = plugins;\n return Array.from(plugins);\n }\n\n public atLeastOneByType<T extends Plugin>(type: T[\"type\"]): T[] {\n const list = this.byType<T>(type);\n if (list.length === 0) {\n throw new Error(`There are no plugins by type \"${type}\".`);\n }\n return list;\n }\n\n public oneByType<T extends Plugin>(type: T[\"type\"]): T {\n const list = this.atLeastOneByType<T>(type);\n if (list.length > 1) {\n throw new Error(\n `There is a requirement for plugin of type \"${type}\" to be only one registered.`\n );\n }\n return list[0];\n }\n\n public all<T extends Plugin>(): T[] {\n return Object.values(this.plugins) as T[];\n }\n\n public register(...args: any): void {\n // reset the cache when adding new plugins\n this._byTypeCache = {};\n const [plugins, options] = normalizeArgs(args);\n assign(plugins, options, this.plugins);\n }\n\n public unregister(name: string): void {\n // reset the cache when removing a plugin\n this._byTypeCache = {};\n delete this.plugins[name];\n }\n\n private findByType<T extends Plugin>(type: T[\"type\"]): T[] {\n return (Object.values(this.plugins) as T[]).filter(pl => pl.type === type) as T[];\n }\n}\n"],"mappings":";;;;;;;;AACA;AAEA,MAAMA,eAAe,GAAIC,IAAU,IAAKA,IAAI,IAAI,CAACC,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,IAAI,CAACA,IAAI,CAACG,IAAI,IAAI,CAACH,IAAI,CAACI,IAAI;AAChG,MAAMC,aAAa,GAAIC,IAAW,IAAK;EACnC,IAAIC,OAAO,GAAG,CAAC,CAAC;;EAEhB;EACA,IAAIR,eAAe,CAACO,IAAI,CAACA,IAAI,CAACE,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE;IACxC,CAACD,OAAO,CAAC,GAAGD,IAAI,CAACG,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;EA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O,IAAI,CAACb,OAAO,CAACP,IAAI,CAAC;EAC7B;EAEQsB,UAAU,CAAmBvB,IAAe,EAAO;IACvD,OAAQ6B,MAAM,CAACC,MAAM,CAAC,IAAI,CAACtB,OAAO,CAAC,CAASwB,MAAM,CAACC,EAAE,IAAIA,EAAE,CAACjC,IAAI,KAAKA,IAAI,CAAC;EAC9E;AACJ;AAAC"}
|
package/index.js
CHANGED
|
@@ -16,10 +16,7 @@ Object.defineProperty(exports, "PluginsContainer", {
|
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
exports.plugins = void 0;
|
|
19
|
-
|
|
20
19
|
var _PluginsContainer = require("./PluginsContainer");
|
|
21
|
-
|
|
22
20
|
var _Plugin = require("./Plugin");
|
|
23
|
-
|
|
24
21
|
const plugins = new _PluginsContainer.PluginsContainer();
|
|
25
22
|
exports.plugins = plugins;
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["plugins","PluginsContainer"],"sources":["index.ts"],"sourcesContent":["import { PluginsContainer } from \"./PluginsContainer\";\nimport { Plugin } from \"./Plugin\";\n\nconst plugins = new PluginsContainer();\n\nexport { Plugin, PluginsContainer, plugins };\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["plugins","PluginsContainer"],"sources":["index.ts"],"sourcesContent":["import { PluginsContainer } from \"./PluginsContainer\";\nimport { Plugin } from \"./Plugin\";\n\nconst plugins = new PluginsContainer();\n\nexport { Plugin, PluginsContainer, plugins };\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AACA;AAEA,MAAMA,OAAO,GAAG,IAAIC,kCAAgB,EAAE;AAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/plugins",
|
|
3
|
-
"version": "0.0.0-unstable.
|
|
3
|
+
"version": "0.0.0-unstable.7f63ea0744",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
],
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@babel/runtime": "7.
|
|
16
|
+
"@babel/runtime": "7.20.13",
|
|
17
17
|
"uniqid": "5.4.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@babel/cli": "^7.19.3",
|
|
21
21
|
"@babel/core": "^7.19.3",
|
|
22
22
|
"@types/uniqid": "^5.3.2",
|
|
23
|
-
"@webiny/cli": "^0.0.0-unstable.
|
|
24
|
-
"@webiny/project-utils": "^0.0.0-unstable.
|
|
23
|
+
"@webiny/cli": "^0.0.0-unstable.7f63ea0744",
|
|
24
|
+
"@webiny/project-utils": "^0.0.0-unstable.7f63ea0744",
|
|
25
25
|
"rimraf": "^3.0.2",
|
|
26
26
|
"ttypescript": "^1.5.13",
|
|
27
27
|
"typescript": "4.7.4"
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"build": "yarn webiny run build",
|
|
35
35
|
"watch": "yarn webiny run watch"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "7f63ea0744c9e31977e5dabb95538d22b4db585c"
|
|
38
38
|
}
|
package/types.js
CHANGED
package/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["export { PluginsContainer } from \"./PluginsContainer\";\n\nexport type Plugin<T = Record<string, any>> = {\n type: string;\n name?: string;\n init?: () => void;\n [key: string]: any;\n} & T;\n\nexport type PluginCollection = (Plugin | PluginCollection)[];\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["export { PluginsContainer } from \"./PluginsContainer\";\n\nexport type Plugin<T = Record<string, any>> = {\n type: string;\n name?: string;\n init?: () => void;\n [key: string]: any;\n} & T;\n\nexport type PluginCollection = (Plugin | PluginCollection)[];\n"],"mappings":";;;;;;;;;;;AAAA"}
|