@lite-embed/utils
Advanced tools
Comparing version 0.2.1-canary.2 to 0.2.1-canary.5
@@ -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.2.1-canary.2", | ||
"version": "0.2.1-canary.5", | ||
"description": "> TODO: description", | ||
@@ -43,3 +43,3 @@ "homepage": "https://github.com/danestves/lite-embed#readme", | ||
"dependencies": { | ||
"browser-monads-ts": "^1.2.5" | ||
"browser-monads-ts": "^2.0.0-canary.2" | ||
}, | ||
@@ -49,3 +49,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "817a81f5e94736ff841e5a43fd71ae1e7db4bb7b" | ||
"gitHead": "9126f1d64285d69d91c4e8dd26e9529c67c0c095" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
11928
+ Addedbrowser-monads-ts@2.0.1(transitive)
- Removedbrowser-monads-ts@1.2.5(transitive)