@lrnwebcomponents/schema-behaviors
Advanced tools
Comparing version 0.0.34 to 0.0.35
@@ -38,4 +38,9 @@ window.SchemaBehaviors = window.SchemaBehaviors || {}; | ||
}, | ||
_schemaMapChanged: function _schemaMapChanged(newValue) { | ||
if (babelHelpers.typeof(newValue) !== "undefined") { | ||
_schemaMapChanged: function _schemaMapChanged(newValue, oldValue) { | ||
if ( | ||
babelHelpers.typeof(newValue) !== | ||
("undefined" === typeof void 0 | ||
? "undefined" | ||
: babelHelpers.typeof(void 0)) | ||
) { | ||
this.schemaResourceID = this.getAttribute("resource"); | ||
@@ -42,0 +47,0 @@ if ("" == this.schemaResourceID || null == this.schemaResourceID) { |
@@ -38,3 +38,3 @@ window.SchemaBehaviors = window.SchemaBehaviors || {}; | ||
}, | ||
_schemaMapChanged: function(newValue) { | ||
_schemaMapChanged: function(newValue, oldValue) { | ||
if (typeof newValue !== typeof void 0) { | ||
@@ -41,0 +41,0 @@ this.schemaResourceID = this.getAttribute("resource"); |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "0.0.34", | ||
"version": "0.0.35", | ||
"description": "Apply schema helper behaviors to existing Polymer (Legacy) based elements", | ||
@@ -42,3 +42,3 @@ "repository": { | ||
"devDependencies": { | ||
"@lrnwebcomponents/deduping-fix": "^0.0.34", | ||
"@lrnwebcomponents/deduping-fix": "^0.0.35", | ||
"@polymer/iron-component-page": "github:PolymerElements/iron-component-page", | ||
@@ -63,3 +63,3 @@ "@polymer/iron-demo-helpers": "3.0.2", | ||
], | ||
"gitHead": "85bf1e684f0f88c1ce807c92255af222057eeaa0" | ||
"gitHead": "71dcc2b61045070a009e654226e6c0892f11a854" | ||
} |
@@ -1,1 +0,1 @@ | ||
window.SchemaBehaviors=window.SchemaBehaviors||{};window.SchemaBehaviors.Schema={properties:{schemaResourceID:{type:String,value:""},schemaMap:{type:Object,value:{prefix:{oer:"http://oerschema.org/",schema:"http://schema.org/",dc:"http://purl.org/dc/terms/",foaf:"http://xmlns.com/foaf/0.1/",cc:"http://creativecommons.org/ns#",bib:"http://bib.schema.org"}},observer:"_schemaMapChanged"}},generateResourceID:function generateResourceID(){function idPart(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return"#"+idPart()+idPart()+"-"+idPart()+"-"+idPart()+"-"+idPart()},_schemaMapChanged:function _schemaMapChanged(newValue){if(babelHelpers.typeof(newValue)!=="undefined"){this.schemaResourceID=this.getAttribute("resource");if(""==this.schemaResourceID||null==this.schemaResourceID){this.schemaResourceID=this.generateResourceID();this.setAttribute("resource",this.schemaResourceID)}var prefixes=newValue.prefix,prefix="";for(var property in prefixes){if(prefixes.hasOwnProperty(property)){prefix+=property+":"+prefixes[property]+" "}}if(""!=prefix){this.setAttribute("prefix",prefix)}}}}; | ||
window.SchemaBehaviors=window.SchemaBehaviors||{};window.SchemaBehaviors.Schema={properties:{schemaResourceID:{type:String,value:""},schemaMap:{type:Object,value:{prefix:{oer:"http://oerschema.org/",schema:"http://schema.org/",dc:"http://purl.org/dc/terms/",foaf:"http://xmlns.com/foaf/0.1/",cc:"http://creativecommons.org/ns#",bib:"http://bib.schema.org"}},observer:"_schemaMapChanged"}},generateResourceID:function generateResourceID(){function idPart(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return"#"+idPart()+idPart()+"-"+idPart()+"-"+idPart()+"-"+idPart()},_schemaMapChanged:function _schemaMapChanged(newValue,oldValue){if(babelHelpers.typeof(newValue)!==("undefined"===typeof void 0?"undefined":babelHelpers.typeof(void 0))){this.schemaResourceID=this.getAttribute("resource");if(""==this.schemaResourceID||null==this.schemaResourceID){this.schemaResourceID=this.generateResourceID();this.setAttribute("resource",this.schemaResourceID)}var prefixes=newValue.prefix,prefix="";for(var property in prefixes){if(prefixes.hasOwnProperty(property)){prefix+=property+":"+prefixes[property]+" "}}if(""!=prefix){this.setAttribute("prefix",prefix)}}}}; |
@@ -1,1 +0,1 @@ | ||
window.SchemaBehaviors=window.SchemaBehaviors||{};window.SchemaBehaviors.Schema={properties:{schemaResourceID:{type:String,value:""},schemaMap:{type:Object,value:{prefix:{oer:"http://oerschema.org/",schema:"http://schema.org/",dc:"http://purl.org/dc/terms/",foaf:"http://xmlns.com/foaf/0.1/",cc:"http://creativecommons.org/ns#",bib:"http://bib.schema.org"}},observer:"_schemaMapChanged"}},generateResourceID:function(){function idPart(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return"#"+idPart()+idPart()+"-"+idPart()+"-"+idPart()+"-"+idPart()},_schemaMapChanged:function(newValue){if(typeof newValue!==typeof void 0){this.schemaResourceID=this.getAttribute("resource");if(""==this.schemaResourceID||null==this.schemaResourceID){this.schemaResourceID=this.generateResourceID();this.setAttribute("resource",this.schemaResourceID)}let prefixes=newValue.prefix,prefix="";for(var property in prefixes){if(prefixes.hasOwnProperty(property)){prefix+=property+":"+prefixes[property]+" "}}if(""!=prefix){this.setAttribute("prefix",prefix)}}}}; | ||
window.SchemaBehaviors=window.SchemaBehaviors||{};window.SchemaBehaviors.Schema={properties:{schemaResourceID:{type:String,value:""},schemaMap:{type:Object,value:{prefix:{oer:"http://oerschema.org/",schema:"http://schema.org/",dc:"http://purl.org/dc/terms/",foaf:"http://xmlns.com/foaf/0.1/",cc:"http://creativecommons.org/ns#",bib:"http://bib.schema.org"}},observer:"_schemaMapChanged"}},generateResourceID:function(){function idPart(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return"#"+idPart()+idPart()+"-"+idPart()+"-"+idPart()+"-"+idPart()},_schemaMapChanged:function(newValue,oldValue){if(typeof newValue!==typeof void 0){this.schemaResourceID=this.getAttribute("resource");if(""==this.schemaResourceID||null==this.schemaResourceID){this.schemaResourceID=this.generateResourceID();this.setAttribute("resource",this.schemaResourceID)}let prefixes=newValue.prefix,prefix="";for(var property in prefixes){if(prefixes.hasOwnProperty(property)){prefix+=property+":"+prefixes[property]+" "}}if(""!=prefix){this.setAttribute("prefix",prefix)}}}}; |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
779
2
69811
26