mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -05:00
558fcafc71
* fix: format code prettier, enable ci * chore: add trivago import prettier pluggin
58 lines
1.3 KiB
JavaScript
58 lines
1.3 KiB
JavaScript
/* eslint-disable max-len */
|
|
// this is how a Babel.js transpiled plugin looks like
|
|
|
|
'use strict';
|
|
|
|
Object.defineProperty(exports, '__esModule', {
|
|
value: true,
|
|
});
|
|
|
|
let _createClass = (function () {
|
|
function defineProperties(target, props) {
|
|
for (let i = 0; i < props.length; i++) {
|
|
let descriptor = props[i];
|
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
descriptor.configurable = true;
|
|
if ('value' in descriptor) {
|
|
descriptor.writable = true;
|
|
}
|
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
}
|
|
}
|
|
return function (Constructor, protoProps, staticProps) {
|
|
if (protoProps) {
|
|
defineProperties(Constructor.prototype, protoProps);
|
|
}
|
|
if (staticProps) {
|
|
defineProperties(Constructor, staticProps);
|
|
}
|
|
return Constructor;
|
|
};
|
|
})();
|
|
|
|
function _classCallCheck(instance, Constructor) {
|
|
if (!(instance instanceof Constructor)) {
|
|
throw new TypeError('Cannot call a class as a function');
|
|
}
|
|
}
|
|
|
|
let Dummy = (function () {
|
|
function Dummy(config, logger) {
|
|
_classCallCheck(this, Dummy);
|
|
|
|
this.config = config;
|
|
this.logger = logger;
|
|
this.data = [];
|
|
}
|
|
|
|
_createClass(Dummy, [
|
|
{
|
|
key: 'getPackageStorage',
|
|
value: function getPackageStorage() {},
|
|
},
|
|
]);
|
|
|
|
return Dummy;
|
|
})();
|
|
|
|
exports.default = Dummy;
|