Bump dependencies

This commit is contained in:
David Evans 2020-08-30 22:06:20 +01:00
parent 1136325f5b
commit fbe4e9e792
7 changed files with 1897 additions and 891 deletions

2742
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -44,17 +44,17 @@
"web-test:manual": "MANUAL=1 karma start spec/support/karma.conf.js" "web-test:manual": "MANUAL=1 karma start spec/support/karma.conf.js"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-multi-entry": "3.x", "@rollup/plugin-multi-entry": "4.x",
"buffer-to-stream": "1.x", "buffer-to-stream": "1.x",
"codemirror": "5.52.x", "codemirror": "5.57.x",
"eslint": "6.x", "eslint": "7.x",
"eslint-plugin-jasmine": "4.x", "eslint-plugin-jasmine": "4.x",
"jasmine": "3.x", "jasmine": "3.x",
"karma": "5.x", "karma": "5.x",
"karma-chrome-launcher": "3.x", "karma-chrome-launcher": "3.x",
"karma-detect-browsers": "2.x", "karma-detect-browsers": "2.x",
"karma-firefox-launcher": "1.x", "karma-firefox-launcher": "1.x",
"karma-jasmine": "3.x", "karma-jasmine": "4.x",
"karma-safari-launcher": "1.x", "karma-safari-launcher": "1.x",
"pngcrush": "2.x", "pngcrush": "2.x",
"requirejs": "2.x", "requirejs": "2.x",

File diff suppressed because one or more lines are too long

View File

