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

@universal-packages/dynamic-api

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@universal-packages/dynamic-api - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

3

DynamicApi.d.ts

@@ -1,3 +0,2 @@

/// <reference types="node" />
import { EventEmitter } from 'stream';
import { EventEmitter } from '@universal-packages/event-emitter';
import { DebugLog, DynamicApiOptions, Dynamics } from './types';

@@ -4,0 +3,0 @@ export default class DynamicApi<D extends Record<string, any>> extends EventEmitter {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const event_emitter_1 = require("@universal-packages/event-emitter");
const module_loader_1 = require("@universal-packages/module-loader");
const stream_1 = require("stream");
class DynamicApi extends stream_1.EventEmitter {
class DynamicApi extends event_emitter_1.EventEmitter {
constructor(options) {

@@ -12,4 +12,3 @@ super();

const message = `dynamic api (${this.options.apiName || this.constructor.name || 'unnamed'}) debug mode is enabled`;
this.emit('*', { event: 'warning', payload: { message } });
this.emit('warning', { event: 'warning', payload: { message } });
this.emit('warning', { payload: { message } });
}

@@ -205,4 +204,4 @@ }

}
DynamicApi.debugLog = [];
exports.default = DynamicApi;
DynamicApi.debugLog = [];
//# sourceMappingURL=DynamicApi.js.map
{
"name": "@universal-packages/dynamic-api",
"version": "1.7.0",
"version": "1.7.1",
"description": "Dynamic decoupling-adapting system",

@@ -19,21 +19,17 @@ "author": "David De Anda <david@universal-packages.com> (https://github.com/universal-packages)",

"dependencies": {
"@universal-packages/event-emitter": "^1.1.0",
"@universal-packages/module-loader": "^1.0.1"
},
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^4.1.1",
"@types/jest": "^29.5.4",
"@types/node": "^17.0.39",
"@universal-packages/maintenance": "^1.2.2",
"jest": "^29.6.4",
"jest-circus": "^29.6.4",
"prettier": "^2.8.7",
"@trivago/prettier-plugin-sort-imports": "^4.2.0",
"@types/jest": "^29.5.5",
"@types/node": "^18.11.9",
"@universal-packages/maintenance": "^1.2.4",
"jest": "^29.7.0",
"prettier": "^3.0.3",
"ts-jest": "^29.1.1",
"typescript": "^4.7.3"
"typescript": "^5.2.2"
},
"jest": {
"testRunner": "jest-circus/runner",
"transform": {
"^.+\\.(ts|tsx)$": "ts-jest"
},
"testRegex": "(/tests/.*\\.test\\.ts?)$",
"preset": "ts-jest",
"collectCoverageFrom": [

@@ -43,6 +39,3 @@ "src/**/*.ts"

"setupFilesAfterEnv": [
"<rootDir>/tests/setupTests.ts"
],
"watchPathIgnorePatterns": [
"<rootDir>/tmp"
"<rootDir>/tests/setup.ts"
]

@@ -55,2 +48,5 @@ },

"trailingComma": "none",
"plugins": [
"@trivago/prettier-plugin-sort-imports"
],
"importOrder": [

@@ -57,0 +53,0 @@ "^[./]"

import DynamicApi from './DynamicApi';
export declare type DynamicHookPosition = 'after' | 'before';
export declare type DebugLog = DebugEntry[];
export type DynamicHookPosition = 'after' | 'before';
export type DebugLog = DebugEntry[];
export interface DynamicApiOptions {

@@ -5,0 +5,0 @@ apiName?: string;

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