Comparing version 0.4.12 to 0.4.14
@@ -1,5 +0,5 @@ | ||
var myProductName = "opmltojs", myVersion = "0.4.12"; | ||
var myProductName = "opmltojs", myVersion = "0.4.14"; | ||
/* The MIT License (MIT) | ||
Copyright (c) 2014-2021 Dave Winer | ||
Copyright (c) 2014-2022 Dave Winer | ||
@@ -111,14 +111,20 @@ Permission is hereby granted, free of charge, to any person obtaining a copy | ||
else { | ||
var theOutline = { | ||
opml: new Object () | ||
if (jstruct == null) { //9/20/23 by DW | ||
const message = "There was an error parsing the OPML text."; | ||
callback ({message}); | ||
} | ||
convert (jstruct.opml, theOutline.opml); | ||
addGenerator (theOutline.opml); //8/6/17 by DW | ||
if (isScalar (theOutline.opml.head)) { //8/6/17 by DW | ||
theOutline.opml.head = new Object (); | ||
else { | ||
var theOutline = { | ||
opml: new Object () | ||
} | ||
convert (jstruct.opml, theOutline.opml); | ||
addGenerator (theOutline.opml); //8/6/17 by DW | ||
if (isScalar (theOutline.opml.head)) { //8/6/17 by DW | ||
theOutline.opml.head = new Object (); | ||
} | ||
if (isScalar (theOutline.opml.body)) { //8/6/17 by DW | ||
theOutline.opml.body = new Object (); | ||
} | ||
callback (undefined, theOutline); | ||
} | ||
if (isScalar (theOutline.opml.body)) { //8/6/17 by DW | ||
theOutline.opml.body = new Object (); | ||
} | ||
callback (undefined, theOutline); | ||
} | ||
@@ -125,0 +131,0 @@ }); |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "0.4.12", | ||
"version": "0.4.14", | ||
"main": "opmltojs.js", | ||
@@ -9,0 +9,0 @@ "repository": { |
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
9466
169