@skypilot/steampress
Advanced tools
Comparing version 0.3.0-alpha to 0.3.1-alpha
@@ -1,1 +0,1 @@ | ||
export declare function duplicateProperty(obj: object, sourceProperty: string, targetProperty: string): object; | ||
export declare function duplicateProperty(sourceProperty: string, targetProperty: string, obj: object): object; |
@@ -10,3 +10,5 @@ "use strict"; | ||
* property to (giving it the value held in the source property), and return the new object. */ | ||
function duplicateProperty(obj, sourceProperty, targetProperty) { | ||
function duplicateProperty(sourceProperty, targetProperty, obj) { | ||
/* Clone the object and add the requested targed property, setting its value to that of the | ||
* source property */ | ||
const newObj = Object.assign({}, obj, { | ||
@@ -13,0 +15,0 @@ [targetProperty]: obj[sourceProperty] |
{ | ||
"name": "@skypilot/steampress", | ||
"version": "0.3.0-alpha", | ||
"version": "0.3.1-alpha", | ||
"description": "Parse, filter, and transform messy spreadsheets into clean object data", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
20935
398