Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@carpasse/dapi

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@carpasse/dapi - npm Package Compare versions

Comparing version 1.1.1-beta.2 to 1.1.1-beta.3

10

dist/esm/createDapi.js

@@ -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",

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