Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

slate-dev-environment

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slate-dev-environment - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

dist/slate-dev-environment.js

@@ -198,2 +198,3 @@ (function (global, factory) {

var IS_CHROME = BROWSER === 'chrome';
var IS_OPERA = BROWSER === 'opera';
var IS_FIREFOX = BROWSER === 'firefox';

@@ -212,2 +213,3 @@ var IS_SAFARI = BROWSER === 'safari';

exports.IS_CHROME = IS_CHROME;
exports.IS_OPERA = IS_OPERA;
exports.IS_FIREFOX = IS_FIREFOX;

@@ -214,0 +216,0 @@ exports.IS_SAFARI = IS_SAFARI;

2

dist/slate-dev-environment.min.js

@@ -1,1 +0,1 @@

!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(e.SlateDevEnvironment={})}(this,function(e){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o="object"===("undefined"==typeof window?"undefined":r(window))&&"object"===("undefined"==typeof document?"undefined":r(document))&&9===document.nodeType,t=function(){return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,r){var o=[],t=!0,n=!1,i=void 0;try{for(var a,f=e[Symbol.iterator]();!(t=(a=f.next()).done)&&(o.push(a.value),!r||o.length!==r);t=!0);}catch(e){n=!0,i=e}finally{try{!t&&f.return&&f.return()}finally{if(n)throw i}}return o}(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n=void 0,i={},a=void 0;if(o){var f=window.navigator.userAgent,d=!0,u=!1,l=void 0;try{for(var y,c=[["edge",/Edge\/([0-9\._]+)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)$/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+)\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["android",/Android\s([0-9\.]+)/],["safari",/Version\/([0-9\._]+).*Safari/]][Symbol.iterator]();!(d=(y=c.next()).done);d=!0){var s=t(y.value,2),m=s[0];if(s[1].test(f)){n=m;break}}}catch(e){u=!0,l=e}finally{try{!d&&c.return&&c.return()}finally{if(u)throw l}}var v=!0,S=!1,b=void 0;try{for(var p,w=[["ios",/os ([\.\_\d]+) like mac os/i],["macos",/mac os x/i],["android",/android/i],["firefoxos",/mozilla\/[a-z\.\_\d]+ \((?:mobile)|(?:tablet)/i],["windows",/windows\s*(?:nt)?\s*([\.\_\d]+)/i]][Symbol.iterator]();!(v=(p=w.next()).done);v=!0){var I=t(p.value,2),_=I[0];if(I[1].test(f)){a=_;break}}}catch(e){S=!0,b=e}finally{try{!v&&w.return&&w.return()}finally{if(S)throw b}}var h=window.document.createElement("div");h.contentEditable=!0;var E=!0,x=!1,O=void 0;try{for(var A,R=[["beforeinput",function(e){return"onbeforeinput"in e}]][Symbol.iterator]();!(E=(A=R.next()).done);E=!0){var g=t(A.value,2),D=g[0],T=g[1];i[D]=T(h)}}catch(e){x=!0,O=e}finally{try{!E&&R.return&&R.return()}finally{if(x)throw O}}}var $="chrome"===n,j="firefox"===n,M="safari"===n,P="ie"===n,k="edge"===n,C="android"===a,F="ios"===a,N="macos"===a,z="windows"===a,G=i;e.IS_CHROME=$,e.IS_FIREFOX=j,e.IS_SAFARI=M,e.IS_IE=P,e.IS_EDGE=k,e.IS_ANDROID=C,e.IS_IOS=F,e.IS_MAC=N,e.IS_WINDOWS=z,e.SUPPORTED_EVENTS=G,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(e.SlateDevEnvironment={})}(this,function(e){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o="object"===("undefined"==typeof window?"undefined":r(window))&&"object"===("undefined"==typeof document?"undefined":r(document))&&9===document.nodeType,t=function(){return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,r){var o=[],t=!0,n=!1,i=void 0;try{for(var a,f=e[Symbol.iterator]();!(t=(a=f.next()).done)&&(o.push(a.value),!r||o.length!==r);t=!0);}catch(e){n=!0,i=e}finally{try{!t&&f.return&&f.return()}finally{if(n)throw i}}return o}(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n=void 0,i={},a=void 0;if(o){var f=window.navigator.userAgent,d=!0,u=!1,l=void 0;try{for(var y,c=[["edge",/Edge\/([0-9\._]+)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)$/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+)\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["android",/Android\s([0-9\.]+)/],["safari",/Version\/([0-9\._]+).*Safari/]][Symbol.iterator]();!(d=(y=c.next()).done);d=!0){var s=t(y.value,2),m=s[0];if(s[1].test(f)){n=m;break}}}catch(e){u=!0,l=e}finally{try{!d&&c.return&&c.return()}finally{if(u)throw l}}var v=!0,S=!1,p=void 0;try{for(var b,w=[["ios",/os ([\.\_\d]+) like mac os/i],["macos",/mac os x/i],["android",/android/i],["firefoxos",/mozilla\/[a-z\.\_\d]+ \((?:mobile)|(?:tablet)/i],["windows",/windows\s*(?:nt)?\s*([\.\_\d]+)/i]][Symbol.iterator]();!(v=(b=w.next()).done);v=!0){var I=t(b.value,2),_=I[0];if(I[1].test(f)){a=_;break}}}catch(e){S=!0,p=e}finally{try{!v&&w.return&&w.return()}finally{if(S)throw p}}var h=window.document.createElement("div");h.contentEditable=!0;var E=!0,x=!1,O=void 0;try{for(var A,R=[["beforeinput",function(e){return"onbeforeinput"in e}]][Symbol.iterator]();!(E=(A=R.next()).done);E=!0){var g=t(A.value,2),D=g[0],P=g[1];i[D]=P(h)}}catch(e){x=!0,O=e}finally{try{!E&&R.return&&R.return()}finally{if(x)throw O}}}var T="chrome"===n,$="opera"===n,j="firefox"===n,M="safari"===n,k="ie"===n,C="edge"===n,F="android"===a,N="ios"===a,z="macos"===a,G="windows"===a,V=i;e.IS_CHROME=T,e.IS_OPERA=$,e.IS_FIREFOX=j,e.IS_SAFARI=M,e.IS_IE=k,e.IS_EDGE=C,e.IS_ANDROID=F,e.IS_IOS=N,e.IS_MAC=z,e.IS_WINDOWS=G,e.SUPPORTED_EVENTS=V,Object.defineProperty(e,"__esModule",{value:!0})});
{
"name": "slate-dev-environment",
"description": "Detect browser and OS environments in core Slate packages",
"version": "0.1.2",
"version": "0.1.3",
"license": "MIT",

@@ -6,0 +6,0 @@ "repository": "git://github.com/ianstormtaylor/slate.git",

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