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

ddd-es-node

Package Overview
Dependencies
Maintainers
1
Versions
211
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ddd-es-node - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

dist/src/core/clock.d.ts

8

dist/src/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var entity_1 = require("./core/entity");
exports.Entity = entity_1.Entity;
exports.EntityEvent = entity_1.EntityEvent;
var es_1 = require("./runtime/es");
exports.eventBus = es_1.eventBus;
exports.entityRepository = es_1.entityRepository;
exports.eventStore = es_1.eventStore;
//# sourceMappingURL=index.js.map

4

dist/src/runtime/es.js

@@ -6,3 +6,3 @@ "use strict";

const events = require("events");
const type_loader_1 = require("./type_loader");
const type_deserializer_1 = require("./type_deserializer");
class LocalEventBusSubscription {

@@ -49,3 +49,3 @@ constructor(emitter, listener) {

if (USE_DYNAMO_DB) {
type_loader_1.resolveInstanceFromJson(event.payload)
type_deserializer_1.resolveInstanceFromJson(event.payload)
.then((resolved) => {

@@ -52,0 +52,0 @@ resolve({

{
"name": "ddd-es-node",
"version": "0.0.3",
"version": "0.0.4",
"description": "ddd-es-node",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"engineStrict": true,

@@ -13,3 +15,3 @@ "engines": {

"watch": "tsc -w -p tsconfig.release.json",
"lint": "eslint '**/*.js' && tslint -t stylish --type-check --exclude '**/*.js' --project 'tsconfig.json'",
"lint": "tslint -t stylish --type-check --exclude '**/*.js' --project 'tsconfig.json'",
"pretest": "npm run lint",

@@ -41,5 +43,5 @@ "test": "npm run test-only",

"tsutils": "~2.7.1",
"typescript": "~2.4.2"
"typescript": "~2.5.2"
},
"license": "MIT"
}

@@ -14,6 +14,6 @@ # ddd-es-node

```javascript
import { Entity } from 'ddd-es-node/dist/src/core/entity';
import { Entity } from 'ddd-es-node';
import { OrderCancelledEvent } from './events';
class Order extends ddd.Entity {
class Order extends Entity {
constructor(id) {

@@ -20,0 +20,0 @@ super(id, Entity.CONFIG((self, event) => {

import {
resolveInstanceFromJson
} from '../../src/runtime/type_loader';
} from '../../src/runtime/type_deserializer';
import {

@@ -5,0 +5,0 @@ EntityEvent

@@ -11,3 +11,3 @@ import {

import * as events from 'events';
import { resolveInstanceFromJson } from './type_loader';
import { resolveInstanceFromJson } from './type_deserializer';

@@ -14,0 +14,0 @@ module EventStoreLib {

@@ -8,3 +8,3 @@ {

"jsx": "preserve",
"allowJs": true,
"allowJs": false,
"importHelpers": true,

@@ -11,0 +11,0 @@ "alwaysStrict": true,

{
"extends": "./tsconfig.json",
"compilerOptions": {
"declaration": false,
"declaration": true,
"rootDir": ".",

@@ -6,0 +6,0 @@ "outDir": "dist",

Sorry, the diff of this file is not supported yet

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