proto-expand
Advanced tools
Comparing version 1.1.2 to 1.1.4
@@ -49,6 +49,7 @@ type Value = number | string | null | boolean; | ||
*/ | ||
declare const createAssignment: (protocol: string, payload: Payload, username?: string) => { | ||
declare const createAssignment: (protocol: string, payload: Payload, username?: string, when?: Date) => { | ||
Who: { | ||
username: string; | ||
}[]; | ||
When: number; | ||
Status: { | ||
@@ -55,0 +56,0 @@ Protocolo: { |
@@ -177,3 +177,3 @@ var __defProp = Object.defineProperty; | ||
}; | ||
var createAssignment = (protocol, payload, username) => { | ||
var createAssignment = (protocol, payload, username, when = /* @__PURE__ */ new Date()) => { | ||
const expandedValues = {}; | ||
@@ -186,2 +186,3 @@ let fp = flattenPayload(payload); | ||
Who: [{ username }], | ||
When: when.getTime(), | ||
Status: __spreadValues({ | ||
@@ -188,0 +189,0 @@ Protocolo: { |
{ | ||
"name": "proto-expand", | ||
"version": "1.1.2", | ||
"version": "1.1.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -74,5 +74,5 @@ # Proto 'planilla' expander | ||
// Parse a Protocol dedinition (This assume a big string as defined in a proto file today) | ||
// Parse a Protocol definition (This assume a big string as defined in a proto file today) | ||
const activities: Array<Activity> = parseProtoString("A proto file loaded in an string") | ||
const activities: Array<Activity> = parseProtoString("A proto file loaded in a string") | ||
@@ -86,2 +86,2 @@ // Expand the variables | ||
const bigString = exportToString(expandedActivities) | ||
``` | ||
``` |
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
47967
486
86