You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@polymer/iron-meta

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polymer/iron-meta - npm Package Compare versions

Comparing version

to
3.0.0-pre.7

.github/CODEOWNERS

33

iron-meta.js
import '../polymer/polymer.js';
import { Polymer as Polymer$0 } from '../polymer/lib/legacy/polymer-fn.js';
/**
* @constructor
* @param {{
* type: (string|null|undefined),
* key: (string|null|undefined),
* value: *,
* }=} options
*/
Polymer.IronMeta = function(options) {
Polymer.IronMeta[' '](options);
export const IronMeta = function(options) {
IronMeta[' '](options);

@@ -25,7 +18,7 @@ this.type = (options && options.type) || 'default';

// a value.
Polymer.IronMeta[' '] = function(){};
IronMeta[' '] = function(){};
Polymer.IronMeta.types = {};
IronMeta.types = {};
Polymer.IronMeta.prototype = {
IronMeta.prototype = {
get value() {

@@ -36,3 +29,3 @@ var type = this.type;

if (type && key) {
return Polymer.IronMeta.types[type] && Polymer.IronMeta.types[type][key];
return IronMeta.types[type] && IronMeta.types[type][key];
}

@@ -46,3 +39,3 @@ },

if (type && key) {
type = Polymer.IronMeta.types[type] = Polymer.IronMeta.types[type] || {};
type = IronMeta.types[type] = IronMeta.types[type] || {};
if (value == null) {

@@ -60,3 +53,3 @@ delete type[key];

if (type) {
var items = Polymer.IronMeta.types[this.type];
var items = IronMeta.types[this.type];
if (!items) {

@@ -78,5 +71,5 @@ return [];

var metaDatas = Polymer.IronMeta.types;
var metaDatas = IronMeta.types;
Polymer({
Polymer$0({

@@ -133,3 +126,3 @@ is: 'iron-meta',

__computeMeta: function(type, key, value) {
var meta = new Polymer.IronMeta({
var meta = new IronMeta({
type: type,

@@ -166,3 +159,3 @@ key: key

byKey: function(key) {
return new Polymer.IronMeta({
return new IronMeta({
type: this.type,

@@ -169,0 +162,0 @@ key: key

{
"name": "@polymer/iron-meta",
"flat": true,
"version": "3.0.0-pre.6",
"version": "3.0.0-pre.7",
"description": "Useful for sharing information across a DOM tree",

@@ -20,7 +20,7 @@ "contributors": [

"dependencies": {
"@polymer/polymer": "^3.0.0-pre.6"
"@polymer/polymer": "^3.0.0-pre.7"
},
"devDependencies": {
"@polymer/paper-styles": "^3.0.0-pre.6",
"@polymer/test-fixture": "^3.0.0-pre.6",
"@polymer/paper-styles": "^3.0.0-pre.7",
"@polymer/test-fixture": "^3.0.0-pre.7",
"wct-browser-legacy": "0.0.1-pre.11",

@@ -27,0 +27,0 @@ "@webcomponents/webcomponentsjs": "^1.0.0"

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