Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2
{ | ||
"name": "l5x-js", | ||
"version": "1.0.0-alpha.1", | ||
"version": "1.0.0-alpha.2", | ||
"description": "A tool to help with parsing and generating Allen Bradley L5X files.", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -37,3 +37,3 @@ const fs = require("fs"); | ||
name: "Controller", | ||
attributes: { Use: "context" }, | ||
attributes: { Use: "Context" }, | ||
elements: [] | ||
@@ -165,11 +165,9 @@ } | ||
const controller = this.findOne("Controller"); | ||
/* eslint-disable indent */ | ||
switch (target.dom.name) { | ||
case "Program": | ||
controller.dom.attributes.TargetType = "Program"; | ||
this.dom.elements[0].attributes.TargetType = "Program"; | ||
break; | ||
case "Routine": | ||
controller.dom.attributes.TargetType = "Routine"; | ||
this.dom.elements[0].attributes.TargetType = "Routine"; | ||
break; | ||
@@ -184,3 +182,3 @@ default: | ||
/* eslint-enable indent */ | ||
const prog = this.findOne("Program", { Use: "Target" }); | ||
@@ -192,3 +190,3 @@ if (prog) prog.dom.attributes.Use = "Context"; | ||
controller.dom.attributes.TargetName = target.dom.attributes.Name; | ||
this.dom.elements[0].attributes.TargetName = target.dom.attributes.Name; | ||
target.dom.attributes.Use = "Target"; | ||
@@ -195,0 +193,0 @@ } |
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
36628
844