New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@o-rango/o-content-placeholder

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@o-rango/o-content-placeholder - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

dist/esm/es5/mstao4jb.js

5

CHANGELOG.md

@@ -5,2 +5,7 @@ # Change Log

<a name="0.1.5"></a>
## [0.1.5](https://github.com/o-rango/o-content-placeholder/compare/v0.1.4...v0.1.5) (2018-06-25)
<a name="0.1.4"></a>

@@ -7,0 +12,0 @@ ## [0.1.4](https://github.com/o-rango/o-content-placeholder/compare/v0.1.3...v0.1.4) (2018-06-20)

2

dist/collection/collection-manifest.json

@@ -90,3 +90,3 @@ {

"name": "@stencil/core",
"version": "0.9.10",
"version": "0.9.11",
"typescriptVersion": "2.9.2"

@@ -93,0 +93,0 @@ },

// OContentPlaceholder: Host Data, ES Module/ES5 Target
export var ContentPlaceholder = ["o-content-placeholder-block",function(){return(import("./o-content-placeholder-block.js")).then(function(m){return m.OContentPlaceholderBlock})},1,[["animation",1,0,1,3],["el",7],["lineHeight",1,0,"line-height",4],["lines",1,0,1,4],["margin",1,0,1,4],["randomSize",1,0,"random-size",3],["rounded",1,0,1,3]],1];
export var ContentPlaceholder = ["o-content-placeholder-block",function(){return(import("./rv8abtyr.js")).then(function(m){return m.OContentPlaceholderBlock})},1,[["animation",1,0,1,3],["el",7],["lineHeight",1,0,"line-height",4],["lines",1,0,1,4],["margin",1,0,1,4],["randomSize",1,0,"random-size",3],["rounded",1,0,1,3]],1];
export var ContentPlaceholderImg = ["o-content-placeholder-img",function(){return(import("./o-content-placeholder-img.js")).then(function(m){return m.OContentPlaceholderImg})},1,[["animation",1,0,1,3],["el",7],["format",1,0,1,2],["size",1,0,1,4]],1];
export var ContentPlaceholderImg = ["o-content-placeholder-img",function(){return(import("./mstao4jb.js")).then(function(m){return m.OContentPlaceholderImg})},1,[["animation",1,0,1,3],["el",7],["format",1,0,1,2],["size",1,0,1,4]],1];
/*!
* Built with http://stenciljs.com
* 2018-05-20T21:14:02
* 2018-05-25T07:32:57
*/
(function(win, doc, namespace, fsNamespace, resourcesUrl, appCore, appCoreSsr, appCorePolyfilled, hydratedCssClass, components) {
function init(win, doc, namespace, fsNamespace, resourcesUrl, appCore, appCorePolyfilled, hydratedCssClass, components, HTMLElementPrototype, App, x, y, scriptElm) {
// create global namespace if it doesn't already exist
App = win[namespace] = win[namespace] || {};
App.components = components;
y = components.filter(function (c) { return c[2]; }).map(function (c) { return c[0]; });
if (y.length) {
// auto hide components until they been fully hydrated
// reusing the "x" and "i" variables from the args for funzies
x = doc.createElement('style');
x.innerHTML = y.join() + '{visibility:hidden}.' + hydratedCssClass + '{visibility:inherit}';
x.setAttribute('data-styles', '');
doc.head.insertBefore(x, doc.head.firstChild);
}
createComponentOnReadyPrototype(win, namespace, HTMLElementPrototype);
resourcesUrl = resourcesUrl || App.resourcesUrl;
// figure out the script element for this current script
y = doc.querySelectorAll('script');
for (x = y.length - 1; x >= 0; x--) {
scriptElm = y[x];
if (scriptElm.src || scriptElm.hasAttribute('data-resources-url')) {
break;
}
}
// get the resource path attribute on this script element
y = scriptElm.getAttribute('data-resources-url');
if (!resourcesUrl && y) {
// the script element has a data-resources-url attribute, always use that
resourcesUrl = y;
}
if (!resourcesUrl && scriptElm.src) {
// we don't have an exact resourcesUrl, so let's
// figure it out relative to this script's src and app's filesystem namespace
y = scriptElm.src.split('/').slice(0, -1);
resourcesUrl = (y.join('/')) + (y.length ? '/' : '') + fsNamespace + '/';
}
// request the core this browser needs
// test for native support of custom elements and fetch
// if either of those are not supported, then use the core w/ polyfills
// also check if the page was build with ssr or not
x = doc.createElement('script');
if (usePolyfills(win, win.location, x, 'import("")')) {
// requires the es5/polyfilled core
x.src = resourcesUrl + appCorePolyfilled;
}
else {
// let's do this!
x.src = resourcesUrl + appCore;
x.setAttribute('type', 'module');
x.setAttribute('crossorigin', true);
}
x.setAttribute('data-resources-url', resourcesUrl);
x.setAttribute('data-namespace', fsNamespace);
doc.head.appendChild(x);
}
function usePolyfills(win, location, scriptElm, dynamicImportTest) {
// fyi, dev mode has verbose if/return statements
// but it minifies to a nice 'lil one-liner ;)
if (location.search.indexOf('core=esm') > 0) {
// force esm build
return false;
}
if ((location.search.indexOf('core=es5') > 0) ||
(location.protocol === 'file:') ||
(!(win.customElements && win.customElements.define)) ||
(!win.fetch) ||
(!(win.CSS && win.CSS.supports && win.CSS.supports('color', 'var(--c)'))) ||
(!('noModule' in scriptElm))) {
// es5 build w/ polyfills
return true;
}
// final test to see if this browser support dynamic imports
return doesNotSupportsDynamicImports(dynamicImportTest);
}
function doesNotSupportsDynamicImports(dynamicImportTest) {
try {
new Function(dynamicImportTest);
return false;
}
catch (e) { }
return true;
}
function createComponentOnReadyPrototype(win, namespace, HTMLElementPrototype) {
(win['s-apps'] = win['s-apps'] || []).push(namespace);
if (!HTMLElementPrototype.componentOnReady) {
HTMLElementPrototype.componentOnReady = function componentOnReady() {
/*tslint:disable*/
var elm = this;
function executor(resolve) {
if (elm.nodeName.indexOf('-') > 0) {
// window hasn't loaded yet and there's a
// good chance this is a custom element
var apps = win['s-apps'];
var appsReady = 0;
// loop through all the app namespaces
for (var i = 0; i < apps.length; i++) {
// see if this app has "componentOnReady" setup
if (win[apps[i]].componentOnReady) {
// this app's core has loaded call its "componentOnReady"
if (win[apps[i]].componentOnReady(elm, resolve)) {
// this component does belong to this app and would
// have fired off the resolve fn
// let's stop here, we're good
return;
}
appsReady++;
}
}
if (appsReady < apps.length) {
// not all apps are ready yet
// add it to the queue to be figured out when they are
(win['s-cr'] = win['s-cr'] || []).push([elm, resolve]);
return;
}
}
// not a recognized app component
resolve(null);
}
// callback wasn't provided, let's return a promise
if (win.Promise) {
// use native/polyfilled promise
return new win.Promise(executor);
}
// promise may not have been polyfilled yet
return { then: executor };
};
}
}
init(win, doc, namespace, fsNamespace, resourcesUrl, appCore, appCoreSsr, appCorePolyfilled, hydratedCssClass, components);
})(window, document, "OContentPlaceholder","o-content-placeholder",0,"o-content-placeholder.core.js","es5-build-disabled.js","hydrated",[["o-content-placeholder-block","o-content-placeholder-block",1,[["animation",1,0,1,3],["el",7],["lineHeight",1,0,"line-height",4],["lines",1,0,1,4],["margin",1,0,1,4],["randomSize",1,0,"random-size",3],["rounded",1,0,1,3]],1],["o-content-placeholder-img","o-content-placeholder-img",1,[["animation",1,0,1,3],["el",7],["format",1,0,1,2],["size",1,0,1,4]],1]],HTMLElement.prototype);
!function(e,t,n,r,o,i,s,c,l,a,u,d,p,h){for((u=e[n]=e[n]||{}).components=l,(p=l.filter(function(e){return e[2]}).map(function(e){return e[0]})).length&&((d=t.createElement("style")).innerHTML=p.join()+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),t.head.insertBefore(d,t.head.firstChild)),function(e,t,n){(e["s-apps"]=e["s-apps"]||[]).push("OContentPlaceholder"),n.componentOnReady||(n.componentOnReady=function(){var t=this;function n(n){if(t.nodeName.indexOf("-")>0){for(var r=e["s-apps"],o=0,i=0;i<r.length;i++)if(e[r[i]].componentOnReady){if(e[r[i]].componentOnReady(t,n))return;o++}if(o<r.length)return void(e["s-cr"]=e["s-cr"]||[]).push([t,n])}n(null)}return e.Promise?new e.Promise(n):{then:n}})}(e,0,a),o=o||u.resourcesUrl,d=(p=t.querySelectorAll("script")).length-1;d>=0&&!(h=p[d]).src&&!h.hasAttribute("data-resources-url");d--);p=h.getAttribute("data-resources-url"),!o&&p&&(o=p),!o&&h.src&&(o=(p=h.src.split("/").slice(0,-1)).join("/")+(p.length?"/":"")+"o-content-placeholder/"),d=t.createElement("script"),function(e,t,n,r){return!(t.search.indexOf("core=esm")>0)&&(!(!(t.search.indexOf("core=es5")>0||"file:"===t.protocol)&&e.customElements&&e.customElements.define&&e.fetch&&e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")&&"noModule"in n)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,d)?d.src=o+"o-content-placeholder.yn6ew5z8.js":(d.src=o+"o-content-placeholder.bs9fvco3.js",d.setAttribute("type","module"),d.setAttribute("crossorigin",!0)),d.setAttribute("data-resources-url",o),d.setAttribute("data-namespace","o-content-placeholder"),t.head.appendChild(d)}(window,document,"OContentPlaceholder",0,0,0,0,0,[["o-content-placeholder-block","rv8abtyr",1,[["animation",1,0,1,3],["el",7],["lineHeight",1,0,"line-height",4],["lines",1,0,1,4],["margin",1,0,1,4],["randomSize",1,0,"random-size",3],["rounded",1,0,1,3]],1],["o-content-placeholder-img","mstao4jb",1,[["animation",1,0,1,3],["el",7],["format",1,0,1,2],["size",1,0,1,4]],1]],HTMLElement.prototype);
{
"name": "@o-rango/o-content-placeholder",
"version": "0.1.4",
"version": "0.1.5",
"description": "O-RANGO customizable component placeholder",

@@ -41,4 +41,4 @@ "module": "dist/esm/index.js",

"@stencil/utils": "latest",
"@types/jest": "22.2.3",
"coveralls": "3.0.0",
"@types/jest": "22.2.2",
"coveralls": "3.0.1",
"jest": "22.4.3",

@@ -45,0 +45,0 @@ "standard-version": "4.3.0"

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc