@commercetools/http-user-agent
Advanced tools
Comparing version 1.1.10 to 2.0.0
'use strict'; | ||
/* */ | ||
/* global window */ | ||
@@ -6,0 +4,0 @@ |
@@ -1,3 +0,1 @@ | ||
/* */ | ||
/* global window */ | ||
@@ -4,0 +2,0 @@ |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : | ||
typeof define === 'function' && define.amd ? define(factory) : | ||
(global.CommercetoolsHttpUserAgent = factory()); | ||
}(this, (function () { 'use strict'; | ||
(global = global || self, global.CommercetoolsHttpUserAgent = factory()); | ||
}(this, function () { 'use strict'; | ||
/* */ | ||
/* global window */ | ||
@@ -49,3 +47,3 @@ | ||
}))); | ||
})); | ||
//# sourceMappingURL=commercetools-http-user-agent.umd.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):e.CommercetoolsHttpUserAgent=r()}(this,function(){"use strict";var e=require("./_global"),o=require("./_inherit-if-required"),t=require("./_object-dp").f,r=require("./_object-gopn").f,c=require("./_is-regexp"),a=require("./_flags"),s=e.RegExp,u=s,l=s.prototype,i=/a/g,n=/a/g,f=new s(i)!==i;if(require("./_descriptors")&&(!f||require("./_fails")(function(){return n[require("./_wks")("match")]=!1,s(i)!=i||s(n)==n||"/a/i"!=s(i,"i")}))){s=function(e,r){var t=this instanceof s,i=c(e),n=void 0===r;return!t&&i&&e.constructor===s&&n?e:o(f?new u(i&&!n?e.source:e,r):u((i=e instanceof s)?e.source:e,i&&n?a.call(e):r),t?this:l,s)};for(var d=function(r){r in s||t(s,r,{configurable:!0,get:function(){return u[r]},set:function(e){u[r]=e}})},p=r(u),m=0;p.length>m;)d(p[m++]);(l.constructor=s).prototype=l,require("./_redefine")(e,"RegExp",s)}require("./_set-species")("RegExp"),require("./_fix-re-wks")("match",1,function(i,n,e){return[function(e){var r=i(this),t=null==e?void 0:e[n];return void 0!==t?t.call(e,r):new RegExp(e)[n](String(r))},e]});var _=require("./_object-dp").f,y=Function.prototype,g=/^\s*function ([^ (]*)/,q="name";q in y||require("./_descriptors")&&_(y,q,{configurable:!0,get:function(){try{return(""+this).match(g)[1]}catch(e){return""}}});for(var h=require("./es6.array.iterator"),L=require("./_object-keys"),v=require("./_redefine"),b=require("./_global"),S=require("./_hide"),w=require("./_iterators"),T=require("./_wks"),k=T("iterator"),j=T("toStringTag"),E=w.Array,x={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},M=L(x),A=0;A<M.length;A++){var V,N=M[A],C=x[N],R=b[N],G=R&&R.prototype;if(G&&(G[k]||S(G,k,E),G[j]||S(G,j,N),w[N]=E,C))for(V in h)G[V]||v(G,V,h[V],!0)}var P=require("./_add-to-unscopables"),U=require("./_iter-step"),D=require("./_iterators"),H=require("./_to-iobject");module.exports=require("./_iter-define")(Array,"Array",function(e,r){this._t=H(e),this._i=0,this._k=r},function(){var e=this._t,r=this._k,t=this._i++;return!e||t>=e.length?(this._t=void 0,U(1)):U(0,"keys"==r?t:"values"==r?e[t]:[t,e[t]])},"values"),D.Arguments=D.Array,P("keys"),P("values"),P("entries");var O=require("./_to-object"),F=require("./_object-keys");require("./_object-sap")("keys",function(){return function(e){return F(O(e))}});var B=function(){return"undefined"!=typeof window&&window.document&&9===window.document.nodeType};return function(e){if(!e||0===Object.keys(e).length||!{}.hasOwnProperty.call(e,"name"))throw new Error("Missing required option `name`");var r,t,i=e.version?"".concat(e.name,"/").concat(e.version):e.name;return e.libraryName&&!e.libraryVersion?r=e.libraryName:e.libraryName&&e.libraryVersion&&(r="".concat(e.libraryName,"/").concat(e.libraryVersion)),e.contactUrl&&!e.contactEmail?t="(+".concat(e.contactUrl,")"):!e.contactUrl&&e.contactEmail?t="(+".concat(e.contactEmail,")"):e.contactUrl&&e.contactEmail&&(t="(+".concat(e.contactUrl,"; +").concat(e.contactEmail,")")),[i,function(){if(B())return window.navigator.userAgent;var e=process.version.slice(1),r="(".concat(process.platform,"; ").concat(process.arch,")");return"Node.js/".concat(e," ").concat(r)}(),r,t].filter(function(e){return Boolean(e)}).join(" ")}}); | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n=n||self).CommercetoolsHttpUserAgent=t()}(this,function(){"use strict";var c=function(){return"undefined"!=typeof window&&window.document&&9===window.document.nodeType};return function(n){if(!n||0===Object.keys(n).length||!{}.hasOwnProperty.call(n,"name"))throw new Error("Missing required option `name`");var t,o,e=n.version?"".concat(n.name,"/").concat(n.version):n.name;return n.libraryName&&!n.libraryVersion?t=n.libraryName:n.libraryName&&n.libraryVersion&&(t="".concat(n.libraryName,"/").concat(n.libraryVersion)),n.contactUrl&&!n.contactEmail?o="(+".concat(n.contactUrl,")"):!n.contactUrl&&n.contactEmail?o="(+".concat(n.contactEmail,")"):n.contactUrl&&n.contactEmail&&(o="(+".concat(n.contactUrl,"; +").concat(n.contactEmail,")")),[e,function(){if(c())return window.navigator.userAgent;var n=process.version.slice(1),t="(".concat(process.platform,"; ").concat(process.arch,")");return"Node.js/".concat(n," ").concat(t)}(),t,o].filter(function(n){return Boolean(n)}).join(" ")}}); | ||
//# sourceMappingURL=commercetools-http-user-agent.umd.min.js.map |
@@ -7,3 +7,3 @@ { | ||
"name": "@commercetools/http-user-agent", | ||
"version": "1.1.10", | ||
"version": "2.0.0", | ||
"description": "Creates a proper HTTP User-Agent", | ||
@@ -37,3 +37,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "9ce98abfddac28acbd1dd6c223d06ea31315153a" | ||
"gitHead": "313ea01030d33fb6c262c9cce428d19b5008ec9f" | ||
} |
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
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
26292
0
112