@thecolvinco/nodejs-amqplib
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -213,3 +213,3 @@ import { connect } from 'amqplib'; | ||
} = meta; | ||
const message = { | ||
return { | ||
occurred_on: Date.now(), | ||
@@ -219,3 +219,2 @@ payload, | ||
}; | ||
return JSON.stringify(message); | ||
}; | ||
@@ -232,3 +231,3 @@ | ||
}); | ||
return JSON.stringify(message); | ||
return message; | ||
}; | ||
@@ -245,3 +244,3 @@ | ||
}); | ||
return JSON.stringify(message); | ||
return message; | ||
}; | ||
@@ -248,0 +247,0 @@ |
@@ -213,3 +213,3 @@ var amqplib = require('amqplib'); | ||
} = meta; | ||
const message = { | ||
return { | ||
occurred_on: Date.now(), | ||
@@ -219,3 +219,2 @@ payload, | ||
}; | ||
return JSON.stringify(message); | ||
}; | ||
@@ -232,3 +231,3 @@ | ||
}); | ||
return JSON.stringify(message); | ||
return message; | ||
}; | ||
@@ -245,3 +244,3 @@ | ||
}); | ||
return JSON.stringify(message); | ||
return message; | ||
}; | ||
@@ -248,0 +247,0 @@ |
@@ -138,3 +138,3 @@ import { connect } from 'amqplib'; | ||
} = meta; | ||
const message = { | ||
return { | ||
occurred_on: Date.now(), | ||
@@ -144,3 +144,2 @@ payload, | ||
}; | ||
return JSON.stringify(message); | ||
}; | ||
@@ -157,3 +156,3 @@ | ||
}); | ||
return JSON.stringify(message); | ||
return message; | ||
}; | ||
@@ -170,3 +169,3 @@ | ||
}); | ||
return JSON.stringify(message); | ||
return message; | ||
}; | ||
@@ -173,0 +172,0 @@ |
@@ -216,3 +216,3 @@ (function (global, factory) { | ||
} = meta; | ||
const message = { | ||
return { | ||
occurred_on: Date.now(), | ||
@@ -222,3 +222,2 @@ payload, | ||
}; | ||
return JSON.stringify(message); | ||
}; | ||
@@ -235,3 +234,3 @@ | ||
}); | ||
return JSON.stringify(message); | ||
return message; | ||
}; | ||
@@ -248,3 +247,3 @@ | ||
}); | ||
return JSON.stringify(message); | ||
return message; | ||
}; | ||
@@ -251,0 +250,0 @@ |
@@ -1,4 +0,4 @@ | ||
import { message } from '../types'; | ||
declare const createEvent: ({ payload, meta }: message) => string; | ||
declare const createCommand: ({ payload, meta }: message) => string; | ||
import { message, messageBody } from '../types'; | ||
declare const createEvent: ({ payload, meta }: message) => messageBody; | ||
declare const createCommand: ({ payload, meta }: message) => messageBody; | ||
export { createEvent, createCommand, }; |
{ | ||
"name": "@thecolvinco/nodejs-amqplib", | ||
"description": "RabbitMQ abstraction with some utils", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"source": "src/main.ts", | ||
@@ -6,0 +6,0 @@ "main": "dist/main.umd.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
70608
875