@ -164,17 +164,17 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}
.CodeMirror-scroll { .CodeMirror-scroll {
overflow: scroll !important; /* Things will break if this is overridden */ overflow: scroll !important; /* Things will break if this is overridden */
/* 30px is the magic margin used to hide the element's real scrollbars */ /* 50px is the magic margin used to hide the element's real scrollbars */
/* See overflow: hidden in .CodeMirror */ /* See overflow: hidden in .CodeMirror */
margin-bottom: -30px; margin-right: -30px; margin-bottom: -50px; margin-right: -50px;
padding-bottom: 30px; padding-bottom: 50px;
height: 100%; height: 100%;
outline: none; /* Prevent dragging from highlighting the element */ outline: none; /* Prevent dragging from highlighting the element */
position: relative; position: relative;
} }
.CodeMirror-sizer { .CodeMirror-sizer {
position: relative; position: relative;
border-right: 30px solid transparent; border-right: 50px solid transparent;
} }
/* The fake, visible scrollbars. Used to force redraw during scrolling /* The fake, visible scrollbars. Used to force redraw during scrolling
@ -212,7 +212,7 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}
height: 100%; height: 100%;
display: inline-block; display: inline-block;
vertical-align: top; vertical-align: top;
margin-bottom: -30px; margin-bottom: -50px;
} }
.CodeMirror-gutter-wrapper { .CodeMirror-gutter-wrapper {
position: absolute; position: absolute;

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function n(e){var n=e.search(l);return-1==n?0:n}function t(e,n){var t=e.getMode();return!1!==t.useInnerComments&&t.innerMode?e.getModeAt(n):t}var i={},l=/[^\s\u00a0]/,o=e.Pos;e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",function(e){e||(e=i);for(var n=1/0,t=this.listSelections(),l=null,r=t.length-1;r>=0;r--){var a=t[r].from(),m=t[r].to();a.line>=n||(m.line>=n&&(m=o(n,0)),n=a.line,null==l?this.uncomment(a,m,e)?l="un":(this.lineComment(a,m,e),l="line"):"un"==l?this.uncomment(a,m,e):this.lineComment(a,m,e))}}),e.defineExtension("lineComment",function(e,r,a){a||(a=i);var m=this,c=t(m,e),f=m.getLine(e.line);if(null!=f&&!function(e,n,t){return/\bstring\b/.test(e.getTokenTypeAt(o(n.line,0)))&&!/^[\'\"\`]/.test(t)}(m,e,f)){var g=a.lineComment||c.lineComment;if(g){var s=Math.min(0!=r.ch||r.line==e.line?r.line+1:r.line,m.lastLine()+1),d=null==a.padding?" ":a.padding,u=a.commentBlankLines||e.line==r.line;m.operation(function(){if(a.indent){for(var t=null,i=e.line;i<s;++i){var r=(c=m.getLine(i)).slice(0,n(c));(null==t||t.length>r.length)&&(t=r)}for(i=e.line;i<s;++i){var c=m.getLine(i),f=t.length;(u||l.test(c))&&(c.slice(0,f)!=t&&(f=n(c)),m.replaceRange(t+g+d,o(i,0),o(i,f)))}}else for(i=e.line;i<s;++i)(u||l.test(m.getLine(i)))&&m.replaceRange(g+d,o(i,0))})}else(a.blockCommentStart||c.blockCommentStart)&&(a.fullLines=!0,m.blockComment(e,r,a))}}),e.defineExtension("blockComment",function(e,n,r){r||(r=i);var a=this,m=t(a,e),c=r.blockCommentStart||m.blockCommentStart,f=r.blockCommentEnd||m.blockCommentEnd;if(c&&f){if(!/\bcomment\b/.test(a.getTokenTypeAt(o(e.line,0)))){var g=Math.min(n.line,a.lastLine());g!=e.line&&0==n.ch&&l.test(a.getLine(g))&&--g;var s=null==r.padding?" ":r.padding;e.line>g||a.operation(function(){if(0!=r.fullLines){var t=l.test(a.getLine(g));a.replaceRange(s+f,o(g)),a.replaceRange(c+s,o(e.line,0));var i=r.blockCommentLead||m.blockCommentLead;if(null!=i)for(var d=e.line+1;d<=g;++d)(d!=g||t)&&a.replaceRange(i+s,o(d,0))}else a.replaceRange(f,n),a.replaceRange(c,e)})}}else(r.lineComment||m.lineComment)&&0!=r.fullLines&&a.lineComment(e,n,r)}),e.defineExtension("uncomment",function(e,n,r){r||(r=i);var a,m=this,c=t(m,e),f=Math.min(0!=n.ch||n.line==e.line?n.line:n.line-1,m.lastLine()),g=Math.min(e.line,f),s=r.lineComment||c.lineComment,d=[],u=null==r.padding?" ":r.padding;e:if(s){for(var h=g;h<=f;++h){var p=m.getLine(h),v=p.indexOf(s);if(v>-1&&!/comment/.test(m.getTokenTypeAt(o(h,v+1)))&&(v=-1),-1==v&&l.test(p))break e;if(v>-1&&l.test(p.slice(0,v)))break e;d.push(p)}if(m.operation(function(){for(var e=g;e<=f;++e){var n=d[e-g],t=n.indexOf(s),i=t+s.length;t<0||(n.slice(i,i+u.length)==u&&(i+=u.length),a=!0,m.replaceRange("",o(e,t),o(e,i)))}}),a)return!0}var C=r.blockCommentStart||c.blockCommentStart,b=r.blockCommentEnd||c.blockCommentEnd;if(!C||!b)return!1;var k=r.blockCommentLead||c.blockCommentLead,L=m.getLine(g),x=L.indexOf(C);if(-1==x)return!1;var R=f==g?L:m.getLine(f),O=R.indexOf(b,f==g?x+C.length:0),T=o(g,x+1),y=o(f,O+1);if(-1==O||!/comment/.test(m.getTokenTypeAt(T))||!/comment/.test(m.getTokenTypeAt(y))||m.getRange(T,y,"\n").indexOf(b)>-1)return!1;var E=L.lastIndexOf(C,e.ch),M=-1==E?-1:L.slice(0,e.ch).indexOf(b,E+C.length);if(-1!=E&&-1!=M&&M+b.length!=e.ch)return!1;M=R.indexOf(b,n.ch);var S=R.slice(n.ch).lastIndexOf(C,M-n.ch);return E=-1==M||-1==S?-1:n.ch+S,(-1==M||-1==E||E==n.ch)&&(m.operation(function(){m.replaceRange("",o(f,O-(u&&R.slice(O-u.length,O)==u?u.length:0)),o(f,O+b.length));var e=x+C.length;if(u&&L.slice(e,e+u.length)==u&&(e+=u.length),m.replaceRange("",o(g,x),o(g,e)),k)for(var n=g+1;n<=f;++n){var t=m.getLine(n),i=t.indexOf(k);if(-1!=i&&!l.test(t.slice(0,i))){var r=i+k.length;u&&t.slice(r,r+u.length)==u&&(r+=u.length),m.replaceRange("",o(n,i),o(n,r))}}}),!0)})}); !function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function n(e){var n=e.search(l);return-1==n?0:n}function t(e,n){var t=e.getMode();return!1!==t.useInnerComments&&t.innerMode?e.getModeAt(n):t}var i={},l=/[^\s\u00a0]/,o=e.Pos,r=e.cmpPos;e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",function(e){e||(e=i);for(var n=1/0,t=this.listSelections(),l=null,r=t.length-1;r>=0;r--){var a=t[r].from(),m=t[r].to();a.line>=n||(m.line>=n&&(m=o(n,0)),n=a.line,null==l?this.uncomment(a,m,e)?l="un":(this.lineComment(a,m,e),l="line"):"un"==l?this.uncomment(a,m,e):this.lineComment(a,m,e))}}),e.defineExtension("lineComment",function(e,r,a){a||(a=i);var m=this,c=t(m,e),s=m.getLine(e.line);if(null!=s&&!function(e,n,t){return/\bstring\b/.test(e.getTokenTypeAt(o(n.line,0)))&&!/^[\'\"\`]/.test(t)}(m,e,s)){var f=a.lineComment||c.lineComment;if(f){var g=Math.min(0!=r.ch||r.line==e.line?r.line+1:r.line,m.lastLine()+1),u=null==a.padding?" ":a.padding,d=a.commentBlankLines||e.line==r.line;m.operation(function(){if(a.indent){for(var t=null,i=e.line;i<g;++i){var r=(c=m.getLine(i)).slice(0,n(c));(null==t||t.length>r.length)&&(t=r)}for(i=e.line;i<g;++i){var c=m.getLine(i),s=t.length;(d||l.test(c))&&(c.slice(0,s)!=t&&(s=n(c)),m.replaceRange(t+f+u,o(i,0),o(i,s)))}}else for(i=e.line;i<g;++i)(d||l.test(m.getLine(i)))&&m.replaceRange(f+u,o(i,0))})}else(a.blockCommentStart||c.blockCommentStart)&&(a.fullLines=!0,m.blockComment(e,r,a))}}),e.defineExtension("blockComment",function(e,n,a){a||(a=i);var m=this,c=t(m,e),s=a.blockCommentStart||c.blockCommentStart,f=a.blockCommentEnd||c.blockCommentEnd;if(s&&f){if(!/\bcomment\b/.test(m.getTokenTypeAt(o(e.line,0)))){var g=Math.min(n.line,m.lastLine());g!=e.line&&0==n.ch&&l.test(m.getLine(g))&&--g;var u=null==a.padding?" ":a.padding;e.line>g||m.operation(function(){if(0!=a.fullLines){var t=l.test(m.getLine(g));m.replaceRange(u+f,o(g)),m.replaceRange(s+u,o(e.line,0));var i=a.blockCommentLead||c.blockCommentLead;if(null!=i)for(var d=e.line+1;d<=g;++d)(d!=g||t)&&m.replaceRange(i+u,o(d,0))}else{var h=0==r(m.getCursor("to"),n),C=!m.somethingSelected();m.replaceRange(f,n),h&&m.setSelection(C?n:m.getCursor("from"),n),m.replaceRange(s,e)}})}}else(a.lineComment||c.lineComment)&&0!=a.fullLines&&m.lineComment(e,n,a)}),e.defineExtension("uncomment",function(e,n,r){r||(r=i);var a,m=this,c=t(m,e),s=Math.min(0!=n.ch||n.line==e.line?n.line:n.line-1,m.lastLine()),f=Math.min(e.line,s),g=r.lineComment||c.lineComment,u=[],d=null==r.padding?" ":r.padding;e:if(g){for(var h=f;h<=s;++h){var C=m.getLine(h),p=C.indexOf(g);if(p>-1&&!/comment/.test(m.getTokenTypeAt(o(h,p+1)))&&(p=-1),-1==p&&l.test(C))break e;if(p>-1&&l.test(C.slice(0,p)))break e;u.push(C)}if(m.operation(function(){for(var e=f;e<=s;++e){var n=u[e-f],t=n.indexOf(g),i=t+g.length;t<0||(n.slice(i,i+d.length)==d&&(i+=d.length),a=!0,m.replaceRange("",o(e,t),o(e,i)))}}),a)return!0}var v=r.blockCommentStart||c.blockCommentStart,b=r.blockCommentEnd||c.blockCommentEnd;if(!v||!b)return!1;var k=r.blockCommentLead||c.blockCommentLead,L=m.getLine(f),x=L.indexOf(v);if(-1==x)return!1;var R=s==f?L:m.getLine(s),O=R.indexOf(b,s==f?x+v.length:0),T=o(f,x+1),S=o(s,O+1);if(-1==O||!/comment/.test(m.getTokenTypeAt(T))||!/comment/.test(m.getTokenTypeAt(S))||m.getRange(T,S,"\n").indexOf(b)>-1)return!1;var y=L.lastIndexOf(v,e.ch),E=-1==y?-1:L.slice(0,e.ch).indexOf(b,y+v.length);if(-1!=y&&-1!=E&&E+b.length!=e.ch)return!1;E=R.indexOf(b,n.ch);var M=R.slice(n.ch).lastIndexOf(v,E-n.ch);return y=-1==E||-1==M?-1:n.ch+M,(-1==E||-1==y||y==n.ch)&&(m.operation(function(){m.replaceRange("",o(s,O-(d&&R.slice(O-d.length,O)==d?d.length:0)),o(s,O+b.length));var e=x+v.length;if(d&&L.slice(e,e+d.length)==d&&(e+=d.length),m.replaceRange("",o(f,x),o(f,e)),k)for(var n=f+1;n<=s;++n){var t=m.getLine(n),i=t.indexOf(k);if(-1!=i&&!l.test(t.slice(0,i))){var r=i+k.length;d&&t.slice(r,r+d.length)==d&&(r+=d.length),m.replaceRange("",o(n,i),o(n,r))}}}),!0)})});

File diff suppressed because one or more lines are too long