@carpasse/dapi
Advanced tools
Comparing version 1.1.1-beta.2 to 1.1.1-beta.3
@@ -1,2 +0,5 @@ | ||
import { DapiMixin } from './DapiMixin.js'; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createDapi = void 0; | ||
const DapiMixin_js_1 = require("./DapiMixin.js"); | ||
/** | ||
@@ -9,5 +12,6 @@ * Creates an Dapi facade. | ||
*/ | ||
export const createDapi = (definition, | ||
const createDapi = (definition, | ||
// eslint-disable-next-line @typescript-eslint/no-extraneous-class | ||
SuperClass = class { | ||
}) => new (DapiMixin(definition, SuperClass))(); | ||
}) => new ((0, DapiMixin_js_1.DapiMixin)(definition, SuperClass))(); | ||
exports.createDapi = createDapi; |
@@ -0,1 +1,4 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DapiMixin = void 0; | ||
/** | ||
@@ -11,3 +14,3 @@ * Mixin function that enhances a crates a DapiWrapper class with the passed definition that inherits from the passed class. | ||
*/ | ||
export function DapiMixin(definition, SuperClass) { | ||
function DapiMixin(definition, SuperClass) { | ||
const { dependencies, fns, type, name } = definition; | ||
@@ -323,1 +326,2 @@ if (!type) { | ||
} | ||
exports.DapiMixin = DapiMixin; |
@@ -0,5 +1,10 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createDapi = exports.DapiMixin = void 0; | ||
/** | ||
* @module @carpasse/dapi | ||
*/ | ||
export { DapiMixin } from './DapiMixin.js'; | ||
export { createDapi } from './createDapi.js'; | ||
var DapiMixin_js_1 = require("./DapiMixin.js"); | ||
Object.defineProperty(exports, "DapiMixin", { enumerable: true, get: function () { return DapiMixin_js_1.DapiMixin; } }); | ||
var createDapi_js_1 = require("./createDapi.js"); | ||
Object.defineProperty(exports, "createDapi", { enumerable: true, get: function () { return createDapi_js_1.createDapi; } }); |
@@ -1,1 +0,5 @@ | ||
export const assertType = () => { }; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.assertType = void 0; | ||
const assertType = () => { }; | ||
exports.assertType = assertType; |
@@ -1,1 +0,2 @@ | ||
export {}; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -1,1 +0,2 @@ | ||
export {}; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
{ | ||
"name": "@carpasse/dapi", | ||
"version": "1.1.1-beta.2", | ||
"version": "1.1.1-beta.3", | ||
"description": "Simple library to create complex systems out of pure functions", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
209346
3474