@lite-embed/utils
Advanced tools
Comparing version 0.3.1-canary.0 to 0.3.1-canary.1
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var n,i=((n=function(){return i}).toString=n.toLocaleString=n[Symbol.toPrimitive]=function(){return""},n.valueOf=function(){return!1},new Proxy(Object.freeze(n),{get:function(t,e){return t.hasOwnProperty(e)?t[e]:i}})),a=global.document,o=typeof a<"u"?a:i;function d(t,e,u){if(o.querySelector(`link[rel="${t}"][href="${e}"]`))return;let r=o.createElement("link");r.setAttribute("rel",t),r.setAttribute("href",e),u&&r.setAttribute("as",u),o.head.appendChild(r)}function f(t){const e=t.split(/(vi\/|v%3D|v=|\/v\/|youtu\.be\/|\/embed\/)/);return e[2]!==void 0?e[2].split(/[^\w-]/i)[0]:e[0]}function s({url:t,videoId:e,isPlaylist:u,opts:l}){let r={...u?{list:e}:{autoplay:1},...l},c=new URLSearchParams(r);return`${t}?${c.toString()}`}exports.addPrefetch=d;exports.getYouTubeId=f;exports.getYoutubeVars=s; | ||
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var n,i=((n=function(){return i}).toString=n.toLocaleString=n[Symbol.toPrimitive]=function(){return""},n.valueOf=function(){return!1},new Proxy(Object.freeze(n),{get:function(t,e){return t.hasOwnProperty(e)?t[e]:i}}));let a=global.document,o=typeof a<"u"?a:i;function d(t,e,u){if(o.querySelector(`link[rel="${t}"][href="${e}"]`))return;let r=o.createElement("link");r.setAttribute("rel",t),r.setAttribute("href",e),u&&r.setAttribute("as",u),o.head.appendChild(r)}function f(t){const e=t.split(/(vi\/|v%3D|v=|\/v\/|youtu\.be\/|\/embed\/)/);return e[2]!==void 0?e[2].split(/[^\w-]/i)[0]:e[0]}function s({url:t,videoId:e,isPlaylist:u,opts:l}){let r={...u?{list:e}:{autoplay:1},...l},c=new URLSearchParams(r);return`${t}?${c.toString()}`}exports.addPrefetch=d;exports.getYouTubeId=f;exports.getYoutubeVars=s; | ||
//# sourceMappingURL=lite-embed-utils.cjs.js.map |
var n,r=((n=function(){return r}).toString=n.toLocaleString=n[Symbol.toPrimitive]=function(){return ""},n.valueOf=function(){return !1},new Proxy(Object.freeze(n),{get:function(n,t){return n.hasOwnProperty(t)?n[t]:r}})); | ||
let doc = global.document; | ||
let document = typeof doc !== "undefined" ? doc : r; | ||
var doc = global.document; | ||
var document = typeof doc !== 'undefined' ? doc : r; | ||
function addPrefetch(rel, href, as) { | ||
@@ -7,0 +6,0 @@ let element = document.querySelector(`link[rel="${rel}"][href="${href}"]`); |
{ | ||
"name": "@lite-embed/utils", | ||
"version": "0.3.1-canary.0", | ||
"version": "0.3.1-canary.1", | ||
"description": "> TODO: description", | ||
@@ -42,7 +42,8 @@ "homepage": "https://github.com/danestves/lite-embed#readme", | ||
"dependencies": { | ||
"browser-monads-ts": "^2.0.0-canary.2" | ||
"browser-monads-ts": "^2.0.1" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
}, | ||
"gitHead": "85cff5e0c9c4c9a9166e0f9f5c06c38c0a4aa64c" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
11875
Updatedbrowser-monads-ts@^2.0.1