ddd-es-node
Advanced tools
Comparing version 0.0.3 to 0.0.4
"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 |
@@ -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
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
81312
43
1614