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.5 to 0.1.6

4

dist/slate-dev-environment.js

@@ -214,2 +214,5 @@ (function (global, factory) {

// COMPAT: this is needed for an older version of `slate-react` support.
var SUPPORTED_EVENTS = { beforeinput: HAS_INPUT_EVENTS_LEVEL_2 };
exports.IS_CHROME = IS_CHROME;

@@ -227,2 +230,3 @@ exports.IS_OPERA = IS_OPERA;

exports.HAS_INPUT_EVENTS_LEVEL_2 = HAS_INPUT_EVENTS_LEVEL_2;
exports.SUPPORTED_EVENTS = SUPPORTED_EVENTS;

@@ -229,0 +233,0 @@ Object.defineProperty(exports, '__esModule', { value: true });

2

dist/slate-dev-environment.min.js

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.SlateDevEnvironment={})}(this,function(e){"use strict";var t="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},n="object"===("undefined"==typeof window?"undefined":t(window))&&"object"===("undefined"==typeof document?"undefined":t(document))&&9===document.nodeType,r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,f=e[Symbol.iterator]();!(r=(a=f.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&f.return&&f.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=void 0;if(n){var i=!0,a=!1,f=void 0;try{for(var d,u=[["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]();!(i=(d=u.next()).done);i=!0){var l=r(d.value,2),s=l[0];if(l[1].test(window.navigator.userAgent)){o=s;break}}}catch(e){a=!0,f=e}finally{try{!i&&u.return&&u.return()}finally{if(a)throw f}}}var c=void 0;if(n){var y=!0,v=!1,p=void 0;try{for(var m,S=[["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]();!(y=(m=S.next()).done);y=!0){var _=r(m.value,2),b=_[0];if(_[1].test(window.navigator.userAgent)){c=b;break}}}catch(e){v=!0,p=e}finally{try{!y&&S.return&&S.return()}finally{if(v)throw p}}}var w=[["inputeventslevel1",function(e){return"inputType"in(e.InputEvent?new InputEvent("input"):{})}],["inputeventslevel2",function(e){var t=e.document.createElement("div");return t.contentEditable=!0,"onbeforeinput"in t}]],E=[];if(n){var I=!0,h=!1,x=void 0;try{for(var A,O=w[Symbol.iterator]();!(I=(A=O.next()).done);I=!0){var T=r(A.value,2),g=T[0];(0,T[1])(window)&&E.push(g)}}catch(e){h=!0,x=e}finally{try{!I&&O.return&&O.return()}finally{if(h)throw x}}}var R="chrome"===o,N="opera"===o,P="firefox"===o,$="safari"===o,j="ie"===o,D="edge"===o,M="android"===c,V="ios"===c,k="macos"===c,C="windows"===c,F=E.includes("inputeventslevel1"),L=E.includes("inputeventslevel2");e.IS_CHROME=R,e.IS_OPERA=N,e.IS_FIREFOX=P,e.IS_SAFARI=$,e.IS_IE=j,e.IS_EDGE=D,e.IS_ANDROID=M,e.IS_IOS=V,e.IS_MAC=k,e.IS_WINDOWS=C,e.HAS_INPUT_EVENTS_LEVEL_1=F,e.HAS_INPUT_EVENTS_LEVEL_2=L,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.SlateDevEnvironment={})}(this,function(e){"use strict";var t="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},n="object"===("undefined"==typeof window?"undefined":t(window))&&"object"===("undefined"==typeof document?"undefined":t(document))&&9===document.nodeType,r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,f=e[Symbol.iterator]();!(r=(a=f.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&f.return&&f.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=void 0;if(n){var i=!0,a=!1,f=void 0;try{for(var u,d=[["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]();!(i=(u=d.next()).done);i=!0){var l=r(u.value,2),s=l[0];if(l[1].test(window.navigator.userAgent)){o=s;break}}}catch(e){a=!0,f=e}finally{try{!i&&d.return&&d.return()}finally{if(a)throw f}}}var c=void 0;if(n){var y=!0,v=!1,p=void 0;try{for(var S,m=[["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]();!(y=(S=m.next()).done);y=!0){var E=r(S.value,2),_=E[0];if(E[1].test(window.navigator.userAgent)){c=_;break}}}catch(e){v=!0,p=e}finally{try{!y&&m.return&&m.return()}finally{if(v)throw p}}}var b=[["inputeventslevel1",function(e){return"inputType"in(e.InputEvent?new InputEvent("input"):{})}],["inputeventslevel2",function(e){var t=e.document.createElement("div");return t.contentEditable=!0,"onbeforeinput"in t}]],w=[];if(n){var I=!0,h=!1,x=void 0;try{for(var A,O=b[Symbol.iterator]();!(I=(A=O.next()).done);I=!0){var T=r(A.value,2),g=T[0];(0,T[1])(window)&&w.push(g)}}catch(e){h=!0,x=e}finally{try{!I&&O.return&&O.return()}finally{if(h)throw x}}}var P="chrome"===o,R="opera"===o,N="firefox"===o,D="safari"===o,V="ie"===o,$="edge"===o,j="android"===c,M="ios"===c,k="macos"===c,C="windows"===c,F=w.includes("inputeventslevel1"),L=w.includes("inputeventslevel2"),H={beforeinput:L};e.IS_CHROME=P,e.IS_OPERA=R,e.IS_FIREFOX=N,e.IS_SAFARI=D,e.IS_IE=V,e.IS_EDGE=$,e.IS_ANDROID=j,e.IS_IOS=M,e.IS_MAC=k,e.IS_WINDOWS=C,e.HAS_INPUT_EVENTS_LEVEL_1=F,e.HAS_INPUT_EVENTS_LEVEL_2=L,e.SUPPORTED_EVENTS=H,Object.defineProperty(e,"__esModule",{value:!0})});

@@ -206,3 +206,6 @@ import isBrowser from 'is-in-browser';

export { IS_CHROME, IS_OPERA, IS_FIREFOX, IS_SAFARI, IS_IE, IS_EDGE, IS_ANDROID, IS_IOS, IS_MAC, IS_WINDOWS, HAS_INPUT_EVENTS_LEVEL_1, HAS_INPUT_EVENTS_LEVEL_2 };
// COMPAT: this is needed for an older version of `slate-react` support.
var SUPPORTED_EVENTS = { beforeinput: HAS_INPUT_EVENTS_LEVEL_2 };
export { IS_CHROME, IS_OPERA, IS_FIREFOX, IS_SAFARI, IS_IE, IS_EDGE, IS_ANDROID, IS_IOS, IS_MAC, IS_WINDOWS, HAS_INPUT_EVENTS_LEVEL_1, HAS_INPUT_EVENTS_LEVEL_2, SUPPORTED_EVENTS };
//# sourceMappingURL=slate-dev-environment.es.js.map

@@ -212,2 +212,5 @@ 'use strict';

// COMPAT: this is needed for an older version of `slate-react` support.
var SUPPORTED_EVENTS = { beforeinput: HAS_INPUT_EVENTS_LEVEL_2 };
exports.IS_CHROME = IS_CHROME;

@@ -225,2 +228,3 @@ exports.IS_OPERA = IS_OPERA;

exports.HAS_INPUT_EVENTS_LEVEL_2 = HAS_INPUT_EVENTS_LEVEL_2;
exports.SUPPORTED_EVENTS = SUPPORTED_EVENTS;
//# sourceMappingURL=slate-dev-environment.js.map
{
"name": "slate-dev-environment",
"description": "INTERNAL: A set of environment-related constants for Slate's core.",
"version": "0.1.5",
"version": "0.1.6",
"license": "MIT",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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