diff --git a/README.md b/README.md
index 9f3ca05..8d8258c 100644
--- a/README.md
+++ b/README.md
@@ -47,6 +47,8 @@ or
const options = {
maxSizeMB: number, // (default: Number.POSITIVE_INFINITY)
maxWidthOrHeight: number, // compressedFile will scale down by ratio to a point that width or height is smaller than maxWidthOrHeight (default: undefined)
+ maxWidth: number, // compressedFile will scale down by ratio to a point that width smaller than maxWidth (default: undefined)
+ maxHeight: number, // compressedFile will scale down by ratio to a point that height is smaller than maxHeight (default: undefined)
useWebWorker: boolean, // optional, use multi-thread web worker, fallback to run in main-thread (default: true)
maxIteration: number, // optional, max number of iteration to compress the image (default: 10)
exifOrientation: number, // optional, see https://stackoverflow.com/a/32490603/10395024
diff --git a/coverage/badge.svg b/coverage/badge.svg
index 8362212..7daa387 100644
--- a/coverage/badge.svg
+++ b/coverage/badge.svg
@@ -1 +1 @@
- Coverage Coverage 74.88% 74.88%
\ No newline at end of file
+ Coverage Coverage 78.01% 78.01%
\ No newline at end of file
diff --git a/coverage/coverage-final.json b/coverage/coverage-final.json
index 70fd1b7..776aece 100644
--- a/coverage/coverage-final.json
+++ b/coverage/coverage-final.json
@@ -1,4 +1,4 @@
-{"/Users/donald/Project/browser-image-compression/lib/image-compression.js": {"path":"/Users/donald/Project/browser-image-compression/lib/image-compression.js","statementMap":{"0":{"start":{"line":25,"column":17},"end":{"line":25,"column":18}},"1":{"start":{"line":28,"column":4},"end":{"line":28,"column":19}},"2":{"start":{"line":29,"column":4},"end":{"line":31,"column":5}},"3":{"start":{"line":30,"column":6},"end":{"line":30,"column":49}},"4":{"start":{"line":35,"column":4},"end":{"line":35,"column":51}},"5":{"start":{"line":36,"column":4},"end":{"line":38,"column":5}},"6":{"start":{"line":37,"column":6},"end":{"line":37,"column":34}},"7":{"start":{"line":41,"column":24},"end":{"line":41,"column":50}},"8":{"start":{"line":43,"column":22},"end":{"line":43,"column":53}},"9":{"start":{"line":45,"column":2},"end":{"line":45,"column":15}},"10":{"start":{"line":48,"column":26},"end":{"line":48,"column":54}},"11":{"start":{"line":50,"column":2},"end":{"line":50,"column":15}},"12":{"start":{"line":53,"column":38},"end":{"line":53,"column":81}},"13":{"start":{"line":55,"column":2},"end":{"line":55,"column":15}},"14":{"start":{"line":58,"column":2},"end":{"line":58,"column":85}},"15":{"start":{"line":59,"column":2},"end":{"line":59,"column":15}},"16":{"start":{"line":60,"column":33},"end":{"line":60,"column":108}},"17":{"start":{"line":61,"column":2},"end":{"line":61,"column":15}},"18":{"start":{"line":63,"column":16},"end":{"line":63,"column":17}},"19":{"start":{"line":65,"column":17},"end":{"line":65,"column":129}},"20":{"start":{"line":66,"column":2},"end":{"line":66,"column":15}},"21":{"start":{"line":68,"column":28},"end":{"line":68,"column":55}},"22":{"start":{"line":69,"column":27},"end":{"line":69,"column":52}},"23":{"start":{"line":72,"column":2},"end":{"line":76,"column":3}},"24":{"start":{"line":74,"column":4},"end":{"line":74,"column":20}},"25":{"start":{"line":75,"column":4},"end":{"line":75,"column":19}},"26":{"start":{"line":78,"column":21},"end":{"line":78,"column":30}},"27":{"start":{"line":79,"column":23},"end":{"line":79,"column":36}},"28":{"start":{"line":80,"column":20},"end":{"line":80,"column":32}},"29":{"start":{"line":83,"column":15},"end":{"line":83,"column":37}},"30":{"start":{"line":84,"column":2},"end":{"line":102,"column":3}},"31":{"start":{"line":85,"column":21},"end":{"line":85,"column":75}},"32":{"start":{"line":86,"column":22},"end":{"line":86,"column":78}},"33":{"start":{"line":87,"column":4},"end":{"line":87,"column":62}},"34":{"start":{"line":89,"column":4},"end":{"line":89,"column":52}},"35":{"start":{"line":91,"column":4},"end":{"line":93,"column":5}},"36":{"start":{"line":92,"column":6},"end":{"line":92,"column":21}},"37":{"start":{"line":94,"column":4},"end":{"line":94,"column":120}},"38":{"start":{"line":96,"column":4},"end":{"line":96,"column":31}},"39":{"start":{"line":98,"column":4},"end":{"line":98,"column":22}},"40":{"start":{"line":100,"column":4},"end":{"line":100,"column":37}},"41":{"start":{"line":101,"column":4},"end":{"line":101,"column":108}},"42":{"start":{"line":106,"column":2},"end":{"line":106,"column":29}},"43":{"start":{"line":107,"column":2},"end":{"line":107,"column":32}},"44":{"start":{"line":108,"column":2},"end":{"line":108,"column":50}},"45":{"start":{"line":109,"column":2},"end":{"line":109,"column":45}},"46":{"start":{"line":110,"column":2},"end":{"line":110,"column":33}},"47":{"start":{"line":112,"column":2},"end":{"line":112,"column":18}},"48":{"start":{"line":113,"column":2},"end":{"line":113,"column":23}}},"fnMap":{"0":{"name":"compress","decl":{"start":{"line":24,"column":30},"end":{"line":24,"column":38}},"loc":{"start":{"line":24,"column":55},"end":{"line":114,"column":1}},"line":24},"1":{"name":"incProgress","decl":{"start":{"line":27,"column":11},"end":{"line":27,"column":22}},"loc":{"start":{"line":27,"column":33},"end":{"line":32,"column":3}},"line":27},"2":{"name":"setProgress","decl":{"start":{"line":34,"column":11},"end":{"line":34,"column":22}},"loc":{"start":{"line":34,"column":27},"end":{"line":39,"column":3}},"line":34}},"branchMap":{"0":{"loc":{"start":{"line":27,"column":24},"end":{"line":27,"column":31}},"type":"default-arg","locations":[{"start":{"line":27,"column":30},"end":{"line":27,"column":31}}],"line":27},"1":{"loc":{"start":{"line":29,"column":4},"end":{"line":31,"column":5}},"type":"if","locations":[{"start":{"line":29,"column":4},"end":{"line":31,"column":5}},{"start":{"line":29,"column":4},"end":{"line":31,"column":5}}],"line":29},"2":{"loc":{"start":{"line":36,"column":4},"end":{"line":38,"column":5}},"type":"if","locations":[{"start":{"line":36,"column":4},"end":{"line":38,"column":5}},{"start":{"line":36,"column":4},"end":{"line":38,"column":5}}],"line":36},"3":{"loc":{"start":{"line":41,"column":24},"end":{"line":41,"column":50}},"type":"binary-expr","locations":[{"start":{"line":41,"column":24},"end":{"line":41,"column":44}},{"start":{"line":41,"column":48},"end":{"line":41,"column":50}}],"line":41},"4":{"loc":{"start":{"line":58,"column":28},"end":{"line":58,"column":85}},"type":"binary-expr","locations":[{"start":{"line":58,"column":28},"end":{"line":58,"column":51}},{"start":{"line":58,"column":55},"end":{"line":58,"column":85}}],"line":58},"5":{"loc":{"start":{"line":65,"column":60},"end":{"line":65,"column":89}},"type":"binary-expr","locations":[{"start":{"line":65,"column":60},"end":{"line":65,"column":76}},{"start":{"line":65,"column":80},"end":{"line":65,"column":89}}],"line":65},"6":{"loc":{"start":{"line":72,"column":2},"end":{"line":76,"column":3}},"type":"if","locations":[{"start":{"line":72,"column":2},"end":{"line":76,"column":3}},{"start":{"line":72,"column":2},"end":{"line":76,"column":3}}],"line":72},"7":{"loc":{"start":{"line":72,"column":6},"end":{"line":72,"column":45}},"type":"binary-expr","locations":[{"start":{"line":72,"column":6},"end":{"line":72,"column":24}},{"start":{"line":72,"column":28},"end":{"line":72,"column":45}}],"line":72},"8":{"loc":{"start":{"line":84,"column":9},"end":{"line":84,"column":85}},"type":"binary-expr","locations":[{"start":{"line":84,"column":9},"end":{"line":84,"column":26}},{"start":{"line":84,"column":31},"end":{"line":84,"column":56}},{"start":{"line":84,"column":60},"end":{"line":84,"column":84}}],"line":84},"9":{"loc":{"start":{"line":85,"column":21},"end":{"line":85,"column":75}},"type":"cond-expr","locations":[{"start":{"line":85,"column":41},"end":{"line":85,"column":60}},{"start":{"line":85,"column":63},"end":{"line":85,"column":75}}],"line":85},"10":{"loc":{"start":{"line":86,"column":22},"end":{"line":86,"column":78}},"type":"cond-expr","locations":[{"start":{"line":86,"column":42},"end":{"line":86,"column":62}},{"start":{"line":86,"column":65},"end":{"line":86,"column":78}}],"line":86},"11":{"loc":{"start":{"line":91,"column":4},"end":{"line":93,"column":5}},"type":"if","locations":[{"start":{"line":91,"column":4},"end":{"line":93,"column":5}},{"start":{"line":91,"column":4},"end":{"line":93,"column":5}}],"line":91},"12":{"loc":{"start":{"line":94,"column":51},"end":{"line":94,"column":80}},"type":"binary-expr","locations":[{"start":{"line":94,"column":51},"end":{"line":94,"column":67}},{"start":{"line":94,"column":71},"end":{"line":94,"column":80}}],"line":94}},"s":{"0":6,"1":36,"2":36,"3":0,"4":15,"5":15,"6":0,"7":6,"8":6,"9":6,"10":6,"11":6,"12":6,"13":6,"14":6,"15":6,"16":6,"17":6,"18":6,"19":6,"20":6,"21":6,"22":6,"23":6,"24":4,"25":4,"26":2,"27":2,"28":2,"29":2,"30":2,"31":9,"32":9,"33":9,"34":9,"35":9,"36":2,"37":9,"38":9,"39":9,"40":9,"41":9,"42":2,"43":2,"44":2,"45":2,"46":2,"47":2,"48":2},"f":{"0":6,"1":36,"2":15},"b":{"0":[36],"1":[0,36],"2":[0,15],"3":[6,6],"4":[6,0],"5":[6,6],"6":[4,2],"7":[6,4],"8":[11,11,2],"9":[9,0],"10":[9,0],"11":[2,7],"12":[9,9]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"bd5eeeae6dbdf83bc9da09df5676d00c9864b600","contentHash":"c857a120b527908caec9085701b6621ee34fc215abea20588cfc4ec61b3189de"}
-,"/Users/donald/Project/browser-image-compression/lib/index.js": {"path":"/Users/donald/Project/browser-image-compression/lib/index.js","statementMap":{"0":{"start":{"line":35,"column":2},"end":{"line":35,"column":67}},"1":{"start":{"line":36,"column":23},"end":{"line":36,"column":95}},"2":{"start":{"line":37,"column":2},"end":{"line":37,"column":29}},"3":{"start":{"line":39,"column":2},"end":{"line":43,"column":3}},"4":{"start":{"line":40,"column":4},"end":{"line":40,"column":72}},"5":{"start":{"line":41,"column":9},"end":{"line":43,"column":3}},"6":{"start":{"line":42,"column":4},"end":{"line":42,"column":53}},"7":{"start":{"line":46,"column":22},"end":{"line":46,"column":99}},"8":{"start":{"line":54,"column":2},"end":{"line":67,"column":3}},"9":{"start":{"line":55,"column":4},"end":{"line":63,"column":5}},"10":{"start":{"line":58,"column":6},"end":{"line":58,"column":63}},"11":{"start":{"line":62,"column":6},"end":{"line":62,"column":52}},"12":{"start":{"line":66,"column":4},"end":{"line":66,"column":50}},"13":{"start":{"line":69,"column":2},"end":{"line":72,"column":16}},"14":{"start":{"line":70,"column":4},"end":{"line":70,"column":35}},"15":{"start":{"line":71,"column":4},"end":{"line":71,"column":51}},"16":{"start":{"line":74,"column":2},"end":{"line":74,"column":23}},"17":{"start":{"line":77,"column":0},"end":{"line":77,"column":56}},"18":{"start":{"line":78,"column":0},"end":{"line":78,"column":56}},"19":{"start":{"line":79,"column":0},"end":{"line":79,"column":38}},"20":{"start":{"line":80,"column":0},"end":{"line":80,"column":54}},"21":{"start":{"line":81,"column":0},"end":{"line":81,"column":52}},"22":{"start":{"line":82,"column":0},"end":{"line":82,"column":44}},"23":{"start":{"line":83,"column":0},"end":{"line":83,"column":56}},"24":{"start":{"line":84,"column":0},"end":{"line":84,"column":64}},"25":{"start":{"line":85,"column":0},"end":{"line":85,"column":62}},"26":{"start":{"line":86,"column":0},"end":{"line":86,"column":52}},"27":{"start":{"line":87,"column":0},"end":{"line":87,"column":34}}},"fnMap":{"0":{"name":"imageCompression","decl":{"start":{"line":31,"column":15},"end":{"line":31,"column":31}},"loc":{"start":{"line":31,"column":48},"end":{"line":75,"column":1}},"line":31}},"branchMap":{"0":{"loc":{"start":{"line":35,"column":22},"end":{"line":35,"column":67}},"type":"binary-expr","locations":[{"start":{"line":35,"column":22},"end":{"line":35,"column":39}},{"start":{"line":35,"column":43},"end":{"line":35,"column":67}}],"line":35},"1":{"loc":{"start":{"line":36,"column":23},"end":{"line":36,"column":95}},"type":"cond-expr","locations":[{"start":{"line":36,"column":67},"end":{"line":36,"column":87}},{"start":{"line":36,"column":90},"end":{"line":36,"column":95}}],"line":36},"2":{"loc":{"start":{"line":39,"column":2},"end":{"line":43,"column":3}},"type":"if","locations":[{"start":{"line":39,"column":2},"end":{"line":43,"column":3}},{"start":{"line":39,"column":2},"end":{"line":43,"column":3}}],"line":39},"3":{"loc":{"start":{"line":39,"column":8},"end":{"line":39,"column":58}},"type":"binary-expr","locations":[{"start":{"line":39,"column":8},"end":{"line":39,"column":28}},{"start":{"line":39,"column":32},"end":{"line":39,"column":58}}],"line":39},"4":{"loc":{"start":{"line":41,"column":9},"end":{"line":43,"column":3}},"type":"if","locations":[{"start":{"line":41,"column":9},"end":{"line":43,"column":3}},{"start":{"line":41,"column":9},"end":{"line":43,"column":3}}],"line":41},"5":{"loc":{"start":{"line":46,"column":22},"end":{"line":46,"column":99}},"type":"binary-expr","locations":[{"start":{"line":46,"column":22},"end":{"line":46,"column":62}},{"start":{"line":46,"column":66},"end":{"line":46,"column":99}}],"line":46},"6":{"loc":{"start":{"line":54,"column":2},"end":{"line":67,"column":3}},"type":"if","locations":[{"start":{"line":54,"column":2},"end":{"line":67,"column":3}},{"start":{"line":54,"column":2},"end":{"line":67,"column":3}}],"line":54},"7":{"loc":{"start":{"line":54,"column":6},"end":{"line":54,"column":66}},"type":"binary-expr","locations":[{"start":{"line":54,"column":6},"end":{"line":54,"column":18}},{"start":{"line":54,"column":22},"end":{"line":54,"column":50}},{"start":{"line":54,"column":54},"end":{"line":54,"column":66}}],"line":54}},"s":{"0":9,"1":9,"2":9,"3":9,"4":2,"5":7,"6":1,"7":6,"8":6,"9":0,"10":0,"11":0,"12":6,"13":6,"14":6,"15":6,"16":6,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1},"f":{"0":9},"b":{"0":[9,2],"1":[9,0],"2":[2,7],"3":[9,2],"4":[1,6],"5":[6,0],"6":[0,6],"7":[6,0,0]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"08dc0f3d3d0afdd647f3e3d6a70e3768e6eb4404","contentHash":"e023fdfd410ac396140f8c11560d0bdef75e4aa358b4ea746e13e411ba04f6f1"}
-,"/Users/donald/Project/browser-image-compression/lib/utils.js": {"path":"/Users/donald/Project/browser-image-compression/lib/utils.js","statementMap":{"0":{"start":{"line":1,"column":18},"end":{"line":1,"column":47}},"1":{"start":{"line":4,"column":21},"end":{"line":4,"column":124}},"2":{"start":{"line":5,"column":26},"end":{"line":5,"column":113}},"3":{"start":{"line":6,"column":32},"end":{"line":6,"column":131}},"4":{"start":{"line":15,"column":2},"end":{"line":20,"column":4}},"5":{"start":{"line":16,"column":19},"end":{"line":16,"column":41}},"6":{"start":{"line":17,"column":4},"end":{"line":17,"column":48}},"7":{"start":{"line":17,"column":26},"end":{"line":17,"column":48}},"8":{"start":{"line":18,"column":4},"end":{"line":18,"column":37}},"9":{"start":{"line":18,"column":28},"end":{"line":18,"column":37}},"10":{"start":{"line":19,"column":4},"end":{"line":19,"column":30}},"11":{"start":{"line":32,"column":2},"end":{"line":58,"column":4}},"12":{"start":{"line":33,"column":16},"end":{"line":33,"column":34}},"13":{"start":{"line":34,"column":17},"end":{"line":34,"column":43}},"14":{"start":{"line":35,"column":17},"end":{"line":35,"column":29}},"15":{"start":{"line":36,"column":12},"end":{"line":36,"column":23}},"16":{"start":{"line":37,"column":18},"end":{"line":37,"column":35}},"17":{"start":{"line":38,"column":4},"end":{"line":40,"column":5}},"18":{"start":{"line":39,"column":6},"end":{"line":39,"column":35}},"19":{"start":{"line":41,"column":17},"end":{"line":41,"column":50}},"20":{"start":{"line":42,"column":4},"end":{"line":42,"column":24}},"21":{"start":{"line":43,"column":4},"end":{"line":43,"column":36}},"22":{"start":{"line":44,"column":4},"end":{"line":44,"column":17}},"23":{"start":{"line":68,"column":2},"end":{"line":73,"column":4}},"24":{"start":{"line":69,"column":16},"end":{"line":69,"column":27}},"25":{"start":{"line":70,"column":4},"end":{"line":70,"column":35}},"26":{"start":{"line":70,"column":23},"end":{"line":70,"column":35}},"27":{"start":{"line":71,"column":4},"end":{"line":71,"column":34}},"28":{"start":{"line":71,"column":25},"end":{"line":71,"column":34}},"29":{"start":{"line":72,"column":4},"end":{"line":72,"column":17}},"30":{"start":{"line":83,"column":24},"end":{"line":83,"column":65}},"31":{"start":{"line":84,"column":2},"end":{"line":84,"column":55}},"32":{"start":{"line":85,"column":2},"end":{"line":85,"column":15}},"33":{"start":{"line":96,"column":2},"end":{"line":101,"column":3}},"34":{"start":{"line":97,"column":4},"end":{"line":97,"column":39}},"35":{"start":{"line":99,"column":20},"end":{"line":99,"column":50}},"36":{"start":{"line":100,"column":4},"end":{"line":100,"column":34}},"37":{"start":{"line":102,"column":17},"end":{"line":102,"column":39}},"38":{"start":{"line":103,"column":2},"end":{"line":103,"column":22}},"39":{"start":{"line":118,"column":2},"end":{"line":125,"column":3}},"40":{"start":{"line":119,"column":4},"end":{"line":119,"column":66}},"41":{"start":{"line":120,"column":4},"end":{"line":120,"column":24}},"42":{"start":{"line":121,"column":4},"end":{"line":121,"column":40}},"43":{"start":{"line":123,"column":20},"end":{"line":123,"column":55}},"44":{"start":{"line":124,"column":4},"end":{"line":124,"column":72}},"45":{"start":{"line":126,"column":2},"end":{"line":126,"column":13}},"46":{"start":{"line":138,"column":2},"end":{"line":175,"column":4}},"47":{"start":{"line":139,"column":19},"end":{"line":139,"column":41}},"48":{"start":{"line":140,"column":4},"end":{"line":172,"column":5}},"49":{"start":{"line":141,"column":19},"end":{"line":141,"column":48}},"50":{"start":{"line":142,"column":6},"end":{"line":144,"column":7}},"51":{"start":{"line":143,"column":8},"end":{"line":143,"column":26}},"52":{"start":{"line":145,"column":21},"end":{"line":145,"column":36}},"53":{"start":{"line":146,"column":19},"end":{"line":146,"column":20}},"54":{"start":{"line":147,"column":6},"end":{"line":170,"column":7}},"55":{"start":{"line":148,"column":8},"end":{"line":148,"column":70}},"56":{"start":{"line":148,"column":52},"end":{"line":148,"column":70}},"57":{"start":{"line":149,"column":23},"end":{"line":149,"column":52}},"58":{"start":{"line":150,"column":8},"end":{"line":150,"column":19}},"59":{"start":{"line":151,"column":8},"end":{"line":169,"column":9}},"60":{"start":{"line":152,"column":10},"end":{"line":154,"column":11}},"61":{"start":{"line":153,"column":12},"end":{"line":153,"column":30}},"62":{"start":{"line":156,"column":23},"end":{"line":156,"column":67}},"63":{"start":{"line":157,"column":10},"end":{"line":157,"column":54}},"64":{"start":{"line":158,"column":21},"end":{"line":158,"column":51}},"65":{"start":{"line":159,"column":10},"end":{"line":159,"column":21}},"66":{"start":{"line":160,"column":10},"end":{"line":164,"column":11}},"67":{"start":{"line":160,"column":23},"end":{"line":160,"column":24}},"68":{"start":{"line":161,"column":12},"end":{"line":163,"column":13}},"69":{"start":{"line":162,"column":14},"end":{"line":162,"column":75}},"70":{"start":{"line":165,"column":15},"end":{"line":169,"column":9}},"71":{"start":{"line":166,"column":10},"end":{"line":166,"column":15}},"72":{"start":{"line":168,"column":10},"end":{"line":168,"column":49}},"73":{"start":{"line":171,"column":6},"end":{"line":171,"column":24}},"74":{"start":{"line":173,"column":4},"end":{"line":173,"column":37}},"75":{"start":{"line":173,"column":28},"end":{"line":173,"column":37}},"76":{"start":{"line":174,"column":4},"end":{"line":174,"column":34}},"77":{"start":{"line":185,"column":16},"end":{"line":185,"column":28}},"78":{"start":{"line":186,"column":17},"end":{"line":186,"column":30}},"79":{"start":{"line":187,"column":27},"end":{"line":187,"column":51}},"80":{"start":{"line":189,"column":23},"end":{"line":189,"column":115}},"81":{"start":{"line":191,"column":18},"end":{"line":191,"column":24}},"82":{"start":{"line":194,"column":2},"end":{"line":206,"column":3}},"83":{"start":{"line":195,"column":4},"end":{"line":195,"column":56}},"84":{"start":{"line":196,"column":4},"end":{"line":202,"column":5}},"85":{"start":{"line":197,"column":6},"end":{"line":197,"column":40}},"86":{"start":{"line":198,"column":6},"end":{"line":198,"column":60}},"87":{"start":{"line":200,"column":6},"end":{"line":200,"column":59}},"88":{"start":{"line":201,"column":6},"end":{"line":201,"column":41}},"89":{"start":{"line":203,"column":4},"end":{"line":203,"column":66}},"90":{"start":{"line":205,"column":4},"end":{"line":205,"column":31}},"91":{"start":{"line":208,"column":2},"end":{"line":208,"column":18}},"92":{"start":{"line":220,"column":16},"end":{"line":220,"column":28}},"93":{"start":{"line":221,"column":17},"end":{"line":221,"column":30}},"94":{"start":{"line":223,"column":27},"end":{"line":223,"column":60}},"95":{"start":{"line":226,"column":2},"end":{"line":232,"column":3}},"96":{"start":{"line":227,"column":4},"end":{"line":227,"column":28}},"97":{"start":{"line":228,"column":4},"end":{"line":228,"column":28}},"98":{"start":{"line":230,"column":4},"end":{"line":230,"column":27}},"99":{"start":{"line":231,"column":4},"end":{"line":231,"column":29}},"100":{"start":{"line":235,"column":2},"end":{"line":244,"column":3}},"101":{"start":{"line":236,"column":12},"end":{"line":236,"column":49}},"102":{"start":{"line":236,"column":50},"end":{"line":236,"column":56}},"103":{"start":{"line":237,"column":12},"end":{"line":237,"column":55}},"104":{"start":{"line":237,"column":56},"end":{"line":237,"column":62}},"105":{"start":{"line":238,"column":12},"end":{"line":238,"column":50}},"106":{"start":{"line":238,"column":51},"end":{"line":238,"column":57}},"107":{"start":{"line":239,"column":12},"end":{"line":239,"column":44}},"108":{"start":{"line":239,"column":45},"end":{"line":239,"column":51}},"109":{"start":{"line":240,"column":12},"end":{"line":240,"column":50}},"110":{"start":{"line":240,"column":51},"end":{"line":240,"column":57}},"111":{"start":{"line":241,"column":12},"end":{"line":241,"column":55}},"112":{"start":{"line":241,"column":56},"end":{"line":241,"column":62}},"113":{"start":{"line":242,"column":12},"end":{"line":242,"column":49}},"114":{"start":{"line":242,"column":50},"end":{"line":242,"column":56}},"115":{"start":{"line":243,"column":13},"end":{"line":243,"column":19}},"116":{"start":{"line":246,"column":2},"end":{"line":246,"column":44}},"117":{"start":{"line":248,"column":2},"end":{"line":248,"column":29}},"118":{"start":{"line":250,"column":2},"end":{"line":250,"column":18}},"119":{"start":{"line":262,"column":2},"end":{"line":271,"column":3}},"120":{"start":{"line":263,"column":4},"end":{"line":263,"column":47}},"121":{"start":{"line":264,"column":4},"end":{"line":264,"column":33}},"122":{"start":{"line":265,"column":4},"end":{"line":267,"column":5}},"123":{"start":{"line":266,"column":6},"end":{"line":266,"column":67}},"124":{"start":{"line":269,"column":4},"end":{"line":269,"column":45}},"125":{"start":{"line":270,"column":4},"end":{"line":270,"column":33}},"126":{"start":{"line":272,"column":2},"end":{"line":272,"column":22}},"127":{"start":{"line":273,"column":2},"end":{"line":273,"column":24}},"128":{"start":{"line":274,"column":2},"end":{"line":274,"column":22}},"129":{"start":{"line":283,"column":2},"end":{"line":283,"column":18}},"130":{"start":{"line":284,"column":2},"end":{"line":284,"column":19}},"131":{"start":{"line":287,"column":0},"end":{"line":294,"column":1}},"132":{"start":{"line":289,"column":2},"end":{"line":293,"column":3}},"133":{"start":{"line":290,"column":4},"end":{"line":292,"column":33}}},"fnMap":{"0":{"name":"getDataUrlFromFile","decl":{"start":{"line":14,"column":16},"end":{"line":14,"column":34}},"loc":{"start":{"line":14,"column":42},"end":{"line":21,"column":1}},"line":14},"1":{"name":"(anonymous_1)","decl":{"start":{"line":15,"column":21},"end":{"line":15,"column":22}},"loc":{"start":{"line":15,"column":42},"end":{"line":20,"column":3}},"line":15},"2":{"name":"(anonymous_2)","decl":{"start":{"line":17,"column":20},"end":{"line":17,"column":21}},"loc":{"start":{"line":17,"column":26},"end":{"line":17,"column":48}},"line":17},"3":{"name":"(anonymous_3)","decl":{"start":{"line":18,"column":21},"end":{"line":18,"column":22}},"loc":{"start":{"line":18,"column":28},"end":{"line":18,"column":37}},"line":18},"4":{"name":"getFilefromDataUrl","decl":{"start":{"line":31,"column":16},"end":{"line":31,"column":34}},"loc":{"start":{"line":31,"column":82},"end":{"line":59,"column":1}},"line":31},"5":{"name":"(anonymous_5)","decl":{"start":{"line":32,"column":21},"end":{"line":32,"column":22}},"loc":{"start":{"line":32,"column":34},"end":{"line":58,"column":3}},"line":32},"6":{"name":"loadImage","decl":{"start":{"line":67,"column":16},"end":{"line":67,"column":25}},"loc":{"start":{"line":67,"column":32},"end":{"line":74,"column":1}},"line":67},"7":{"name":"(anonymous_7)","decl":{"start":{"line":68,"column":21},"end":{"line":68,"column":22}},"loc":{"start":{"line":68,"column":42},"end":{"line":73,"column":3}},"line":68},"8":{"name":"(anonymous_8)","decl":{"start":{"line":70,"column":17},"end":{"line":70,"column":18}},"loc":{"start":{"line":70,"column":23},"end":{"line":70,"column":35}},"line":70},"9":{"name":"(anonymous_9)","decl":{"start":{"line":71,"column":18},"end":{"line":71,"column":19}},"loc":{"start":{"line":71,"column":25},"end":{"line":71,"column":34}},"line":71},"10":{"name":"drawImageInCanvas","decl":{"start":{"line":82,"column":16},"end":{"line":82,"column":33}},"loc":{"start":{"line":82,"column":40},"end":{"line":86,"column":1}},"line":82},"11":{"name":"drawFileInCanvas","decl":{"start":{"line":94,"column":22},"end":{"line":94,"column":38}},"loc":{"start":{"line":94,"column":46},"end":{"line":104,"column":1}},"line":94},"12":{"name":"canvasToFile","decl":{"start":{"line":116,"column":22},"end":{"line":116,"column":34}},"loc":{"start":{"line":116,"column":95},"end":{"line":127,"column":1}},"line":116},"13":{"name":"getExifOrientation","decl":{"start":{"line":137,"column":16},"end":{"line":137,"column":34}},"loc":{"start":{"line":137,"column":42},"end":{"line":176,"column":1}},"line":137},"14":{"name":"(anonymous_14)","decl":{"start":{"line":138,"column":21},"end":{"line":138,"column":22}},"loc":{"start":{"line":138,"column":42},"end":{"line":175,"column":3}},"line":138},"15":{"name":"(anonymous_15)","decl":{"start":{"line":140,"column":20},"end":{"line":140,"column":21}},"loc":{"start":{"line":140,"column":27},"end":{"line":172,"column":5}},"line":140},"16":{"name":"(anonymous_16)","decl":{"start":{"line":173,"column":21},"end":{"line":173,"column":22}},"loc":{"start":{"line":173,"column":28},"end":{"line":173,"column":37}},"line":173},"17":{"name":"handleMaxWidthOrHeight","decl":{"start":{"line":184,"column":16},"end":{"line":184,"column":38}},"loc":{"start":{"line":184,"column":57},"end":{"line":209,"column":1}},"line":184},"18":{"name":"followExifOrientation","decl":{"start":{"line":219,"column":16},"end":{"line":219,"column":37}},"loc":{"start":{"line":219,"column":64},"end":{"line":251,"column":1}},"line":219},"19":{"name":"getNewCanvasAndCtx","decl":{"start":{"line":259,"column":16},"end":{"line":259,"column":34}},"loc":{"start":{"line":259,"column":51},"end":{"line":275,"column":1}},"line":259},"20":{"name":"cleanupCanvasMemory","decl":{"start":{"line":282,"column":16},"end":{"line":282,"column":35}},"loc":{"start":{"line":282,"column":45},"end":{"line":285,"column":1}},"line":282},"21":{"name":"(anonymous_21)","decl":{"start":{"line":289,"column":41},"end":{"line":289,"column":42}},"loc":{"start":{"line":289,"column":58},"end":{"line":293,"column":3}},"line":289}},"branchMap":{"0":{"loc":{"start":{"line":4,"column":21},"end":{"line":4,"column":124}},"type":"binary-expr","locations":[{"start":{"line":4,"column":21},"end":{"line":4,"column":30}},{"start":{"line":4,"column":34},"end":{"line":4,"column":48}},{"start":{"line":4,"column":52},"end":{"line":4,"column":74}},{"start":{"line":4,"column":78},"end":{"line":4,"column":124}}],"line":4},"1":{"loc":{"start":{"line":5,"column":26},"end":{"line":5,"column":113}},"type":"binary-expr","locations":[{"start":{"line":5,"column":26},"end":{"line":5,"column":35}},{"start":{"line":5,"column":41},"end":{"line":5,"column":53}},{"start":{"line":5,"column":57},"end":{"line":5,"column":103}},{"start":{"line":5,"column":108},"end":{"line":5,"column":112}}],"line":5},"2":{"loc":{"start":{"line":6,"column":32},"end":{"line":6,"column":131}},"type":"binary-expr","locations":[{"start":{"line":6,"column":32},"end":{"line":6,"column":41}},{"start":{"line":6,"column":47},"end":{"line":6,"column":59}},{"start":{"line":6,"column":63},"end":{"line":6,"column":115}},{"start":{"line":6,"column":120},"end":{"line":6,"column":130}}],"line":6},"3":{"loc":{"start":{"line":31,"column":55},"end":{"line":31,"column":80}},"type":"default-arg","locations":[{"start":{"line":31,"column":70},"end":{"line":31,"column":80}}],"line":31},"4":{"loc":{"start":{"line":116,"column":82},"end":{"line":116,"column":93}},"type":"default-arg","locations":[{"start":{"line":116,"column":92},"end":{"line":116,"column":93}}],"line":116},"5":{"loc":{"start":{"line":118,"column":2},"end":{"line":125,"column":3}},"type":"if","locations":[{"start":{"line":118,"column":2},"end":{"line":125,"column":3}},{"start":{"line":118,"column":2},"end":{"line":125,"column":3}}],"line":118},"6":{"loc":{"start":{"line":118,"column":6},"end":{"line":118,"column":80}},"type":"binary-expr","locations":[{"start":{"line":118,"column":6},"end":{"line":118,"column":43}},{"start":{"line":118,"column":47},"end":{"line":118,"column":80}}],"line":118},"7":{"loc":{"start":{"line":142,"column":6},"end":{"line":144,"column":7}},"type":"if","locations":[{"start":{"line":142,"column":6},"end":{"line":144,"column":7}},{"start":{"line":142,"column":6},"end":{"line":144,"column":7}}],"line":142},"8":{"loc":{"start":{"line":148,"column":8},"end":{"line":148,"column":70}},"type":"if","locations":[{"start":{"line":148,"column":8},"end":{"line":148,"column":70}},{"start":{"line":148,"column":8},"end":{"line":148,"column":70}}],"line":148},"9":{"loc":{"start":{"line":151,"column":8},"end":{"line":169,"column":9}},"type":"if","locations":[{"start":{"line":151,"column":8},"end":{"line":169,"column":9}},{"start":{"line":151,"column":8},"end":{"line":169,"column":9}}],"line":151},"10":{"loc":{"start":{"line":152,"column":10},"end":{"line":154,"column":11}},"type":"if","locations":[{"start":{"line":152,"column":10},"end":{"line":154,"column":11}},{"start":{"line":152,"column":10},"end":{"line":154,"column":11}}],"line":152},"11":{"loc":{"start":{"line":161,"column":12},"end":{"line":163,"column":13}},"type":"if","locations":[{"start":{"line":161,"column":12},"end":{"line":163,"column":13}},{"start":{"line":161,"column":12},"end":{"line":163,"column":13}}],"line":161},"12":{"loc":{"start":{"line":165,"column":15},"end":{"line":169,"column":9}},"type":"if","locations":[{"start":{"line":165,"column":15},"end":{"line":169,"column":9}},{"start":{"line":165,"column":15},"end":{"line":169,"column":9}}],"line":165},"13":{"loc":{"start":{"line":189,"column":23},"end":{"line":189,"column":115}},"type":"binary-expr","locations":[{"start":{"line":189,"column":23},"end":{"line":189,"column":56}},{"start":{"line":189,"column":61},"end":{"line":189,"column":85}},{"start":{"line":189,"column":89},"end":{"line":189,"column":114}}],"line":189},"14":{"loc":{"start":{"line":194,"column":2},"end":{"line":206,"column":3}},"type":"if","locations":[{"start":{"line":194,"column":2},"end":{"line":206,"column":3}},{"start":{"line":194,"column":2},"end":{"line":206,"column":3}}],"line":194},"15":{"loc":{"start":{"line":196,"column":4},"end":{"line":202,"column":5}},"type":"if","locations":[{"start":{"line":196,"column":4},"end":{"line":202,"column":5}},{"start":{"line":196,"column":4},"end":{"line":202,"column":5}}],"line":196},"16":{"loc":{"start":{"line":226,"column":2},"end":{"line":232,"column":3}},"type":"if","locations":[{"start":{"line":226,"column":2},"end":{"line":232,"column":3}},{"start":{"line":226,"column":2},"end":{"line":232,"column":3}}],"line":226},"17":{"loc":{"start":{"line":226,"column":6},"end":{"line":226,"column":48}},"type":"binary-expr","locations":[{"start":{"line":226,"column":6},"end":{"line":226,"column":25}},{"start":{"line":226,"column":29},"end":{"line":226,"column":48}}],"line":226},"18":{"loc":{"start":{"line":235,"column":2},"end":{"line":244,"column":3}},"type":"switch","locations":[{"start":{"line":236,"column":4},"end":{"line":236,"column":56}},{"start":{"line":237,"column":4},"end":{"line":237,"column":62}},{"start":{"line":238,"column":4},"end":{"line":238,"column":57}},{"start":{"line":239,"column":4},"end":{"line":239,"column":51}},{"start":{"line":240,"column":4},"end":{"line":240,"column":57}},{"start":{"line":241,"column":4},"end":{"line":241,"column":62}},{"start":{"line":242,"column":4},"end":{"line":242,"column":56}},{"start":{"line":243,"column":4},"end":{"line":243,"column":19}}],"line":235},"19":{"loc":{"start":{"line":265,"column":4},"end":{"line":267,"column":5}},"type":"if","locations":[{"start":{"line":265,"column":4},"end":{"line":267,"column":5}},{"start":{"line":265,"column":4},"end":{"line":267,"column":5}}],"line":265},"20":{"loc":{"start":{"line":287,"column":0},"end":{"line":294,"column":1}},"type":"if","locations":[{"start":{"line":287,"column":0},"end":{"line":294,"column":1}},{"start":{"line":287,"column":0},"end":{"line":294,"column":1}}],"line":287},"21":{"loc":{"start":{"line":289,"column":21},"end":{"line":293,"column":3}},"type":"binary-expr","locations":[{"start":{"line":289,"column":21},"end":{"line":289,"column":37}},{"start":{"line":289,"column":41},"end":{"line":293,"column":3}}],"line":289},"22":{"loc":{"start":{"line":290,"column":11},"end":{"line":292,"column":33}},"type":"binary-expr","locations":[{"start":{"line":290,"column":11},"end":{"line":290,"column":36}},{"start":{"line":291,"column":6},"end":{"line":291,"column":21}},{"start":{"line":292,"column":6},"end":{"line":292,"column":33}}],"line":290}},"s":{"0":1,"1":1,"2":1,"3":1,"4":13,"5":13,"6":13,"7":13,"8":13,"9":0,"10":13,"11":17,"12":17,"13":17,"14":17,"15":17,"16":17,"17":17,"18":23716492,"19":17,"20":17,"21":17,"22":17,"23":13,"24":13,"25":13,"26":13,"27":13,"28":0,"29":13,"30":12,"31":12,"32":12,"33":11,"34":11,"35":11,"36":11,"37":11,"38":11,"39":15,"40":0,"41":0,"42":0,"43":15,"44":15,"45":15,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":1,"75":0,"76":1,"77":6,"78":6,"79":6,"80":6,"81":6,"82":6,"83":4,"84":4,"85":2,"86":2,"87":2,"88":2,"89":4,"90":4,"91":6,"92":6,"93":6,"94":6,"95":6,"96":0,"97":0,"98":6,"99":6,"100":6,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":6,"116":6,"117":6,"118":6,"119":31,"120":31,"121":0,"122":0,"123":0,"124":31,"125":31,"126":31,"127":31,"128":31,"129":29,"130":29,"131":1,"132":1,"133":0},"f":{"0":13,"1":13,"2":13,"3":0,"4":17,"5":17,"6":13,"7":13,"8":13,"9":0,"10":12,"11":11,"12":15,"13":1,"14":1,"15":1,"16":0,"17":6,"18":6,"19":31,"20":29,"21":0},"b":{"0":[1,1,0,0],"1":[1,1,0,1],"2":[1,1,0,1],"3":[2],"4":[0],"5":[0,15],"6":[15,0],"7":[1,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[6,4,0],"14":[4,2],"15":[2,2],"16":[0,6],"17":[6,0],"18":[0,0,0,0,0,0,0,6],"19":[0,0],"20":[1,0],"21":[1,0],"22":[0,0,0]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"89946c86beb56bc10293a3009875d5803ec86b81","contentHash":"0bf45569af2ce38715815acbb4983538d9102afb53873ae5ebeb71dd511d550d"}
+{"/Users/sam/Projects/browser-image-compression/lib/image-compression.js": {"path":"/Users/sam/Projects/browser-image-compression/lib/image-compression.js","statementMap":{"0":{"start":{"line":29,"column":17},"end":{"line":29,"column":18}},"1":{"start":{"line":32,"column":4},"end":{"line":32,"column":19}},"2":{"start":{"line":33,"column":4},"end":{"line":35,"column":5}},"3":{"start":{"line":34,"column":6},"end":{"line":34,"column":49}},"4":{"start":{"line":39,"column":4},"end":{"line":39,"column":51}},"5":{"start":{"line":40,"column":4},"end":{"line":42,"column":5}},"6":{"start":{"line":41,"column":6},"end":{"line":41,"column":34}},"7":{"start":{"line":45,"column":24},"end":{"line":45,"column":50}},"8":{"start":{"line":47,"column":22},"end":{"line":47,"column":53}},"9":{"start":{"line":49,"column":2},"end":{"line":49,"column":15}},"10":{"start":{"line":52,"column":26},"end":{"line":52,"column":54}},"11":{"start":{"line":54,"column":2},"end":{"line":54,"column":15}},"12":{"start":{"line":57,"column":28},"end":{"line":57,"column":71}},"13":{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},"14":{"start":{"line":60,"column":4},"end":{"line":60,"column":61}},"15":{"start":{"line":62,"column":2},"end":{"line":64,"column":3}},"16":{"start":{"line":63,"column":4},"end":{"line":63,"column":62}},"17":{"start":{"line":66,"column":2},"end":{"line":66,"column":15}},"18":{"start":{"line":69,"column":2},"end":{"line":69,"column":85}},"19":{"start":{"line":70,"column":2},"end":{"line":70,"column":15}},"20":{"start":{"line":71,"column":33},"end":{"line":71,"column":100}},"21":{"start":{"line":72,"column":2},"end":{"line":72,"column":15}},"22":{"start":{"line":74,"column":16},"end":{"line":74,"column":17}},"23":{"start":{"line":76,"column":17},"end":{"line":76,"column":129}},"24":{"start":{"line":77,"column":2},"end":{"line":77,"column":15}},"25":{"start":{"line":79,"column":28},"end":{"line":79,"column":55}},"26":{"start":{"line":80,"column":27},"end":{"line":80,"column":52}},"27":{"start":{"line":83,"column":2},"end":{"line":87,"column":3}},"28":{"start":{"line":85,"column":4},"end":{"line":85,"column":20}},"29":{"start":{"line":86,"column":4},"end":{"line":86,"column":19}},"30":{"start":{"line":89,"column":21},"end":{"line":89,"column":30}},"31":{"start":{"line":90,"column":23},"end":{"line":90,"column":36}},"32":{"start":{"line":91,"column":20},"end":{"line":91,"column":32}},"33":{"start":{"line":94,"column":15},"end":{"line":94,"column":37}},"34":{"start":{"line":95,"column":2},"end":{"line":113,"column":3}},"35":{"start":{"line":96,"column":21},"end":{"line":96,"column":75}},"36":{"start":{"line":97,"column":22},"end":{"line":97,"column":78}},"37":{"start":{"line":98,"column":4},"end":{"line":98,"column":62}},"38":{"start":{"line":100,"column":4},"end":{"line":100,"column":52}},"39":{"start":{"line":102,"column":4},"end":{"line":104,"column":5}},"40":{"start":{"line":103,"column":6},"end":{"line":103,"column":21}},"41":{"start":{"line":105,"column":4},"end":{"line":105,"column":120}},"42":{"start":{"line":107,"column":4},"end":{"line":107,"column":31}},"43":{"start":{"line":109,"column":4},"end":{"line":109,"column":22}},"44":{"start":{"line":111,"column":4},"end":{"line":111,"column":37}},"45":{"start":{"line":112,"column":4},"end":{"line":112,"column":108}},"46":{"start":{"line":117,"column":2},"end":{"line":117,"column":29}},"47":{"start":{"line":118,"column":2},"end":{"line":118,"column":32}},"48":{"start":{"line":119,"column":2},"end":{"line":119,"column":42}},"49":{"start":{"line":120,"column":2},"end":{"line":120,"column":45}},"50":{"start":{"line":121,"column":2},"end":{"line":121,"column":33}},"51":{"start":{"line":123,"column":2},"end":{"line":123,"column":18}},"52":{"start":{"line":124,"column":2},"end":{"line":124,"column":23}}},"fnMap":{"0":{"name":"compress","decl":{"start":{"line":28,"column":30},"end":{"line":28,"column":38}},"loc":{"start":{"line":28,"column":55},"end":{"line":125,"column":1}},"line":28},"1":{"name":"incProgress","decl":{"start":{"line":31,"column":11},"end":{"line":31,"column":22}},"loc":{"start":{"line":31,"column":33},"end":{"line":36,"column":3}},"line":31},"2":{"name":"setProgress","decl":{"start":{"line":38,"column":11},"end":{"line":38,"column":22}},"loc":{"start":{"line":38,"column":27},"end":{"line":43,"column":3}},"line":38}},"branchMap":{"0":{"loc":{"start":{"line":31,"column":24},"end":{"line":31,"column":31}},"type":"default-arg","locations":[{"start":{"line":31,"column":30},"end":{"line":31,"column":31}}],"line":31},"1":{"loc":{"start":{"line":33,"column":4},"end":{"line":35,"column":5}},"type":"if","locations":[{"start":{"line":33,"column":4},"end":{"line":35,"column":5}},{"start":{"line":33,"column":4},"end":{"line":35,"column":5}}],"line":33},"2":{"loc":{"start":{"line":40,"column":4},"end":{"line":42,"column":5}},"type":"if","locations":[{"start":{"line":40,"column":4},"end":{"line":42,"column":5}},{"start":{"line":40,"column":4},"end":{"line":42,"column":5}}],"line":40},"3":{"loc":{"start":{"line":45,"column":24},"end":{"line":45,"column":50}},"type":"binary-expr","locations":[{"start":{"line":45,"column":24},"end":{"line":45,"column":44}},{"start":{"line":45,"column":48},"end":{"line":45,"column":50}}],"line":45},"4":{"loc":{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},"type":"if","locations":[{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},{"start":{"line":59,"column":2},"end":{"line":61,"column":3}}],"line":59},"5":{"loc":{"start":{"line":62,"column":2},"end":{"line":64,"column":3}},"type":"if","locations":[{"start":{"line":62,"column":2},"end":{"line":64,"column":3}},{"start":{"line":62,"column":2},"end":{"line":64,"column":3}}],"line":62},"6":{"loc":{"start":{"line":69,"column":28},"end":{"line":69,"column":85}},"type":"binary-expr","locations":[{"start":{"line":69,"column":28},"end":{"line":69,"column":51}},{"start":{"line":69,"column":55},"end":{"line":69,"column":85}}],"line":69},"7":{"loc":{"start":{"line":76,"column":60},"end":{"line":76,"column":89}},"type":"binary-expr","locations":[{"start":{"line":76,"column":60},"end":{"line":76,"column":76}},{"start":{"line":76,"column":80},"end":{"line":76,"column":89}}],"line":76},"8":{"loc":{"start":{"line":83,"column":2},"end":{"line":87,"column":3}},"type":"if","locations":[{"start":{"line":83,"column":2},"end":{"line":87,"column":3}},{"start":{"line":83,"column":2},"end":{"line":87,"column":3}}],"line":83},"9":{"loc":{"start":{"line":83,"column":6},"end":{"line":83,"column":45}},"type":"binary-expr","locations":[{"start":{"line":83,"column":6},"end":{"line":83,"column":24}},{"start":{"line":83,"column":28},"end":{"line":83,"column":45}}],"line":83},"10":{"loc":{"start":{"line":95,"column":9},"end":{"line":95,"column":85}},"type":"binary-expr","locations":[{"start":{"line":95,"column":9},"end":{"line":95,"column":26}},{"start":{"line":95,"column":31},"end":{"line":95,"column":56}},{"start":{"line":95,"column":60},"end":{"line":95,"column":84}}],"line":95},"11":{"loc":{"start":{"line":96,"column":21},"end":{"line":96,"column":75}},"type":"cond-expr","locations":[{"start":{"line":96,"column":41},"end":{"line":96,"column":60}},{"start":{"line":96,"column":63},"end":{"line":96,"column":75}}],"line":96},"12":{"loc":{"start":{"line":97,"column":22},"end":{"line":97,"column":78}},"type":"cond-expr","locations":[{"start":{"line":97,"column":42},"end":{"line":97,"column":62}},{"start":{"line":97,"column":65},"end":{"line":97,"column":78}}],"line":97},"13":{"loc":{"start":{"line":102,"column":4},"end":{"line":104,"column":5}},"type":"if","locations":[{"start":{"line":102,"column":4},"end":{"line":104,"column":5}},{"start":{"line":102,"column":4},"end":{"line":104,"column":5}}],"line":102},"14":{"loc":{"start":{"line":105,"column":51},"end":{"line":105,"column":80}},"type":"binary-expr","locations":[{"start":{"line":105,"column":51},"end":{"line":105,"column":67}},{"start":{"line":105,"column":71},"end":{"line":105,"column":80}}],"line":105}},"s":{"0":8,"1":48,"2":48,"3":0,"4":17,"5":17,"6":0,"7":8,"8":8,"9":8,"10":8,"11":8,"12":8,"13":8,"14":1,"15":8,"16":1,"17":8,"18":8,"19":8,"20":8,"21":8,"22":8,"23":8,"24":8,"25":8,"26":8,"27":8,"28":6,"29":6,"30":2,"31":2,"32":2,"33":2,"34":2,"35":9,"36":9,"37":9,"38":9,"39":9,"40":2,"41":9,"42":9,"43":9,"44":9,"45":9,"46":2,"47":2,"48":2,"49":2,"50":2,"51":2,"52":2},"f":{"0":8,"1":48,"2":17},"b":{"0":[48],"1":[0,48],"2":[0,17],"3":[8,8],"4":[1,7],"5":[1,7],"6":[8,0],"7":[8,8],"8":[6,2],"9":[8,6],"10":[11,11,2],"11":[9,0],"12":[9,0],"13":[2,7],"14":[9,9]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"709cea0b4a06083962be28f32e99554524795daa","contentHash":"e2a933839c66d3c05a3327e37344fb33abcd4d2882a1a1c3925125045794bcaf"}
+,"/Users/sam/Projects/browser-image-compression/lib/index.js": {"path":"/Users/sam/Projects/browser-image-compression/lib/index.js","statementMap":{"0":{"start":{"line":39,"column":2},"end":{"line":39,"column":67}},"1":{"start":{"line":40,"column":23},"end":{"line":40,"column":95}},"2":{"start":{"line":41,"column":2},"end":{"line":41,"column":29}},"3":{"start":{"line":43,"column":2},"end":{"line":47,"column":3}},"4":{"start":{"line":44,"column":4},"end":{"line":44,"column":72}},"5":{"start":{"line":45,"column":9},"end":{"line":47,"column":3}},"6":{"start":{"line":46,"column":4},"end":{"line":46,"column":53}},"7":{"start":{"line":50,"column":22},"end":{"line":50,"column":99}},"8":{"start":{"line":58,"column":2},"end":{"line":71,"column":3}},"9":{"start":{"line":59,"column":4},"end":{"line":67,"column":5}},"10":{"start":{"line":62,"column":6},"end":{"line":62,"column":63}},"11":{"start":{"line":66,"column":6},"end":{"line":66,"column":52}},"12":{"start":{"line":70,"column":4},"end":{"line":70,"column":50}},"13":{"start":{"line":73,"column":2},"end":{"line":76,"column":16}},"14":{"start":{"line":74,"column":4},"end":{"line":74,"column":35}},"15":{"start":{"line":75,"column":4},"end":{"line":75,"column":51}},"16":{"start":{"line":78,"column":2},"end":{"line":78,"column":23}},"17":{"start":{"line":81,"column":0},"end":{"line":81,"column":56}},"18":{"start":{"line":82,"column":0},"end":{"line":82,"column":56}},"19":{"start":{"line":83,"column":0},"end":{"line":83,"column":38}},"20":{"start":{"line":84,"column":0},"end":{"line":84,"column":54}},"21":{"start":{"line":85,"column":0},"end":{"line":85,"column":52}},"22":{"start":{"line":86,"column":0},"end":{"line":86,"column":44}},"23":{"start":{"line":87,"column":0},"end":{"line":87,"column":56}},"24":{"start":{"line":88,"column":0},"end":{"line":88,"column":64}},"25":{"start":{"line":89,"column":0},"end":{"line":89,"column":48}},"26":{"start":{"line":90,"column":0},"end":{"line":90,"column":50}},"27":{"start":{"line":91,"column":0},"end":{"line":91,"column":62}},"28":{"start":{"line":92,"column":0},"end":{"line":92,"column":52}},"29":{"start":{"line":93,"column":0},"end":{"line":93,"column":34}}},"fnMap":{"0":{"name":"imageCompression","decl":{"start":{"line":35,"column":15},"end":{"line":35,"column":31}},"loc":{"start":{"line":35,"column":48},"end":{"line":79,"column":1}},"line":35}},"branchMap":{"0":{"loc":{"start":{"line":39,"column":22},"end":{"line":39,"column":67}},"type":"binary-expr","locations":[{"start":{"line":39,"column":22},"end":{"line":39,"column":39}},{"start":{"line":39,"column":43},"end":{"line":39,"column":67}}],"line":39},"1":{"loc":{"start":{"line":40,"column":23},"end":{"line":40,"column":95}},"type":"cond-expr","locations":[{"start":{"line":40,"column":67},"end":{"line":40,"column":87}},{"start":{"line":40,"column":90},"end":{"line":40,"column":95}}],"line":40},"2":{"loc":{"start":{"line":43,"column":2},"end":{"line":47,"column":3}},"type":"if","locations":[{"start":{"line":43,"column":2},"end":{"line":47,"column":3}},{"start":{"line":43,"column":2},"end":{"line":47,"column":3}}],"line":43},"3":{"loc":{"start":{"line":43,"column":8},"end":{"line":43,"column":58}},"type":"binary-expr","locations":[{"start":{"line":43,"column":8},"end":{"line":43,"column":28}},{"start":{"line":43,"column":32},"end":{"line":43,"column":58}}],"line":43},"4":{"loc":{"start":{"line":45,"column":9},"end":{"line":47,"column":3}},"type":"if","locations":[{"start":{"line":45,"column":9},"end":{"line":47,"column":3}},{"start":{"line":45,"column":9},"end":{"line":47,"column":3}}],"line":45},"5":{"loc":{"start":{"line":50,"column":22},"end":{"line":50,"column":99}},"type":"binary-expr","locations":[{"start":{"line":50,"column":22},"end":{"line":50,"column":62}},{"start":{"line":50,"column":66},"end":{"line":50,"column":99}}],"line":50},"6":{"loc":{"start":{"line":58,"column":2},"end":{"line":71,"column":3}},"type":"if","locations":[{"start":{"line":58,"column":2},"end":{"line":71,"column":3}},{"start":{"line":58,"column":2},"end":{"line":71,"column":3}}],"line":58},"7":{"loc":{"start":{"line":58,"column":6},"end":{"line":58,"column":66}},"type":"binary-expr","locations":[{"start":{"line":58,"column":6},"end":{"line":58,"column":18}},{"start":{"line":58,"column":22},"end":{"line":58,"column":50}},{"start":{"line":58,"column":54},"end":{"line":58,"column":66}}],"line":58}},"s":{"0":11,"1":11,"2":11,"3":11,"4":2,"5":9,"6":1,"7":8,"8":8,"9":0,"10":0,"11":0,"12":8,"13":8,"14":8,"15":8,"16":8,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1},"f":{"0":11},"b":{"0":[11,4],"1":[11,0],"2":[2,9],"3":[11,2],"4":[1,8],"5":[8,0],"6":[0,8],"7":[8,0,0]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"ece0c401dc0b2cadb06f0df036716a42d55cc15a","contentHash":"9f362bd90bc200385b1472ddc5c36d09999d4634073d658b3b20b6ccdf876f3a"}
+,"/Users/sam/Projects/browser-image-compression/lib/utils.js": {"path":"/Users/sam/Projects/browser-image-compression/lib/utils.js","statementMap":{"0":{"start":{"line":1,"column":18},"end":{"line":1,"column":47}},"1":{"start":{"line":4,"column":21},"end":{"line":4,"column":124}},"2":{"start":{"line":5,"column":26},"end":{"line":5,"column":113}},"3":{"start":{"line":6,"column":32},"end":{"line":6,"column":131}},"4":{"start":{"line":15,"column":2},"end":{"line":20,"column":4}},"5":{"start":{"line":16,"column":19},"end":{"line":16,"column":41}},"6":{"start":{"line":17,"column":4},"end":{"line":17,"column":48}},"7":{"start":{"line":17,"column":26},"end":{"line":17,"column":48}},"8":{"start":{"line":18,"column":4},"end":{"line":18,"column":37}},"9":{"start":{"line":18,"column":28},"end":{"line":18,"column":37}},"10":{"start":{"line":19,"column":4},"end":{"line":19,"column":30}},"11":{"start":{"line":32,"column":2},"end":{"line":58,"column":4}},"12":{"start":{"line":33,"column":16},"end":{"line":33,"column":34}},"13":{"start":{"line":34,"column":17},"end":{"line":34,"column":43}},"14":{"start":{"line":35,"column":17},"end":{"line":35,"column":29}},"15":{"start":{"line":36,"column":12},"end":{"line":36,"column":23}},"16":{"start":{"line":37,"column":18},"end":{"line":37,"column":35}},"17":{"start":{"line":38,"column":4},"end":{"line":40,"column":5}},"18":{"start":{"line":39,"column":6},"end":{"line":39,"column":35}},"19":{"start":{"line":41,"column":17},"end":{"line":41,"column":50}},"20":{"start":{"line":42,"column":4},"end":{"line":42,"column":24}},"21":{"start":{"line":43,"column":4},"end":{"line":43,"column":36}},"22":{"start":{"line":44,"column":4},"end":{"line":44,"column":17}},"23":{"start":{"line":68,"column":2},"end":{"line":73,"column":4}},"24":{"start":{"line":69,"column":16},"end":{"line":69,"column":27}},"25":{"start":{"line":70,"column":4},"end":{"line":70,"column":35}},"26":{"start":{"line":70,"column":23},"end":{"line":70,"column":35}},"27":{"start":{"line":71,"column":4},"end":{"line":71,"column":34}},"28":{"start":{"line":71,"column":25},"end":{"line":71,"column":34}},"29":{"start":{"line":72,"column":4},"end":{"line":72,"column":17}},"30":{"start":{"line":83,"column":24},"end":{"line":83,"column":65}},"31":{"start":{"line":84,"column":2},"end":{"line":84,"column":55}},"32":{"start":{"line":85,"column":2},"end":{"line":85,"column":15}},"33":{"start":{"line":96,"column":2},"end":{"line":101,"column":3}},"34":{"start":{"line":97,"column":4},"end":{"line":97,"column":39}},"35":{"start":{"line":99,"column":20},"end":{"line":99,"column":50}},"36":{"start":{"line":100,"column":4},"end":{"line":100,"column":34}},"37":{"start":{"line":102,"column":17},"end":{"line":102,"column":39}},"38":{"start":{"line":103,"column":2},"end":{"line":103,"column":22}},"39":{"start":{"line":118,"column":2},"end":{"line":125,"column":3}},"40":{"start":{"line":119,"column":4},"end":{"line":119,"column":66}},"41":{"start":{"line":120,"column":4},"end":{"line":120,"column":24}},"42":{"start":{"line":121,"column":4},"end":{"line":121,"column":40}},"43":{"start":{"line":123,"column":20},"end":{"line":123,"column":55}},"44":{"start":{"line":124,"column":4},"end":{"line":124,"column":72}},"45":{"start":{"line":126,"column":2},"end":{"line":126,"column":13}},"46":{"start":{"line":138,"column":2},"end":{"line":175,"column":4}},"47":{"start":{"line":139,"column":19},"end":{"line":139,"column":41}},"48":{"start":{"line":140,"column":4},"end":{"line":172,"column":5}},"49":{"start":{"line":141,"column":19},"end":{"line":141,"column":48}},"50":{"start":{"line":142,"column":6},"end":{"line":144,"column":7}},"51":{"start":{"line":143,"column":8},"end":{"line":143,"column":26}},"52":{"start":{"line":145,"column":21},"end":{"line":145,"column":36}},"53":{"start":{"line":146,"column":19},"end":{"line":146,"column":20}},"54":{"start":{"line":147,"column":6},"end":{"line":170,"column":7}},"55":{"start":{"line":148,"column":8},"end":{"line":148,"column":70}},"56":{"start":{"line":148,"column":52},"end":{"line":148,"column":70}},"57":{"start":{"line":149,"column":23},"end":{"line":149,"column":52}},"58":{"start":{"line":150,"column":8},"end":{"line":150,"column":19}},"59":{"start":{"line":151,"column":8},"end":{"line":169,"column":9}},"60":{"start":{"line":152,"column":10},"end":{"line":154,"column":11}},"61":{"start":{"line":153,"column":12},"end":{"line":153,"column":30}},"62":{"start":{"line":156,"column":23},"end":{"line":156,"column":67}},"63":{"start":{"line":157,"column":10},"end":{"line":157,"column":54}},"64":{"start":{"line":158,"column":21},"end":{"line":158,"column":51}},"65":{"start":{"line":159,"column":10},"end":{"line":159,"column":21}},"66":{"start":{"line":160,"column":10},"end":{"line":164,"column":11}},"67":{"start":{"line":160,"column":23},"end":{"line":160,"column":24}},"68":{"start":{"line":161,"column":12},"end":{"line":163,"column":13}},"69":{"start":{"line":162,"column":14},"end":{"line":162,"column":75}},"70":{"start":{"line":165,"column":15},"end":{"line":169,"column":9}},"71":{"start":{"line":166,"column":10},"end":{"line":166,"column":15}},"72":{"start":{"line":168,"column":10},"end":{"line":168,"column":49}},"73":{"start":{"line":171,"column":6},"end":{"line":171,"column":24}},"74":{"start":{"line":173,"column":4},"end":{"line":173,"column":37}},"75":{"start":{"line":173,"column":28},"end":{"line":173,"column":37}},"76":{"start":{"line":174,"column":4},"end":{"line":174,"column":34}},"77":{"start":{"line":185,"column":16},"end":{"line":185,"column":28}},"78":{"start":{"line":186,"column":17},"end":{"line":186,"column":30}},"79":{"start":{"line":187,"column":27},"end":{"line":187,"column":51}},"80":{"start":{"line":189,"column":23},"end":{"line":189,"column":115}},"81":{"start":{"line":191,"column":18},"end":{"line":191,"column":24}},"82":{"start":{"line":194,"column":2},"end":{"line":206,"column":3}},"83":{"start":{"line":195,"column":4},"end":{"line":195,"column":56}},"84":{"start":{"line":196,"column":4},"end":{"line":202,"column":5}},"85":{"start":{"line":197,"column":6},"end":{"line":197,"column":40}},"86":{"start":{"line":198,"column":6},"end":{"line":198,"column":60}},"87":{"start":{"line":200,"column":6},"end":{"line":200,"column":59}},"88":{"start":{"line":201,"column":6},"end":{"line":201,"column":41}},"89":{"start":{"line":203,"column":4},"end":{"line":203,"column":66}},"90":{"start":{"line":205,"column":4},"end":{"line":205,"column":31}},"91":{"start":{"line":208,"column":2},"end":{"line":208,"column":18}},"92":{"start":{"line":218,"column":16},"end":{"line":218,"column":28}},"93":{"start":{"line":219,"column":17},"end":{"line":219,"column":30}},"94":{"start":{"line":220,"column":19},"end":{"line":220,"column":35}},"95":{"start":{"line":222,"column":23},"end":{"line":222,"column":70}},"96":{"start":{"line":224,"column":18},"end":{"line":224,"column":24}},"97":{"start":{"line":227,"column":2},"end":{"line":234,"column":3}},"98":{"start":{"line":228,"column":4},"end":{"line":228,"column":56}},"99":{"start":{"line":229,"column":4},"end":{"line":229,"column":30}},"100":{"start":{"line":230,"column":4},"end":{"line":230,"column":50}},"101":{"start":{"line":231,"column":4},"end":{"line":231,"column":66}},"102":{"start":{"line":233,"column":4},"end":{"line":233,"column":31}},"103":{"start":{"line":236,"column":2},"end":{"line":236,"column":18}},"104":{"start":{"line":246,"column":16},"end":{"line":246,"column":28}},"105":{"start":{"line":247,"column":17},"end":{"line":247,"column":30}},"106":{"start":{"line":248,"column":20},"end":{"line":248,"column":37}},"107":{"start":{"line":250,"column":23},"end":{"line":250,"column":73}},"108":{"start":{"line":252,"column":18},"end":{"line":252,"column":24}},"109":{"start":{"line":255,"column":2},"end":{"line":263,"column":3}},"110":{"start":{"line":256,"column":4},"end":{"line":256,"column":56}},"111":{"start":{"line":257,"column":4},"end":{"line":257,"column":50}},"112":{"start":{"line":258,"column":4},"end":{"line":258,"column":32}},"113":{"start":{"line":260,"column":4},"end":{"line":260,"column":66}},"114":{"start":{"line":262,"column":4},"end":{"line":262,"column":31}},"115":{"start":{"line":265,"column":2},"end":{"line":265,"column":18}},"116":{"start":{"line":277,"column":16},"end":{"line":277,"column":28}},"117":{"start":{"line":278,"column":17},"end":{"line":278,"column":30}},"118":{"start":{"line":280,"column":27},"end":{"line":280,"column":60}},"119":{"start":{"line":283,"column":2},"end":{"line":289,"column":3}},"120":{"start":{"line":284,"column":4},"end":{"line":284,"column":28}},"121":{"start":{"line":285,"column":4},"end":{"line":285,"column":28}},"122":{"start":{"line":287,"column":4},"end":{"line":287,"column":27}},"123":{"start":{"line":288,"column":4},"end":{"line":288,"column":29}},"124":{"start":{"line":292,"column":2},"end":{"line":301,"column":3}},"125":{"start":{"line":293,"column":12},"end":{"line":293,"column":49}},"126":{"start":{"line":293,"column":50},"end":{"line":293,"column":56}},"127":{"start":{"line":294,"column":12},"end":{"line":294,"column":55}},"128":{"start":{"line":294,"column":56},"end":{"line":294,"column":62}},"129":{"start":{"line":295,"column":12},"end":{"line":295,"column":50}},"130":{"start":{"line":295,"column":51},"end":{"line":295,"column":57}},"131":{"start":{"line":296,"column":12},"end":{"line":296,"column":44}},"132":{"start":{"line":296,"column":45},"end":{"line":296,"column":51}},"133":{"start":{"line":297,"column":12},"end":{"line":297,"column":50}},"134":{"start":{"line":297,"column":51},"end":{"line":297,"column":57}},"135":{"start":{"line":298,"column":12},"end":{"line":298,"column":55}},"136":{"start":{"line":298,"column":56},"end":{"line":298,"column":62}},"137":{"start":{"line":299,"column":12},"end":{"line":299,"column":49}},"138":{"start":{"line":299,"column":50},"end":{"line":299,"column":56}},"139":{"start":{"line":300,"column":13},"end":{"line":300,"column":19}},"140":{"start":{"line":303,"column":2},"end":{"line":303,"column":44}},"141":{"start":{"line":305,"column":2},"end":{"line":305,"column":29}},"142":{"start":{"line":307,"column":2},"end":{"line":307,"column":18}},"143":{"start":{"line":319,"column":2},"end":{"line":328,"column":3}},"144":{"start":{"line":320,"column":4},"end":{"line":320,"column":47}},"145":{"start":{"line":321,"column":4},"end":{"line":321,"column":33}},"146":{"start":{"line":322,"column":4},"end":{"line":324,"column":5}},"147":{"start":{"line":323,"column":6},"end":{"line":323,"column":67}},"148":{"start":{"line":326,"column":4},"end":{"line":326,"column":45}},"149":{"start":{"line":327,"column":4},"end":{"line":327,"column":33}},"150":{"start":{"line":329,"column":2},"end":{"line":329,"column":22}},"151":{"start":{"line":330,"column":2},"end":{"line":330,"column":24}},"152":{"start":{"line":331,"column":2},"end":{"line":331,"column":22}},"153":{"start":{"line":340,"column":2},"end":{"line":340,"column":18}},"154":{"start":{"line":341,"column":2},"end":{"line":341,"column":19}},"155":{"start":{"line":344,"column":0},"end":{"line":351,"column":1}},"156":{"start":{"line":346,"column":2},"end":{"line":350,"column":3}},"157":{"start":{"line":347,"column":4},"end":{"line":349,"column":33}}},"fnMap":{"0":{"name":"getDataUrlFromFile","decl":{"start":{"line":14,"column":16},"end":{"line":14,"column":34}},"loc":{"start":{"line":14,"column":42},"end":{"line":21,"column":1}},"line":14},"1":{"name":"(anonymous_1)","decl":{"start":{"line":15,"column":21},"end":{"line":15,"column":22}},"loc":{"start":{"line":15,"column":42},"end":{"line":20,"column":3}},"line":15},"2":{"name":"(anonymous_2)","decl":{"start":{"line":17,"column":20},"end":{"line":17,"column":21}},"loc":{"start":{"line":17,"column":26},"end":{"line":17,"column":48}},"line":17},"3":{"name":"(anonymous_3)","decl":{"start":{"line":18,"column":21},"end":{"line":18,"column":22}},"loc":{"start":{"line":18,"column":28},"end":{"line":18,"column":37}},"line":18},"4":{"name":"getFilefromDataUrl","decl":{"start":{"line":31,"column":16},"end":{"line":31,"column":34}},"loc":{"start":{"line":31,"column":82},"end":{"line":59,"column":1}},"line":31},"5":{"name":"(anonymous_5)","decl":{"start":{"line":32,"column":21},"end":{"line":32,"column":22}},"loc":{"start":{"line":32,"column":34},"end":{"line":58,"column":3}},"line":32},"6":{"name":"loadImage","decl":{"start":{"line":67,"column":16},"end":{"line":67,"column":25}},"loc":{"start":{"line":67,"column":32},"end":{"line":74,"column":1}},"line":67},"7":{"name":"(anonymous_7)","decl":{"start":{"line":68,"column":21},"end":{"line":68,"column":22}},"loc":{"start":{"line":68,"column":42},"end":{"line":73,"column":3}},"line":68},"8":{"name":"(anonymous_8)","decl":{"start":{"line":70,"column":17},"end":{"line":70,"column":18}},"loc":{"start":{"line":70,"column":23},"end":{"line":70,"column":35}},"line":70},"9":{"name":"(anonymous_9)","decl":{"start":{"line":71,"column":18},"end":{"line":71,"column":19}},"loc":{"start":{"line":71,"column":25},"end":{"line":71,"column":34}},"line":71},"10":{"name":"drawImageInCanvas","decl":{"start":{"line":82,"column":16},"end":{"line":82,"column":33}},"loc":{"start":{"line":82,"column":40},"end":{"line":86,"column":1}},"line":82},"11":{"name":"drawFileInCanvas","decl":{"start":{"line":94,"column":22},"end":{"line":94,"column":38}},"loc":{"start":{"line":94,"column":46},"end":{"line":104,"column":1}},"line":94},"12":{"name":"canvasToFile","decl":{"start":{"line":116,"column":22},"end":{"line":116,"column":34}},"loc":{"start":{"line":116,"column":95},"end":{"line":127,"column":1}},"line":116},"13":{"name":"getExifOrientation","decl":{"start":{"line":137,"column":16},"end":{"line":137,"column":34}},"loc":{"start":{"line":137,"column":42},"end":{"line":176,"column":1}},"line":137},"14":{"name":"(anonymous_14)","decl":{"start":{"line":138,"column":21},"end":{"line":138,"column":22}},"loc":{"start":{"line":138,"column":42},"end":{"line":175,"column":3}},"line":138},"15":{"name":"(anonymous_15)","decl":{"start":{"line":140,"column":20},"end":{"line":140,"column":21}},"loc":{"start":{"line":140,"column":27},"end":{"line":172,"column":5}},"line":140},"16":{"name":"(anonymous_16)","decl":{"start":{"line":173,"column":21},"end":{"line":173,"column":22}},"loc":{"start":{"line":173,"column":28},"end":{"line":173,"column":37}},"line":173},"17":{"name":"handleMaxWidthOrHeight","decl":{"start":{"line":184,"column":16},"end":{"line":184,"column":38}},"loc":{"start":{"line":184,"column":57},"end":{"line":209,"column":1}},"line":184},"18":{"name":"handleMaxWidth","decl":{"start":{"line":217,"column":16},"end":{"line":217,"column":30}},"loc":{"start":{"line":217,"column":49},"end":{"line":237,"column":1}},"line":217},"19":{"name":"handleMaxHeight","decl":{"start":{"line":245,"column":16},"end":{"line":245,"column":31}},"loc":{"start":{"line":245,"column":50},"end":{"line":266,"column":1}},"line":245},"20":{"name":"followExifOrientation","decl":{"start":{"line":276,"column":16},"end":{"line":276,"column":37}},"loc":{"start":{"line":276,"column":64},"end":{"line":308,"column":1}},"line":276},"21":{"name":"getNewCanvasAndCtx","decl":{"start":{"line":316,"column":16},"end":{"line":316,"column":34}},"loc":{"start":{"line":316,"column":51},"end":{"line":332,"column":1}},"line":316},"22":{"name":"cleanupCanvasMemory","decl":{"start":{"line":339,"column":16},"end":{"line":339,"column":35}},"loc":{"start":{"line":339,"column":45},"end":{"line":342,"column":1}},"line":339},"23":{"name":"(anonymous_23)","decl":{"start":{"line":346,"column":41},"end":{"line":346,"column":42}},"loc":{"start":{"line":346,"column":58},"end":{"line":350,"column":3}},"line":346}},"branchMap":{"0":{"loc":{"start":{"line":4,"column":21},"end":{"line":4,"column":124}},"type":"binary-expr","locations":[{"start":{"line":4,"column":21},"end":{"line":4,"column":30}},{"start":{"line":4,"column":34},"end":{"line":4,"column":48}},{"start":{"line":4,"column":52},"end":{"line":4,"column":74}},{"start":{"line":4,"column":78},"end":{"line":4,"column":124}}],"line":4},"1":{"loc":{"start":{"line":5,"column":26},"end":{"line":5,"column":113}},"type":"binary-expr","locations":[{"start":{"line":5,"column":26},"end":{"line":5,"column":35}},{"start":{"line":5,"column":41},"end":{"line":5,"column":53}},{"start":{"line":5,"column":57},"end":{"line":5,"column":103}},{"start":{"line":5,"column":108},"end":{"line":5,"column":112}}],"line":5},"2":{"loc":{"start":{"line":6,"column":32},"end":{"line":6,"column":131}},"type":"binary-expr","locations":[{"start":{"line":6,"column":32},"end":{"line":6,"column":41}},{"start":{"line":6,"column":47},"end":{"line":6,"column":59}},{"start":{"line":6,"column":63},"end":{"line":6,"column":115}},{"start":{"line":6,"column":120},"end":{"line":6,"column":130}}],"line":6},"3":{"loc":{"start":{"line":31,"column":55},"end":{"line":31,"column":80}},"type":"default-arg","locations":[{"start":{"line":31,"column":70},"end":{"line":31,"column":80}}],"line":31},"4":{"loc":{"start":{"line":116,"column":82},"end":{"line":116,"column":93}},"type":"default-arg","locations":[{"start":{"line":116,"column":92},"end":{"line":116,"column":93}}],"line":116},"5":{"loc":{"start":{"line":118,"column":2},"end":{"line":125,"column":3}},"type":"if","locations":[{"start":{"line":118,"column":2},"end":{"line":125,"column":3}},{"start":{"line":118,"column":2},"end":{"line":125,"column":3}}],"line":118},"6":{"loc":{"start":{"line":118,"column":6},"end":{"line":118,"column":80}},"type":"binary-expr","locations":[{"start":{"line":118,"column":6},"end":{"line":118,"column":43}},{"start":{"line":118,"column":47},"end":{"line":118,"column":80}}],"line":118},"7":{"loc":{"start":{"line":142,"column":6},"end":{"line":144,"column":7}},"type":"if","locations":[{"start":{"line":142,"column":6},"end":{"line":144,"column":7}},{"start":{"line":142,"column":6},"end":{"line":144,"column":7}}],"line":142},"8":{"loc":{"start":{"line":148,"column":8},"end":{"line":148,"column":70}},"type":"if","locations":[{"start":{"line":148,"column":8},"end":{"line":148,"column":70}},{"start":{"line":148,"column":8},"end":{"line":148,"column":70}}],"line":148},"9":{"loc":{"start":{"line":151,"column":8},"end":{"line":169,"column":9}},"type":"if","locations":[{"start":{"line":151,"column":8},"end":{"line":169,"column":9}},{"start":{"line":151,"column":8},"end":{"line":169,"column":9}}],"line":151},"10":{"loc":{"start":{"line":152,"column":10},"end":{"line":154,"column":11}},"type":"if","locations":[{"start":{"line":152,"column":10},"end":{"line":154,"column":11}},{"start":{"line":152,"column":10},"end":{"line":154,"column":11}}],"line":152},"11":{"loc":{"start":{"line":161,"column":12},"end":{"line":163,"column":13}},"type":"if","locations":[{"start":{"line":161,"column":12},"end":{"line":163,"column":13}},{"start":{"line":161,"column":12},"end":{"line":163,"column":13}}],"line":161},"12":{"loc":{"start":{"line":165,"column":15},"end":{"line":169,"column":9}},"type":"if","locations":[{"start":{"line":165,"column":15},"end":{"line":169,"column":9}},{"start":{"line":165,"column":15},"end":{"line":169,"column":9}}],"line":165},"13":{"loc":{"start":{"line":189,"column":23},"end":{"line":189,"column":115}},"type":"binary-expr","locations":[{"start":{"line":189,"column":23},"end":{"line":189,"column":56}},{"start":{"line":189,"column":61},"end":{"line":189,"column":85}},{"start":{"line":189,"column":89},"end":{"line":189,"column":114}}],"line":189},"14":{"loc":{"start":{"line":194,"column":2},"end":{"line":206,"column":3}},"type":"if","locations":[{"start":{"line":194,"column":2},"end":{"line":206,"column":3}},{"start":{"line":194,"column":2},"end":{"line":206,"column":3}}],"line":194},"15":{"loc":{"start":{"line":196,"column":4},"end":{"line":202,"column":5}},"type":"if","locations":[{"start":{"line":196,"column":4},"end":{"line":202,"column":5}},{"start":{"line":196,"column":4},"end":{"line":202,"column":5}}],"line":196},"16":{"loc":{"start":{"line":222,"column":23},"end":{"line":222,"column":70}},"type":"binary-expr","locations":[{"start":{"line":222,"column":23},"end":{"line":222,"column":48}},{"start":{"line":222,"column":53},"end":{"line":222,"column":69}}],"line":222},"17":{"loc":{"start":{"line":227,"column":2},"end":{"line":234,"column":3}},"type":"if","locations":[{"start":{"line":227,"column":2},"end":{"line":234,"column":3}},{"start":{"line":227,"column":2},"end":{"line":234,"column":3}}],"line":227},"18":{"loc":{"start":{"line":250,"column":23},"end":{"line":250,"column":73}},"type":"binary-expr","locations":[{"start":{"line":250,"column":23},"end":{"line":250,"column":49}},{"start":{"line":250,"column":54},"end":{"line":250,"column":72}}],"line":250},"19":{"loc":{"start":{"line":255,"column":2},"end":{"line":263,"column":3}},"type":"if","locations":[{"start":{"line":255,"column":2},"end":{"line":263,"column":3}},{"start":{"line":255,"column":2},"end":{"line":263,"column":3}}],"line":255},"20":{"loc":{"start":{"line":283,"column":2},"end":{"line":289,"column":3}},"type":"if","locations":[{"start":{"line":283,"column":2},"end":{"line":289,"column":3}},{"start":{"line":283,"column":2},"end":{"line":289,"column":3}}],"line":283},"21":{"loc":{"start":{"line":283,"column":6},"end":{"line":283,"column":48}},"type":"binary-expr","locations":[{"start":{"line":283,"column":6},"end":{"line":283,"column":25}},{"start":{"line":283,"column":29},"end":{"line":283,"column":48}}],"line":283},"22":{"loc":{"start":{"line":292,"column":2},"end":{"line":301,"column":3}},"type":"switch","locations":[{"start":{"line":293,"column":4},"end":{"line":293,"column":56}},{"start":{"line":294,"column":4},"end":{"line":294,"column":62}},{"start":{"line":295,"column":4},"end":{"line":295,"column":57}},{"start":{"line":296,"column":4},"end":{"line":296,"column":51}},{"start":{"line":297,"column":4},"end":{"line":297,"column":57}},{"start":{"line":298,"column":4},"end":{"line":298,"column":62}},{"start":{"line":299,"column":4},"end":{"line":299,"column":56}},{"start":{"line":300,"column":4},"end":{"line":300,"column":19}}],"line":292},"23":{"loc":{"start":{"line":322,"column":4},"end":{"line":324,"column":5}},"type":"if","locations":[{"start":{"line":322,"column":4},"end":{"line":324,"column":5}},{"start":{"line":322,"column":4},"end":{"line":324,"column":5}}],"line":322},"24":{"loc":{"start":{"line":344,"column":0},"end":{"line":351,"column":1}},"type":"if","locations":[{"start":{"line":344,"column":0},"end":{"line":351,"column":1}},{"start":{"line":344,"column":0},"end":{"line":351,"column":1}}],"line":344},"25":{"loc":{"start":{"line":346,"column":21},"end":{"line":350,"column":3}},"type":"binary-expr","locations":[{"start":{"line":346,"column":21},"end":{"line":346,"column":37}},{"start":{"line":346,"column":41},"end":{"line":350,"column":3}}],"line":346},"26":{"loc":{"start":{"line":347,"column":11},"end":{"line":349,"column":33}},"type":"binary-expr","locations":[{"start":{"line":347,"column":11},"end":{"line":347,"column":36}},{"start":{"line":348,"column":6},"end":{"line":348,"column":21}},{"start":{"line":349,"column":6},"end":{"line":349,"column":33}}],"line":347}},"s":{"0":1,"1":1,"2":1,"3":1,"4":17,"5":17,"6":17,"7":17,"8":17,"9":0,"10":17,"11":19,"12":19,"13":19,"14":19,"15":19,"16":19,"17":19,"18":24015318,"19":19,"20":19,"21":19,"22":19,"23":17,"24":17,"25":17,"26":17,"27":17,"28":0,"29":17,"30":16,"31":16,"32":16,"33":15,"34":15,"35":15,"36":15,"37":15,"38":15,"39":17,"40":0,"41":0,"42":0,"43":17,"44":17,"45":17,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":1,"75":0,"76":1,"77":8,"78":8,"79":8,"80":8,"81":8,"82":8,"83":4,"84":4,"85":2,"86":2,"87":2,"88":2,"89":4,"90":4,"91":8,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"116":8,"117":8,"118":8,"119":8,"120":0,"121":0,"122":8,"123":8,"124":8,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":0,"134":0,"135":0,"136":0,"137":0,"138":0,"139":8,"140":8,"141":8,"142":8,"143":39,"144":39,"145":0,"146":0,"147":0,"148":39,"149":39,"150":39,"151":39,"152":39,"153":33,"154":33,"155":1,"156":1,"157":0},"f":{"0":17,"1":17,"2":17,"3":0,"4":19,"5":19,"6":17,"7":17,"8":17,"9":0,"10":16,"11":15,"12":17,"13":1,"14":1,"15":1,"16":0,"17":8,"18":1,"19":1,"20":8,"21":39,"22":33,"23":0},"b":{"0":[1,1,0,0],"1":[1,1,0,1],"2":[1,1,0,1],"3":[2],"4":[0],"5":[0,17],"6":[17,0],"7":[1,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[8,4,0],"14":[4,4],"15":[2,2],"16":[1,1],"17":[1,0],"18":[1,1],"19":[1,0],"20":[0,8],"21":[8,0],"22":[0,0,0,0,0,0,0,8],"23":[0,0],"24":[1,0],"25":[1,0],"26":[0,0,0]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"2ec58691179d2ac389e2929bb901dd84137969b7","contentHash":"572238f0372d3427acf239b7ca99af9e92be69a19ae88a2dea37ae5883d90b15"}
}
diff --git a/coverage/coverage-summary.json b/coverage/coverage-summary.json
index 8de1e86..4200bea 100644
--- a/coverage/coverage-summary.json
+++ b/coverage/coverage-summary.json
@@ -1,5 +1,5 @@
-{"total": {"lines":{"total":197,"covered":156,"skipped":0,"pct":79.19},"statements":{"total":211,"covered":158,"skipped":0,"pct":74.88},"functions":{"total":26,"covered":22,"skipped":0,"pct":84.62},"branches":{"total":101,"covered":56,"skipped":0,"pct":55.45}}
-,"/Users/donald/Project/browser-image-compression/lib/image-compression.js": {"lines":{"total":49,"covered":47,"skipped":0,"pct":95.92},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":49,"covered":47,"skipped":0,"pct":95.92},"branches":{"total":26,"covered":21,"skipped":0,"pct":80.77}}
-,"/Users/donald/Project/browser-image-compression/lib/index.js": {"lines":{"total":28,"covered":25,"skipped":0,"pct":89.29},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":28,"covered":25,"skipped":0,"pct":89.29},"branches":{"total":17,"covered":12,"skipped":0,"pct":70.59}}
-,"/Users/donald/Project/browser-image-compression/lib/utils.js": {"lines":{"total":120,"covered":84,"skipped":0,"pct":70},"functions":{"total":22,"covered":18,"skipped":0,"pct":81.82},"statements":{"total":134,"covered":86,"skipped":0,"pct":64.18},"branches":{"total":58,"covered":23,"skipped":0,"pct":39.66}}
+{"total": {"lines":{"total":227,"covered":186,"skipped":0,"pct":81.94},"statements":{"total":241,"covered":188,"skipped":0,"pct":78.01},"functions":{"total":28,"covered":24,"skipped":0,"pct":85.71},"branches":{"total":113,"covered":66,"skipped":0,"pct":58.41}}
+,"/Users/sam/Projects/browser-image-compression/lib/image-compression.js": {"lines":{"total":53,"covered":51,"skipped":0,"pct":96.23},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":53,"covered":51,"skipped":0,"pct":96.23},"branches":{"total":30,"covered":25,"skipped":0,"pct":83.33}}
+,"/Users/sam/Projects/browser-image-compression/lib/index.js": {"lines":{"total":30,"covered":27,"skipped":0,"pct":90},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":30,"covered":27,"skipped":0,"pct":90},"branches":{"total":17,"covered":12,"skipped":0,"pct":70.59}}
+,"/Users/sam/Projects/browser-image-compression/lib/utils.js": {"lines":{"total":144,"covered":108,"skipped":0,"pct":75},"functions":{"total":24,"covered":20,"skipped":0,"pct":83.33},"statements":{"total":158,"covered":110,"skipped":0,"pct":69.62},"branches":{"total":66,"covered":29,"skipped":0,"pct":43.94}}
}
diff --git a/coverage/image-compression.js.html b/coverage/image-compression.js.html
index 43a2808..df8e129 100644
--- a/coverage/image-compression.js.html
+++ b/coverage/image-compression.js.html
@@ -23,16 +23,16 @@
- 95.92%
+ 96.23%
Statements
- 47/49
+ 51/53
- 80.77%
+ 83.33%
Branches
- 21/26
+ 25/30
@@ -44,9 +44,9 @@
All files image-compression.js
- 95.92%
+ 96.23%
Lines
- 47/49
+ 51/53
@@ -171,7 +171,21 @@
All files image-compression.js
112
113
114
-
115
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+
+
+
@@ -195,57 +209,65 @@ All files image-compression.js
-6x
+8x
-36x
-36x
+
+48x
+48x
-15x
-15x
+17x
+17x
-6x
+8x
-6x
+8x
-6x
+8x
-6x
+8x
-6x
+8x
-6x
+8x
-6x
+8x
+1x
+8x
+1x
-6x
-6x
-6x
-6x
-6x
+8x
-6x
-6x
-6x
-6x
+8x
+8x
+8x
+8x
+8x
-6x
+8x
+8x
+
+8x
+8x
-4x
-4x
+
+8x
+
+6x
+6x
2x
@@ -292,16 +314,20 @@ All files image-compression.js
followExifOrientation,
getExifOrientation,
getNewCanvasAndCtx,
- handleMaxWidthOrHeight
+ handleMaxWidthOrHeight,
+ handleMaxWidth,
+ handleMaxHeight
} from './utils'
/**
* Compress an image file.
*
* @param {File} file
- * @param {Object} options - { maxSizeMB=Number.POSITIVE_INFINITY, maxWidthOrHeight, useWebWorker=false, maxIteration = 10, exifOrientation, fileType }
+ * @param {Object} options - { maxSizeMB=Number.POSITIVE_INFINITY, maxWidthOrHeight, maxWidth, maxHeight, useWebWorker=false, maxIteration = 10, exifOrientation, fileType }
* @param {number} [options.maxSizeMB=Number.POSITIVE_INFINITY]
* @param {number} [options.maxWidthOrHeight=undefined]
+ * @param {number} [options.maxWidth=undefined]
+ * @param {number} [options.maxHeight=undefined]
* @param {number} [options.maxIteration=10]
* @param {number} [options.exifOrientation] - default to be the exif orientation from the image file
* @param {Function} [options.onProgress] - a function takes one progress argument (progress from 0 to 100)
@@ -336,15 +362,22 @@ All files image-compression.js
incProgress()
- // handleMaxWidthOrHeight
- const maxWidthOrHeightFixedCanvas = handleMaxWidthOrHeight(origCanvas, options)
+ // handleMaxDimensions
+ let maxDimensionsCanvas = handleMaxWidthOrHeight(origCanvas, options)
+
+ if (Number.isFinite(options.maxWidth)) {
+ maxDimensionsCanvas = handleMaxWidth(origCanvas, options)
+ }
+ if (Number.isFinite(options.maxHeight)) {
+ maxDimensionsCanvas = handleMaxHeight(origCanvas, options)
+ }
incProgress()
// exifOrientation
options.exifOrientation = options.exifOrientation || await getExifOrientation(file)
incProgress()
- const orientationFixedCanvas = followExifOrientation(maxWidthOrHeightFixedCanvas, options.exifOrientation)
+ const orientationFixedCanvas = followExifOrientation(maxDimensionsCanvas, options.exifOrientation)
incProgress()
let quality = 1
@@ -392,7 +425,7 @@ All files image-compression.js
// ref: https://bugs.webkit.org/show_bug.cgi?id=195325
cleanupCanvasMemory(canvas)
cleanupCanvasMemory(newCanvas)
- cleanupCanvasMemory(maxWidthOrHeightFixedCanvas)
+ cleanupCanvasMemory(maxDimensionsCanvas)
cleanupCanvasMemory(orientationFixedCanvas)
cleanupCanvasMemory(origCanvas)
@@ -406,7 +439,7 @@ All files image-compression.js
diff --git a/coverage/index.html b/coverage/index.html
index ca5e590..62a2aab 100644
--- a/coverage/index.html
+++ b/coverage/index.html
@@ -23,30 +23,30 @@ All files
- 74.88%
+ 78.01%
Statements
- 158/211
+ 188/241
- 55.45%
+ 58.41%
Branches
- 56/101
+ 66/113
- 84.62%
+ 85.71%
Functions
- 22/26
+ 24/28
- 79.19%
+ 81.94%
Lines
- 156/197
+ 186/227
@@ -74,47 +74,47 @@
All files
image-compression.js
-
-
+
+
- 95.92%
- 47/49
- 80.77%
- 21/26
+ 96.23%
+ 51/53
+ 83.33%
+ 25/30
100%
3/3
- 95.92%
- 47/49
+ 96.23%
+ 51/53
index.js
-
-
+
+
- 89.29%
- 25/28
+ 90%
+ 27/30
70.59%
12/17
100%
1/1
- 89.29%
- 25/28
+ 90%
+ 27/30
utils.js
-
-
+
+
- 64.18%
- 86/134
- 39.66%
- 23/58
- 81.82%
- 18/22
- 70%
- 84/120
+ 69.62%
+ 110/158
+ 43.94%
+ 29/66
+ 83.33%
+ 20/24
+ 75%
+ 108/144
@@ -125,7 +125,7 @@
All files
diff --git a/coverage/index.js.html b/coverage/index.js.html
index 4360a3a..39ddde4 100644
--- a/coverage/index.js.html
+++ b/coverage/index.js.html
@@ -23,9 +23,9 @@
- 89.29%
+ 90%
Statements
- 25/28
+ 27/30
@@ -44,9 +44,9 @@
- 89.29%
+ 90%
Lines
- 25/28
+ 27/30
@@ -146,7 +146,13 @@
87
88
89
-
90
+90
+91
+92
+93
+94
+95
+96
@@ -180,18 +186,22 @@
-9x
-9x
-9x
-9x
+
+
+
+11x
+11x
+11x
+
+11x
2x
-7x
+9x
1x
-6x
+8x
@@ -199,7 +209,7 @@
-6x
+8x
@@ -211,15 +221,15 @@
-6x
+8x
-6x
-6x
-6x
+8x
+8x
+8x
-6x
+8x
1x
@@ -233,6 +243,8 @@
1x
1x
1x
+1x
+1x
import compress from './image-compression'
@@ -245,6 +257,8 @@
loadImage,
getExifOrientation,
handleMaxWidthOrHeight,
+ handleMaxWidth,
+ handleMaxHeight,
followExifOrientation,
CustomFile,
cleanupCanvasMemory
@@ -255,9 +269,11 @@
* Compress an image file.
*
* @param {File} file
- * @param {Object} options - { maxSizeMB=Number.POSITIVE_INFINITY, maxWidthOrHeight, useWebWorker=false, maxIteration = 10, exifOrientation, fileType }
+ * @param {Object} options - { maxSizeMB=Number.POSITIVE_INFINITY, maxWidthOrHeight, maxWidth, maxHeight, useWebWorker=false, maxIteration = 10, exifOrientation, fileType }
* @param {number} [options.maxSizeMB=Number.POSITIVE_INFINITY]
* @param {number} [options.maxWidthOrHeight=undefined]
+ * @param {number} [options.maxWidth=undefined]
+ * @param {number} [options.maxHeight=undefined]
* @param {boolean} [options.useWebWorker=false]
* @param {number} [options.maxIteration=10]
* @param {number} [options.exifOrientation] - default to be the exif orientation from the image file
@@ -319,6 +335,8 @@
imageCompression.canvasToFile = canvasToFile
imageCompression.getExifOrientation = getExifOrientation
imageCompression.handleMaxWidthOrHeight = handleMaxWidthOrHeight
+imageCompression.handleMaxWidth = handleMaxWidth
+imageCompression.handleMaxHeight = handleMaxHeight
imageCompression.followExifOrientation = followExifOrientation
imageCompression.cleanupMemory = cleanupCanvasMemory
imageCompression.version = '1.0.9'
@@ -331,7 +349,7 @@
diff --git a/coverage/lcov-report/image-compression.js.html b/coverage/lcov-report/image-compression.js.html
index 43a2808..df8e129 100644
--- a/coverage/lcov-report/image-compression.js.html
+++ b/coverage/lcov-report/image-compression.js.html
@@ -23,16 +23,16 @@ All files image-compression.js
- 95.92%
+ 96.23%
Statements
- 47/49
+ 51/53
- 80.77%
+ 83.33%
Branches
- 21/26
+ 25/30
@@ -44,9 +44,9 @@
All files image-compression.js
- 95.92%
+ 96.23%
Lines
- 47/49
+ 51/53
@@ -171,7 +171,21 @@
All files image-compression.js
112
113
114
-
115
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+
+
+
@@ -195,57 +209,65 @@ All files image-compression.js
-6x
+8x
-36x
-36x
+
+48x
+48x
-15x
-15x
+17x
+17x
-6x
+8x
-6x
+8x
-6x
+8x
-6x
+8x
-6x
+8x
-6x
+8x
-6x
+8x
+1x
+8x
+1x
-6x
-6x
-6x
-6x
-6x
+8x
-6x
-6x
-6x
-6x
+8x
+8x
+8x
+8x
+8x
-6x
+8x
+8x
+
+8x
+8x
-4x
-4x
+
+8x
+
+6x
+6x
2x
@@ -292,16 +314,20 @@ All files image-compression.js
followExifOrientation,
getExifOrientation,
getNewCanvasAndCtx,
- handleMaxWidthOrHeight
+ handleMaxWidthOrHeight,
+ handleMaxWidth,
+ handleMaxHeight
} from './utils'
/**
* Compress an image file.
*
* @param {File} file
- * @param {Object} options - { maxSizeMB=Number.POSITIVE_INFINITY, maxWidthOrHeight, useWebWorker=false, maxIteration = 10, exifOrientation, fileType }
+ * @param {Object} options - { maxSizeMB=Number.POSITIVE_INFINITY, maxWidthOrHeight, maxWidth, maxHeight, useWebWorker=false, maxIteration = 10, exifOrientation, fileType }
* @param {number} [options.maxSizeMB=Number.POSITIVE_INFINITY]
* @param {number} [options.maxWidthOrHeight=undefined]
+ * @param {number} [options.maxWidth=undefined]
+ * @param {number} [options.maxHeight=undefined]
* @param {number} [options.maxIteration=10]
* @param {number} [options.exifOrientation] - default to be the exif orientation from the image file
* @param {Function} [options.onProgress] - a function takes one progress argument (progress from 0 to 100)
@@ -336,15 +362,22 @@ All files image-compression.js
incProgress()
- // handleMaxWidthOrHeight
- const maxWidthOrHeightFixedCanvas = handleMaxWidthOrHeight(origCanvas, options)
+ // handleMaxDimensions
+ let maxDimensionsCanvas = handleMaxWidthOrHeight(origCanvas, options)
+
+ if (Number.isFinite(options.maxWidth)) {
+ maxDimensionsCanvas = handleMaxWidth(origCanvas, options)
+ }
+ if (Number.isFinite(options.maxHeight)) {
+ maxDimensionsCanvas = handleMaxHeight(origCanvas, options)
+ }
incProgress()
// exifOrientation
options.exifOrientation = options.exifOrientation || await getExifOrientation(file)
incProgress()
- const orientationFixedCanvas = followExifOrientation(maxWidthOrHeightFixedCanvas, options.exifOrientation)
+ const orientationFixedCanvas = followExifOrientation(maxDimensionsCanvas, options.exifOrientation)
incProgress()
let quality = 1
@@ -392,7 +425,7 @@ All files image-compression.js
// ref: https://bugs.webkit.org/show_bug.cgi?id=195325
cleanupCanvasMemory(canvas)
cleanupCanvasMemory(newCanvas)
- cleanupCanvasMemory(maxWidthOrHeightFixedCanvas)
+ cleanupCanvasMemory(maxDimensionsCanvas)
cleanupCanvasMemory(orientationFixedCanvas)
cleanupCanvasMemory(origCanvas)
@@ -406,7 +439,7 @@ All files image-compression.js
diff --git a/coverage/lcov-report/index.html b/coverage/lcov-report/index.html
index ca5e590..62a2aab 100644
--- a/coverage/lcov-report/index.html
+++ b/coverage/lcov-report/index.html
@@ -23,30 +23,30 @@ All files
- 74.88%
+ 78.01%
Statements
- 158/211
+ 188/241
- 55.45%
+ 58.41%
Branches
- 56/101
+ 66/113
- 84.62%
+ 85.71%
Functions
- 22/26
+ 24/28
- 79.19%
+ 81.94%
Lines
- 156/197
+ 186/227
@@ -74,47 +74,47 @@
All files
image-compression.js
-
-
+
+
- 95.92%
- 47/49
- 80.77%
- 21/26
+ 96.23%
+ 51/53
+ 83.33%
+ 25/30
100%
3/3
- 95.92%
- 47/49
+ 96.23%
+ 51/53
index.js
-
-
+
+
- 89.29%
- 25/28
+ 90%
+ 27/30
70.59%
12/17
100%
1/1
- 89.29%
- 25/28
+ 90%
+ 27/30
utils.js
-
-
+
+
- 64.18%
- 86/134
- 39.66%
- 23/58
- 81.82%
- 18/22
- 70%
- 84/120
+ 69.62%
+ 110/158
+ 43.94%
+ 29/66
+ 83.33%
+ 20/24
+ 75%
+ 108/144
@@ -125,7 +125,7 @@
All files
diff --git a/coverage/lcov-report/index.js.html b/coverage/lcov-report/index.js.html
index 4360a3a..39ddde4 100644
--- a/coverage/lcov-report/index.js.html
+++ b/coverage/lcov-report/index.js.html
@@ -23,9 +23,9 @@
- 89.29%
+ 90%
Statements
- 25/28
+ 27/30
@@ -44,9 +44,9 @@
- 89.29%
+ 90%
Lines
- 25/28
+ 27/30
@@ -146,7 +146,13 @@
87
88
89
-
90
+90
+91
+92
+93
+94
+95
+96
@@ -180,18 +186,22 @@
-9x
-9x
-9x
-9x
+
+
+
+11x
+11x
+11x
+
+11x
2x
-7x
+9x
1x
-6x
+8x
@@ -199,7 +209,7 @@
-6x
+8x
@@ -211,15 +221,15 @@
-6x
+8x
-6x
-6x
-6x
+8x
+8x
+8x
-6x
+8x
1x
@@ -233,6 +243,8 @@
1x
1x
1x
+1x
+1x
import compress from './image-compression'
@@ -245,6 +257,8 @@
loadImage,
getExifOrientation,
handleMaxWidthOrHeight,
+ handleMaxWidth,
+ handleMaxHeight,
followExifOrientation,
CustomFile,
cleanupCanvasMemory
@@ -255,9 +269,11 @@
* Compress an image file.
*
* @param {File} file
- * @param {Object} options - { maxSizeMB=Number.POSITIVE_INFINITY, maxWidthOrHeight, useWebWorker=false, maxIteration = 10, exifOrientation, fileType }
+ * @param {Object} options - { maxSizeMB=Number.POSITIVE_INFINITY, maxWidthOrHeight, maxWidth, maxHeight, useWebWorker=false, maxIteration = 10, exifOrientation, fileType }
* @param {number} [options.maxSizeMB=Number.POSITIVE_INFINITY]
* @param {number} [options.maxWidthOrHeight=undefined]
+ * @param {number} [options.maxWidth=undefined]
+ * @param {number} [options.maxHeight=undefined]
* @param {boolean} [options.useWebWorker=false]
* @param {number} [options.maxIteration=10]
* @param {number} [options.exifOrientation] - default to be the exif orientation from the image file
@@ -319,6 +335,8 @@
imageCompression.canvasToFile = canvasToFile
imageCompression.getExifOrientation = getExifOrientation
imageCompression.handleMaxWidthOrHeight = handleMaxWidthOrHeight
+imageCompression.handleMaxWidth = handleMaxWidth
+imageCompression.handleMaxHeight = handleMaxHeight
imageCompression.followExifOrientation = followExifOrientation
imageCompression.cleanupMemory = cleanupCanvasMemory
imageCompression.version = '1.0.9'
@@ -331,7 +349,7 @@
diff --git a/coverage/lcov-report/utils.js.html b/coverage/lcov-report/utils.js.html
index 28597b4..594a141 100644
--- a/coverage/lcov-report/utils.js.html
+++ b/coverage/lcov-report/utils.js.html
@@ -23,30 +23,30 @@
- 64.18%
+ 69.62%
Statements
- 86/134
+ 110/158
- 39.66%
+ 43.94%
Branches
- 23/58
+ 29/66
- 81.82%
+ 83.33%
Functions
- 18/22
+ 20/24
- 70%
+ 75%
Lines
- 84/120
+ 108/144
@@ -351,7 +351,64 @@
292
293
294
-
295 1x
+295
+296
+297
+298
+299
+300
+301
+302
+303
+304
+305
+306
+307
+308
+309
+310
+311
+312
+313
+314
+315
+316
+317
+318
+319
+320
+321
+322
+323
+324
+325
+326
+327
+328
+329
+330
+331
+332
+333
+334
+335
+336
+337
+338
+339
+340
+341
+342
+343
+344
+345
+346
+347
+348
+349
+350
+351
+352 1x
1x
@@ -365,11 +422,11 @@
-13x
-13x
-13x
-13x
-13x
+17x
+17x
+17x
+17x
+17x
@@ -382,19 +439,19 @@
-17x
-17x
-17x
-17x
-17x
-17x
-17x
-23716492x
+19x
+19x
+19x
+19x
+19x
+19x
+19x
+24015318x
-17x
-17x
-17x
-17x
+19x
+19x
+19x
+19x
@@ -418,11 +475,11 @@
-13x
-13x
-13x
-13x
-13x
+17x
+17x
+17x
+17x
+17x
@@ -433,9 +490,9 @@
-12x
-12x
-12x
+16x
+16x
+16x
@@ -446,14 +503,14 @@
-11x
-11x
+15x
+15x
-11x
-11x
+15x
+15x
-11x
-11x
+15x
+15x
@@ -468,15 +525,15 @@
-15x
+17x
-15x
-15x
+17x
+17x
-15x
+17x
@@ -535,16 +592,16 @@
-6x
-6x
-6x
+8x
+8x
+8x
-6x
+8x
-6x
+8x
-6x
+8x
4x
4x
2x
@@ -558,7 +615,7 @@
4x
-6x
+8x
@@ -568,24 +625,81 @@
+1x
+1x
+1x
+
+1x
+
+1x
+
+
+1x
+1x
+1x
+1x
+1x
+
+1x
+
+
+1x
+
+
+
-6x
-6x
-6x
-6x
+
+1x
+1x
+1x
+
+1x
+
+1x
+
+
+1x
+1x
+1x
+1x
+
+1x
+
+1x
+
+
+1x
+
+
+
+
+
+
+
+
+
+
+
+8x
+8x
+
+8x
+
+
+8x
-6x
-6x
+8x
+8x
-6x
+8x
@@ -593,14 +707,14 @@
-6x
+8x
-6x
+8x
-6x
+8x
-6x
+8x
@@ -612,19 +726,19 @@
-31x
-31x
+39x
+39x
-31x
-31x
+39x
+39x
-31x
-31x
-31x
+39x
+39x
+39x
@@ -633,8 +747,8 @@
-29x
-29x
+33x
+33x
1x
@@ -855,6 +969,63 @@
return newCanvas
}
+/**
+ *
+ * @param {HTMLCanvasElement} canvas
+ * @param options
+ * @returns {HTMLCanvasElement>}
+ */
+export function handleMaxWidth (canvas, options) {
+ const width = canvas.width
+ const height = canvas.height
+ const maxWidth = options.maxWidth
+
+ const needToHandle = Number.isFinite(maxWidth) && (width > maxWidth)
+
+ let newCanvas = canvas
+ let ctx
+
+ E if (needToHandle) {
+ [newCanvas, ctx] = getNewCanvasAndCtx(width, height)
+ newCanvas.width = maxWidth
+ newCanvas.height = (height / width) * maxWidth
+ ctx.drawImage(canvas, 0, 0, newCanvas.width, newCanvas.height)
+
+ cleanupCanvasMemory(canvas)
+ }
+
+ return newCanvas
+}
+
+/**
+ *
+ * @param {HTMLCanvasElement} canvas
+ * @param options
+ * @returns {HTMLCanvasElement>}
+ */
+export function handleMaxHeight (canvas, options) {
+ const width = canvas.width
+ const height = canvas.height
+ const maxHeight = options.maxHeight
+
+ const needToHandle = Number.isFinite(maxHeight) && (height > maxHeight)
+
+ let newCanvas = canvas
+ let ctx
+
+ E if (needToHandle) {
+ [newCanvas, ctx] = getNewCanvasAndCtx(width, height)
+ newCanvas.width = (width / height) * maxHeight
+ newCanvas.height = maxHeight
+
+ ctx.drawImage(canvas, 0, 0, newCanvas.width, newCanvas.height)
+
+ cleanupCanvasMemory(canvas)
+ }
+
+ return newCanvas
+}
+
/**
* followExifOrientation
* source: https://stackoverflow.com/a/40867559/10395024
@@ -946,7 +1117,7 @@
diff --git a/coverage/lcov.info b/coverage/lcov.info
index 99f42eb..eeacca5 100644
--- a/coverage/lcov.info
+++ b/coverage/lcov.info
@@ -1,120 +1,124 @@
TN:
SF:lib/image-compression.js
-FN:24,compress
-FN:27,incProgress
-FN:34,setProgress
+FN:28,compress
+FN:31,incProgress
+FN:38,setProgress
FNF:3
FNH:3
-FNDA:6,compress
-FNDA:36,incProgress
-FNDA:15,setProgress
-DA:25,6
-DA:28,36
-DA:29,36
-DA:30,0
-DA:35,15
-DA:36,15
-DA:37,0
-DA:41,6
-DA:43,6
-DA:45,6
-DA:48,6
-DA:50,6
-DA:53,6
-DA:55,6
-DA:58,6
-DA:59,6
-DA:60,6
-DA:61,6
-DA:63,6
-DA:65,6
-DA:66,6
-DA:68,6
-DA:69,6
-DA:72,6
-DA:74,4
-DA:75,4
-DA:78,2
-DA:79,2
-DA:80,2
-DA:83,2
-DA:84,2
-DA:85,9
-DA:86,9
-DA:87,9
-DA:89,9
-DA:91,9
-DA:92,2
-DA:94,9
+FNDA:8,compress
+FNDA:48,incProgress
+FNDA:17,setProgress
+DA:29,8
+DA:32,48
+DA:33,48
+DA:34,0
+DA:39,17
+DA:40,17
+DA:41,0
+DA:45,8
+DA:47,8
+DA:49,8
+DA:52,8
+DA:54,8
+DA:57,8
+DA:59,8
+DA:60,1
+DA:62,8
+DA:63,1
+DA:66,8
+DA:69,8
+DA:70,8
+DA:71,8
+DA:72,8
+DA:74,8
+DA:76,8
+DA:77,8
+DA:79,8
+DA:80,8
+DA:83,8
+DA:85,6
+DA:86,6
+DA:89,2
+DA:90,2
+DA:91,2
+DA:94,2
+DA:95,2
DA:96,9
+DA:97,9
DA:98,9
DA:100,9
-DA:101,9
-DA:106,2
-DA:107,2
-DA:108,2
-DA:109,2
-DA:110,2
-DA:112,2
-DA:113,2
-LF:49
-LH:47
-BRDA:27,0,0,36
-BRDA:29,1,0,0
-BRDA:29,1,1,36
-BRDA:36,2,0,0
-BRDA:36,2,1,15
-BRDA:41,3,0,6
-BRDA:41,3,1,6
-BRDA:58,4,0,6
-BRDA:58,4,1,0
-BRDA:65,5,0,6
-BRDA:65,5,1,6
-BRDA:72,6,0,4
-BRDA:72,6,1,2
-BRDA:72,7,0,6
-BRDA:72,7,1,4
-BRDA:84,8,0,11
-BRDA:84,8,1,11
-BRDA:84,8,2,2
-BRDA:85,9,0,9
-BRDA:85,9,1,0
-BRDA:86,10,0,9
-BRDA:86,10,1,0
-BRDA:91,11,0,2
-BRDA:91,11,1,7
-BRDA:94,12,0,9
-BRDA:94,12,1,9
-BRF:26
-BRH:21
+DA:102,9
+DA:103,2
+DA:105,9
+DA:107,9
+DA:109,9
+DA:111,9
+DA:112,9
+DA:117,2
+DA:118,2
+DA:119,2
+DA:120,2
+DA:121,2
+DA:123,2
+DA:124,2
+LF:53
+LH:51
+BRDA:31,0,0,48
+BRDA:33,1,0,0
+BRDA:33,1,1,48
+BRDA:40,2,0,0
+BRDA:40,2,1,17
+BRDA:45,3,0,8
+BRDA:45,3,1,8
+BRDA:59,4,0,1
+BRDA:59,4,1,7
+BRDA:62,5,0,1
+BRDA:62,5,1,7
+BRDA:69,6,0,8
+BRDA:69,6,1,0
+BRDA:76,7,0,8
+BRDA:76,7,1,8
+BRDA:83,8,0,6
+BRDA:83,8,1,2
+BRDA:83,9,0,8
+BRDA:83,9,1,6
+BRDA:95,10,0,11
+BRDA:95,10,1,11
+BRDA:95,10,2,2
+BRDA:96,11,0,9
+BRDA:96,11,1,0
+BRDA:97,12,0,9
+BRDA:97,12,1,0
+BRDA:102,13,0,2
+BRDA:102,13,1,7
+BRDA:105,14,0,9
+BRDA:105,14,1,9
+BRF:30
+BRH:25
end_of_record
TN:
SF:lib/index.js
-FN:31,imageCompression
+FN:35,imageCompression
FNF:1
FNH:1
-FNDA:9,imageCompression
-DA:35,9
-DA:36,9
-DA:37,9
-DA:39,9
-DA:40,2
-DA:41,7
-DA:42,1
-DA:46,6
-DA:54,6
-DA:55,0
-DA:58,0
+FNDA:11,imageCompression
+DA:39,11
+DA:40,11
+DA:41,11
+DA:43,11
+DA:44,2
+DA:45,9
+DA:46,1
+DA:50,8
+DA:58,8
+DA:59,0
DA:62,0
-DA:66,6
-DA:69,6
-DA:70,6
-DA:71,6
-DA:74,6
-DA:77,1
-DA:78,1
-DA:79,1
-DA:80,1
+DA:66,0
+DA:70,8
+DA:73,8
+DA:74,8
+DA:75,8
+DA:78,8
DA:81,1
DA:82,1
DA:83,1
@@ -122,25 +126,31 @@ DA:84,1
DA:85,1
DA:86,1
DA:87,1
-LF:28
-LH:25
-BRDA:35,0,0,9
-BRDA:35,0,1,2
-BRDA:36,1,0,9
-BRDA:36,1,1,0
-BRDA:39,2,0,2
-BRDA:39,2,1,7
-BRDA:39,3,0,9
-BRDA:39,3,1,2
-BRDA:41,4,0,1
-BRDA:41,4,1,6
-BRDA:46,5,0,6
-BRDA:46,5,1,0
-BRDA:54,6,0,0
-BRDA:54,6,1,6
-BRDA:54,7,0,6
-BRDA:54,7,1,0
-BRDA:54,7,2,0
+DA:88,1
+DA:89,1
+DA:90,1
+DA:91,1
+DA:92,1
+DA:93,1
+LF:30
+LH:27
+BRDA:39,0,0,11
+BRDA:39,0,1,4
+BRDA:40,1,0,11
+BRDA:40,1,1,0
+BRDA:43,2,0,2
+BRDA:43,2,1,9
+BRDA:43,3,0,11
+BRDA:43,3,1,2
+BRDA:45,4,0,1
+BRDA:45,4,1,8
+BRDA:50,5,0,8
+BRDA:50,5,1,0
+BRDA:58,6,0,0
+BRDA:58,6,1,8
+BRDA:58,7,0,8
+BRDA:58,7,1,0
+BRDA:58,7,2,0
BRF:17
BRH:12
end_of_record
@@ -164,76 +174,80 @@ FN:138,(anonymous_14)
FN:140,(anonymous_15)
FN:173,(anonymous_16)
FN:184,handleMaxWidthOrHeight
-FN:219,followExifOrientation
-FN:259,getNewCanvasAndCtx
-FN:282,cleanupCanvasMemory
-FN:289,(anonymous_21)
-FNF:22
-FNH:18
-FNDA:13,getDataUrlFromFile
-FNDA:13,(anonymous_1)
-FNDA:13,(anonymous_2)
+FN:217,handleMaxWidth
+FN:245,handleMaxHeight
+FN:276,followExifOrientation
+FN:316,getNewCanvasAndCtx
+FN:339,cleanupCanvasMemory
+FN:346,(anonymous_23)
+FNF:24
+FNH:20
+FNDA:17,getDataUrlFromFile
+FNDA:17,(anonymous_1)
+FNDA:17,(anonymous_2)
FNDA:0,(anonymous_3)
-FNDA:17,getFilefromDataUrl
-FNDA:17,(anonymous_5)
-FNDA:13,loadImage
-FNDA:13,(anonymous_7)
-FNDA:13,(anonymous_8)
+FNDA:19,getFilefromDataUrl
+FNDA:19,(anonymous_5)
+FNDA:17,loadImage
+FNDA:17,(anonymous_7)
+FNDA:17,(anonymous_8)
FNDA:0,(anonymous_9)
-FNDA:12,drawImageInCanvas
-FNDA:11,drawFileInCanvas
-FNDA:15,canvasToFile
+FNDA:16,drawImageInCanvas
+FNDA:15,drawFileInCanvas
+FNDA:17,canvasToFile
FNDA:1,getExifOrientation
FNDA:1,(anonymous_14)
FNDA:1,(anonymous_15)
FNDA:0,(anonymous_16)
-FNDA:6,handleMaxWidthOrHeight
-FNDA:6,followExifOrientation
-FNDA:31,getNewCanvasAndCtx
-FNDA:29,cleanupCanvasMemory
-FNDA:0,(anonymous_21)
+FNDA:8,handleMaxWidthOrHeight
+FNDA:1,handleMaxWidth
+FNDA:1,handleMaxHeight
+FNDA:8,followExifOrientation
+FNDA:39,getNewCanvasAndCtx
+FNDA:33,cleanupCanvasMemory
+FNDA:0,(anonymous_23)
DA:1,1
DA:4,1
DA:5,1
DA:6,1
-DA:15,13
-DA:16,13
-DA:17,13
-DA:18,13
-DA:19,13
-DA:32,17
-DA:33,17
-DA:34,17
-DA:35,17
-DA:36,17
-DA:37,17
-DA:38,17
-DA:39,23716492
-DA:41,17
-DA:42,17
-DA:43,17
-DA:44,17
-DA:68,13
-DA:69,13
-DA:70,13
-DA:71,13
-DA:72,13
-DA:83,12
-DA:84,12
-DA:85,12
-DA:96,11
-DA:97,11
-DA:99,11
-DA:100,11
-DA:102,11
-DA:103,11
-DA:118,15
+DA:15,17
+DA:16,17
+DA:17,17
+DA:18,17
+DA:19,17
+DA:32,19
+DA:33,19
+DA:34,19
+DA:35,19
+DA:36,19
+DA:37,19
+DA:38,19
+DA:39,24015318
+DA:41,19
+DA:42,19
+DA:43,19
+DA:44,19
+DA:68,17
+DA:69,17
+DA:70,17
+DA:71,17
+DA:72,17
+DA:83,16
+DA:84,16
+DA:85,16
+DA:96,15
+DA:97,15
+DA:99,15
+DA:100,15
+DA:102,15
+DA:103,15
+DA:118,17
DA:119,0
DA:120,0
DA:121,0
-DA:123,15
-DA:124,15
-DA:126,15
+DA:123,17
+DA:124,17
+DA:126,17
DA:138,1
DA:139,1
DA:140,1
@@ -262,12 +276,12 @@ DA:168,0
DA:171,0
DA:173,1
DA:174,1
-DA:185,6
-DA:186,6
-DA:187,6
-DA:189,6
-DA:191,6
-DA:194,6
+DA:185,8
+DA:186,8
+DA:187,8
+DA:189,8
+DA:191,8
+DA:194,8
DA:195,4
DA:196,4
DA:197,2
@@ -276,44 +290,68 @@ DA:200,2
DA:201,2
DA:203,4
DA:205,4
-DA:208,6
-DA:220,6
-DA:221,6
-DA:223,6
-DA:226,6
-DA:227,0
-DA:228,0
-DA:230,6
-DA:231,6
-DA:235,6
-DA:236,0
-DA:237,0
-DA:238,0
-DA:239,0
-DA:240,0
-DA:241,0
-DA:242,0
-DA:243,6
-DA:246,6
-DA:248,6
-DA:250,6
-DA:262,31
-DA:263,31
-DA:264,0
-DA:265,0
-DA:266,0
-DA:269,31
-DA:270,31
-DA:272,31
-DA:273,31
-DA:274,31
-DA:283,29
-DA:284,29
-DA:287,1
-DA:289,1
-DA:290,0
-LF:120
-LH:84
+DA:208,8
+DA:218,1
+DA:219,1
+DA:220,1
+DA:222,1
+DA:224,1
+DA:227,1
+DA:228,1
+DA:229,1
+DA:230,1
+DA:231,1
+DA:233,1
+DA:236,1
+DA:246,1
+DA:247,1
+DA:248,1
+DA:250,1
+DA:252,1
+DA:255,1
+DA:256,1
+DA:257,1
+DA:258,1
+DA:260,1
+DA:262,1
+DA:265,1
+DA:277,8
+DA:278,8
+DA:280,8
+DA:283,8
+DA:284,0
+DA:285,0
+DA:287,8
+DA:288,8
+DA:292,8
+DA:293,0
+DA:294,0
+DA:295,0
+DA:296,0
+DA:297,0
+DA:298,0
+DA:299,0
+DA:300,8
+DA:303,8
+DA:305,8
+DA:307,8
+DA:319,39
+DA:320,39
+DA:321,0
+DA:322,0
+DA:323,0
+DA:326,39
+DA:327,39
+DA:329,39
+DA:330,39
+DA:331,39
+DA:340,33
+DA:341,33
+DA:344,1
+DA:346,1
+DA:347,0
+LF:144
+LH:108
BRDA:4,0,0,1
BRDA:4,0,1,1
BRDA:4,0,2,0
@@ -329,8 +367,8 @@ BRDA:6,2,3,1
BRDA:31,3,0,2
BRDA:116,4,0,0
BRDA:118,5,0,0
-BRDA:118,5,1,15
-BRDA:118,6,0,15
+BRDA:118,5,1,17
+BRDA:118,6,0,17
BRDA:118,6,1,0
BRDA:142,7,0,1
BRDA:142,7,1,0
@@ -344,34 +382,42 @@ BRDA:161,11,0,0
BRDA:161,11,1,0
BRDA:165,12,0,0
BRDA:165,12,1,0
-BRDA:189,13,0,6
+BRDA:189,13,0,8
BRDA:189,13,1,4
BRDA:189,13,2,0
BRDA:194,14,0,4
-BRDA:194,14,1,2
+BRDA:194,14,1,4
BRDA:196,15,0,2
BRDA:196,15,1,2
-BRDA:226,16,0,0
-BRDA:226,16,1,6
-BRDA:226,17,0,6
-BRDA:226,17,1,0
-BRDA:235,18,0,0
-BRDA:235,18,1,0
-BRDA:235,18,2,0
-BRDA:235,18,3,0
-BRDA:235,18,4,0
-BRDA:235,18,5,0
-BRDA:235,18,6,0
-BRDA:235,18,7,6
-BRDA:265,19,0,0
-BRDA:265,19,1,0
-BRDA:287,20,0,1
-BRDA:287,20,1,0
-BRDA:289,21,0,1
-BRDA:289,21,1,0
-BRDA:290,22,0,0
-BRDA:290,22,1,0
-BRDA:290,22,2,0
-BRF:58
-BRH:23
+BRDA:222,16,0,1
+BRDA:222,16,1,1
+BRDA:227,17,0,1
+BRDA:227,17,1,0
+BRDA:250,18,0,1
+BRDA:250,18,1,1
+BRDA:255,19,0,1
+BRDA:255,19,1,0
+BRDA:283,20,0,0
+BRDA:283,20,1,8
+BRDA:283,21,0,8
+BRDA:283,21,1,0
+BRDA:292,22,0,0
+BRDA:292,22,1,0
+BRDA:292,22,2,0
+BRDA:292,22,3,0
+BRDA:292,22,4,0
+BRDA:292,22,5,0
+BRDA:292,22,6,0
+BRDA:292,22,7,8
+BRDA:322,23,0,0
+BRDA:322,23,1,0
+BRDA:344,24,0,1
+BRDA:344,24,1,0
+BRDA:346,25,0,1
+BRDA:346,25,1,0
+BRDA:347,26,0,0
+BRDA:347,26,1,0
+BRDA:347,26,2,0
+BRF:66
+BRH:29
end_of_record
diff --git a/coverage/utils.js.html b/coverage/utils.js.html
index 28597b4..594a141 100644
--- a/coverage/utils.js.html
+++ b/coverage/utils.js.html
@@ -23,30 +23,30 @@
- 64.18%
+ 69.62%
Statements
- 86/134
+ 110/158
- 39.66%
+ 43.94%
Branches
- 23/58
+ 29/66
- 81.82%
+ 83.33%
Functions
- 18/22
+ 20/24
- 70%
+ 75%
Lines
- 84/120
+ 108/144
@@ -351,7 +351,64 @@
292
293
294
-
295 1x
+295
+296
+297
+298
+299
+300
+301
+302
+303
+304
+305
+306
+307
+308
+309
+310
+311
+312
+313
+314
+315
+316
+317
+318
+319
+320
+321
+322
+323
+324
+325
+326
+327
+328
+329
+330
+331
+332
+333
+334
+335
+336
+337
+338
+339
+340
+341
+342
+343
+344
+345
+346
+347
+348
+349
+350
+351
+352 1x
1x
@@ -365,11 +422,11 @@
-13x
-13x
-13x
-13x
-13x
+17x
+17x
+17x
+17x
+17x
@@ -382,19 +439,19 @@
-17x
-17x
-17x
-17x
-17x
-17x
-17x
-23716492x
+19x
+19x
+19x
+19x
+19x
+19x
+19x
+24015318x
-17x
-17x
-17x
-17x
+19x
+19x
+19x
+19x
@@ -418,11 +475,11 @@
-13x
-13x
-13x
-13x
-13x
+17x
+17x
+17x
+17x
+17x
@@ -433,9 +490,9 @@
-12x
-12x
-12x
+16x
+16x
+16x
@@ -446,14 +503,14 @@
-11x
-11x
+15x
+15x
-11x
-11x
+15x
+15x
-11x
-11x
+15x
+15x
@@ -468,15 +525,15 @@
-15x
+17x
-15x
-15x
+17x
+17x
-15x
+17x
@@ -535,16 +592,16 @@
-6x
-6x
-6x
+8x
+8x
+8x
-6x
+8x
-6x
+8x
-6x
+8x
4x
4x
2x
@@ -558,7 +615,7 @@
4x
-6x
+8x
@@ -568,24 +625,81 @@
+1x
+1x
+1x
+
+1x
+
+1x
+
+
+1x
+1x
+1x
+1x
+1x
+
+1x
+
+
+1x
+
+
+
-6x
-6x
-6x
-6x
+
+1x
+1x
+1x
+
+1x
+
+1x
+
+
+1x
+1x
+1x
+1x
+
+1x
+
+1x
+
+
+1x
+
+
+
+
+
+
+
+
+
+
+
+8x
+8x
+
+8x
+
+
+8x
-6x
-6x
+8x
+8x
-6x
+8x
@@ -593,14 +707,14 @@
-6x
+8x
-6x
+8x
-6x
+8x
-6x
+8x
@@ -612,19 +726,19 @@
-31x
-31x
+39x
+39x
-31x
-31x
+39x
+39x
-31x
-31x
-31x
+39x
+39x
+39x
@@ -633,8 +747,8 @@
-29x
-29x
+33x
+33x
1x
@@ -855,6 +969,63 @@
return newCanvas
}
+/**
+ *
+ * @param {HTMLCanvasElement} canvas
+ * @param options
+ * @returns {HTMLCanvasElement>}
+ */
+export function handleMaxWidth (canvas, options) {
+ const width = canvas.width
+ const height = canvas.height
+ const maxWidth = options.maxWidth
+
+ const needToHandle = Number.isFinite(maxWidth) && (width > maxWidth)
+
+ let newCanvas = canvas
+ let ctx
+
+ E if (needToHandle) {
+ [newCanvas, ctx] = getNewCanvasAndCtx(width, height)
+ newCanvas.width = maxWidth
+ newCanvas.height = (height / width) * maxWidth
+ ctx.drawImage(canvas, 0, 0, newCanvas.width, newCanvas.height)
+
+ cleanupCanvasMemory(canvas)
+ }
+
+ return newCanvas
+}
+
+/**
+ *
+ * @param {HTMLCanvasElement} canvas
+ * @param options
+ * @returns {HTMLCanvasElement>}
+ */
+export function handleMaxHeight (canvas, options) {
+ const width = canvas.width
+ const height = canvas.height
+ const maxHeight = options.maxHeight
+
+ const needToHandle = Number.isFinite(maxHeight) && (height > maxHeight)
+
+ let newCanvas = canvas
+ let ctx
+
+ E if (needToHandle) {
+ [newCanvas, ctx] = getNewCanvasAndCtx(width, height)
+ newCanvas.width = (width / height) * maxHeight
+ newCanvas.height = maxHeight
+
+ ctx.drawImage(canvas, 0, 0, newCanvas.width, newCanvas.height)
+
+ cleanupCanvasMemory(canvas)
+ }
+
+ return newCanvas
+}
+
/**
* followExifOrientation
* source: https://stackoverflow.com/a/40867559/10395024
@@ -946,7 +1117,7 @@
diff --git a/dist/browser-image-compression.d.ts b/dist/browser-image-compression.d.ts
index 94ff80d..74f1955 100644
--- a/dist/browser-image-compression.d.ts
+++ b/dist/browser-image-compression.d.ts
@@ -8,6 +8,10 @@ interface Options {
maxSizeMB?: number;
/** @default undefined */
maxWidthOrHeight?: number;
+ /** @default undefined */
+ maxWidth?: number;
+ /** @default undefined */
+ maxHeight?: number;
/** @default false */
useWebWorker?: boolean;
/** @default 10 */
diff --git a/dist/browser-image-compression.js b/dist/browser-image-compression.js
index a65ae89..c36fcc5 100644
--- a/dist/browser-image-compression.js
+++ b/dist/browser-image-compression.js
@@ -5,5 +5,5 @@
* https://github.com/Donaldcwl/browser-image-compression
*/
-!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e=e||self).imageCompression=n()}(this,(function(){"use strict";function _defineProperty(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function ownKeys(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function _objectSpread2(e){for(var n=1;n2&&void 0!==arguments[2]?arguments[2]:Date.now();return new Promise((function(t){for(var i=e.split(","),o=i[0].match(/:(.*?);/)[1],a=atob(i[1]),s=a.length,c=new Uint8Array(s);s--;)c[s]=a.charCodeAt(s);var l=new Blob([c],{type:o});l.name=n,l.lastModified=r,t(l)}))}function loadImage(e){return new Promise((function(n,r){var t=new Image;t.onload=function(){return n(t)},t.onerror=function(e){return r(e)},t.src=e}))}function drawImageInCanvas(e){var n=_slicedToArray(getNewCanvasAndCtx(e.width,e.height),2),r=n[0];return n[1].drawImage(e,0,0,r.width,r.height),r}function drawFileInCanvas(e){return new Promise((function(n,r){var t,i,o=function $Try_1_Post(){try{return i=drawImageInCanvas(t),n([t,i])}catch(e){return r(e)}},a=function $Try_1_Catch(n){try{return getDataUrlFromFile(e).then((function(e){try{return loadImage(e).then((function(e){try{return t=e,o()}catch(e){return r(e)}}),r)}catch(e){return r(e)}}),r)}catch(e){return r(e)}};try{return createImageBitmap(e).then((function(e){try{return t=e,o()}catch(e){return a()}}),a)}catch(e){a()}}))}function canvasToFile(e,n,r,t){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;return new Promise((function(o,a){var s;return"function"==typeof OffscreenCanvas&&e instanceof OffscreenCanvas?e.convertToBlob({type:n,quality:i}).then(function(e){try{return(s=e).name=r,s.lastModified=t,$If_4.call(this)}catch(e){return a(e)}}.bind(this),a):getFilefromDataUrl(e.toDataURL(n,i),r,t).then(function(e){try{return s=e,$If_4.call(this)}catch(e){return a(e)}}.bind(this),a);function $If_4(){return o(s)}}))}function getExifOrientation(e){return new Promise((function(n,r){var t=new CustomFileReader;t.onload=function(e){var r=new DataView(e.target.result);if(65496!=r.getUint16(0,!1))return n(-2);for(var t=r.byteLength,i=2;io||i>o)){var s=_slicedToArray(getNewCanvasAndCtx(t,i),2);a=s[0],r=s[1],t>i?(a.width=o,a.height=i/t*o):(a.width=t/i*o,a.height=o),r.drawImage(e,0,0,a.width,a.height),cleanupCanvasMemory(e)}return a}function followExifOrientation(e,n){var r=e.width,t=e.height,i=_slicedToArray(getNewCanvasAndCtx(r,t),2),o=i[0],a=i[1];switch(40&&void 0!==arguments[0]?arguments[0]:5;i+=e,"function"==typeof n.onProgress&&n.onProgress(Math.min(i,100))}function setProgress(e){i=Math.min(Math.max(e,i),100),"function"==typeof n.onProgress&&n.onProgress(i)}return i=0,o=n.maxIteration||10,a=1024*n.maxSizeMB*1024,incProgress(),drawFileInCanvas(e).then(function(i){try{var C=_slicedToArray(i,2);return C[0],s=C[1],incProgress(),c=handleMaxWidthOrHeight(s,n),incProgress(),new Promise((function(r,t){var i;if(!(i=n.exifOrientation))return getExifOrientation(e).then(function(e){try{return i=e,$If_2.call(this)}catch(e){return t(e)}}.bind(this),t);function $If_2(){return r(i)}return $If_2.call(this)})).then(function(i){try{return n.exifOrientation=i,incProgress(),l=followExifOrientation(c,n.exifOrientation),incProgress(),u=1,canvasToFile(l,n.fileType||e.type,e.name,e.lastModified,u).then(function(i){try{{if(f=i,incProgress(),m=f.size>a,g=f.size>e.size,!m&&!g)return setProgress(100),r(f);var C;function $Loop_3(){if(o--&&(h>a||h>d)){var r,i,s=_slicedToArray(getNewCanvasAndCtx(r=m?.95*w.width:w.width,i=m?.95*w.height:w.height),2);return v=s[0],s[1].drawImage(w,0,0,r,i),"image/jpeg"===e.type&&(u*=.95),canvasToFile(v,n.fileType||e.type,e.name,e.lastModified,u).then((function(e){try{return y=e,cleanupCanvasMemory(w),w=v,h=y.size,setProgress(Math.min(99,Math.floor((p-h)/(p-a)*100))),$Loop_3}catch(e){return t(e)}}),t)}return[1]}return d=e.size,p=f.size,h=p,w=l,(C=function(e){for(;e;){if(e.then)return void e.then(C,t);try{if(e.pop){if(e.length)return e.pop()?$Loop_3_exit.call(this):e;e=$Loop_3}else e=e.call(this)}catch(e){return t(e)}}}.bind(this))($Loop_3);function $Loop_3_exit(){return cleanupCanvasMemory(w),cleanupCanvasMemory(v),cleanupCanvasMemory(c),cleanupCanvasMemory(l),cleanupCanvasMemory(s),setProgress(100),r(y)}}}catch(e){return t(e)}}.bind(this),t)}catch(e){return t(e)}}.bind(this),t)}catch(e){return t(e)}}.bind(this),t)}))}e&&(Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e});var r,t,i=0;function generateLib(){return function createSourceObject(e){return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}("\n function imageCompression (){return (".concat(imageCompression,").apply(null, arguments)}\n\n imageCompression.getDataUrlFromFile = ").concat(imageCompression.getDataUrlFromFile,"\n imageCompression.getFilefromDataUrl = ").concat(imageCompression.getFilefromDataUrl,"\n imageCompression.loadImage = ").concat(imageCompression.loadImage,"\n imageCompression.drawImageInCanvas = ").concat(imageCompression.drawImageInCanvas,"\n imageCompression.drawFileInCanvas = ").concat(imageCompression.drawFileInCanvas,"\n imageCompression.canvasToFile = ").concat(imageCompression.canvasToFile,"\n imageCompression.getExifOrientation = ").concat(imageCompression.getExifOrientation,"\n imageCompression.handleMaxWidthOrHeight = ").concat(imageCompression.handleMaxWidthOrHeight,"\n imageCompression.followExifOrientation = ").concat(imageCompression.followExifOrientation,"\n imageCompression.cleanupMemory = ").concat(imageCompression.cleanupMemory,"\n\n getDataUrlFromFile = imageCompression.getDataUrlFromFile\n getFilefromDataUrl = imageCompression.getFilefromDataUrl\n loadImage = imageCompression.loadImage\n drawImageInCanvas = imageCompression.drawImageInCanvas\n drawFileInCanvas = imageCompression.drawFileInCanvas\n canvasToFile = imageCompression.canvasToFile\n getExifOrientation = imageCompression.getExifOrientation\n handleMaxWidthOrHeight = imageCompression.handleMaxWidthOrHeight\n followExifOrientation = imageCompression.followExifOrientation\n cleanupMemory = imageCompression.cleanupMemory\n\n getNewCanvasAndCtx = ").concat(getNewCanvasAndCtx,"\n \n CustomFileReader = FileReader\n \n CustomFile = File\n \n function _slicedToArray(arr, n) { return arr }\n \n function _typeof(a) { return typeof a }\n\n function compress (){return (").concat(compress,").apply(null, arguments)}\n "))}function generateWorkerScript(){return function createWorker(e){return"function"==typeof e&&(e="(".concat(f,")()")),new Worker(URL.createObjectURL(new Blob([e])))}("\n let scriptImported = false\n self.addEventListener('message', async (e) => {\n const { file, id, imageCompressionLibUrl, options } = e.data\n options.onProgress = (progress) => self.postMessage({ progress, id })\n try {\n if (!scriptImported) {\n // console.log('[worker] importScripts', imageCompressionLibUrl)\n self.importScripts(imageCompressionLibUrl)\n scriptImported = true\n }\n // console.log('[worker] self', self)\n const compressedFile = await imageCompression(file, options)\n self.postMessage({ file: compressedFile, id })\n } catch (e) {\n // console.error('[worker] error', e)\n self.postMessage({ error: e.message + '\\n' + e.stack, id })\n }\n })\n ")}function imageCompression(e,n){return new Promise((function(o,a){var s,c,l;if(n.maxSizeMB=n.maxSizeMB||Number.POSITIVE_INFINITY,c="boolean"==typeof n.useWebWorker&&n.useWebWorker,delete n.useWebWorker,!(e instanceof Blob||e instanceof CustomFile))return a(new Error("The file given is not an instance of Blob or File"));if(!/^image/.test(e.type))return a(new Error("The file given is not an image"));if(l="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,!c||"function"!=typeof Worker||l)return compress(e,n).then(function(e){try{return s=e,$If_3.call(this)}catch(e){return a(e)}}.bind(this),a);var u=function(){try{return $If_3.call(this)}catch(e){return a(e)}}.bind(this),f=function $Try_1_Catch(r){try{return compress(e,n).then((function(e){try{return s=e,u()}catch(e){return a(e)}}),a)}catch(e){return a(e)}};try{return function compressOnWebWorker(e,n){return new Promise((function(o,a){return new Promise((function(s,c){var l=i++;return r||(r=generateLib()),t||(t=generateWorkerScript()),t.addEventListener("message",(function handler(e){if(e.data.id===l){if(void 0!==e.data.progress&&e.data.progress<100)return void n.onProgress(e.data.progress);t.removeEventListener("message",handler),e.data.error&&a(new Error(e.data.error)),o(e.data.file)}})),t.postMessage({file:e,id:l,imageCompressionLibUrl:r,options:_objectSpread2({},n,{onProgress:void 0})}),s()}))}))}(e,n).then((function(e){try{return s=e,u()}catch(e){return f()}}),f)}catch(e){f()}function $If_3(){try{s.name=e.name,s.lastModified=e.lastModified}catch(e){}return o(s)}}))}return imageCompression.getDataUrlFromFile=getDataUrlFromFile,imageCompression.getFilefromDataUrl=getFilefromDataUrl,imageCompression.loadImage=loadImage,imageCompression.drawImageInCanvas=drawImageInCanvas,imageCompression.drawFileInCanvas=drawFileInCanvas,imageCompression.canvasToFile=canvasToFile,imageCompression.getExifOrientation=getExifOrientation,imageCompression.handleMaxWidthOrHeight=handleMaxWidthOrHeight,imageCompression.followExifOrientation=followExifOrientation,imageCompression.cleanupMemory=cleanupCanvasMemory,imageCompression.version="1.0.9",imageCompression}));
+!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e=e||self).imageCompression=n()}(this,(function(){"use strict";function _defineProperty(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function ownKeys(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function _objectSpread2(e){for(var n=1;n2&&void 0!==arguments[2]?arguments[2]:Date.now();return new Promise((function(t){for(var i=e.split(","),a=i[0].match(/:(.*?);/)[1],o=atob(i[1]),s=o.length,c=new Uint8Array(s);s--;)c[s]=o.charCodeAt(s);var m=new Blob([c],{type:a});m.name=n,m.lastModified=r,t(m)}))}function loadImage(e){return new Promise((function(n,r){var t=new Image;t.onload=function(){return n(t)},t.onerror=function(e){return r(e)},t.src=e}))}function drawImageInCanvas(e){var n=_slicedToArray(getNewCanvasAndCtx(e.width,e.height),2),r=n[0];return n[1].drawImage(e,0,0,r.width,r.height),r}function drawFileInCanvas(e){return new Promise((function(n,r){var t,i,a=function $Try_1_Post(){try{return i=drawImageInCanvas(t),n([t,i])}catch(e){return r(e)}},o=function $Try_1_Catch(n){try{return getDataUrlFromFile(e).then((function(e){try{return loadImage(e).then((function(e){try{return t=e,a()}catch(e){return r(e)}}),r)}catch(e){return r(e)}}),r)}catch(e){return r(e)}};try{return createImageBitmap(e).then((function(e){try{return t=e,a()}catch(e){return o()}}),o)}catch(e){o()}}))}function canvasToFile(e,n,r,t){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;return new Promise((function(a,o){var s;return"function"==typeof OffscreenCanvas&&e instanceof OffscreenCanvas?e.convertToBlob({type:n,quality:i}).then(function(e){try{return(s=e).name=r,s.lastModified=t,$If_4.call(this)}catch(e){return o(e)}}.bind(this),o):getFilefromDataUrl(e.toDataURL(n,i),r,t).then(function(e){try{return s=e,$If_4.call(this)}catch(e){return o(e)}}.bind(this),o);function $If_4(){return a(s)}}))}function getExifOrientation(e){return new Promise((function(n,r){var t=new CustomFileReader;t.onload=function(e){var r=new DataView(e.target.result);if(65496!=r.getUint16(0,!1))return n(-2);for(var t=r.byteLength,i=2;ia||i>a)){var s=_slicedToArray(getNewCanvasAndCtx(t,i),2);o=s[0],r=s[1],t>i?(o.width=a,o.height=i/t*a):(o.width=t/i*a,o.height=a),r.drawImage(e,0,0,o.width,o.height),cleanupCanvasMemory(e)}return o}function handleMaxWidth(e,n){var r,t=e.width,i=e.height,a=n.maxWidth,o=e;if(Number.isFinite(a)&&t>a){var s=_slicedToArray(getNewCanvasAndCtx(t,i),2);o=s[0],r=s[1],o.width=a,o.height=i/t*a,r.drawImage(e,0,0,o.width,o.height),cleanupCanvasMemory(e)}return o}function handleMaxHeight(e,n){var r,t=e.width,i=e.height,a=n.maxHeight,o=e;if(Number.isFinite(a)&&i>a){var s=_slicedToArray(getNewCanvasAndCtx(t,i),2);o=s[0],r=s[1],o.width=t/i*a,o.height=a,r.drawImage(e,0,0,o.width,o.height),cleanupCanvasMemory(e)}return o}function followExifOrientation(e,n){var r=e.width,t=e.height,i=_slicedToArray(getNewCanvasAndCtx(r,t),2),a=i[0],o=i[1];switch(40&&void 0!==arguments[0]?arguments[0]:5;i+=e,"function"==typeof n.onProgress&&n.onProgress(Math.min(i,100))}function setProgress(e){i=Math.min(Math.max(e,i),100),"function"==typeof n.onProgress&&n.onProgress(i)}return i=0,a=n.maxIteration||10,o=1024*n.maxSizeMB*1024,incProgress(),drawFileInCanvas(e).then(function(i){try{var y=_slicedToArray(i,2);return y[0],s=y[1],incProgress(),c=handleMaxWidthOrHeight(s,n),Number.isFinite(n.maxWidth)&&(c=handleMaxWidth(s,n)),Number.isFinite(n.maxHeight)&&(c=handleMaxHeight(s,n)),incProgress(),new Promise((function(r,t){var i;if(!(i=n.exifOrientation))return getExifOrientation(e).then(function(e){try{return i=e,$If_2.call(this)}catch(e){return t(e)}}.bind(this),t);function $If_2(){return r(i)}return $If_2.call(this)})).then(function(i){try{return n.exifOrientation=i,incProgress(),m=followExifOrientation(c,n.exifOrientation),incProgress(),l=1,canvasToFile(m,n.fileType||e.type,e.name,e.lastModified,l).then(function(i){try{{if(u=i,incProgress(),f=u.size>o,g=u.size>e.size,!f&&!g)return setProgress(100),r(u);var y;function $Loop_3(){if(a--&&(p>o||p>d)){var r,i,s=_slicedToArray(getNewCanvasAndCtx(r=f?.95*w.width:w.width,i=f?.95*w.height:w.height),2);return v=s[0],s[1].drawImage(w,0,0,r,i),"image/jpeg"===e.type&&(l*=.95),canvasToFile(v,n.fileType||e.type,e.name,e.lastModified,l).then((function(e){try{return C=e,cleanupCanvasMemory(w),w=v,p=C.size,setProgress(Math.min(99,Math.floor((h-p)/(h-o)*100))),$Loop_3}catch(e){return t(e)}}),t)}return[1]}return d=e.size,h=u.size,p=h,w=m,(y=function(e){for(;e;){if(e.then)return void e.then(y,t);try{if(e.pop){if(e.length)return e.pop()?$Loop_3_exit.call(this):e;e=$Loop_3}else e=e.call(this)}catch(e){return t(e)}}}.bind(this))($Loop_3);function $Loop_3_exit(){return cleanupCanvasMemory(w),cleanupCanvasMemory(v),cleanupCanvasMemory(c),cleanupCanvasMemory(m),cleanupCanvasMemory(s),setProgress(100),r(C)}}}catch(e){return t(e)}}.bind(this),t)}catch(e){return t(e)}}.bind(this),t)}catch(e){return t(e)}}.bind(this),t)}))}e&&(Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e});var r,t,i=0;function generateLib(){return function createSourceObject(e){return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}("\n function imageCompression (){return (".concat(imageCompression,").apply(null, arguments)}\n\n imageCompression.getDataUrlFromFile = ").concat(imageCompression.getDataUrlFromFile,"\n imageCompression.getFilefromDataUrl = ").concat(imageCompression.getFilefromDataUrl,"\n imageCompression.loadImage = ").concat(imageCompression.loadImage,"\n imageCompression.drawImageInCanvas = ").concat(imageCompression.drawImageInCanvas,"\n imageCompression.drawFileInCanvas = ").concat(imageCompression.drawFileInCanvas,"\n imageCompression.canvasToFile = ").concat(imageCompression.canvasToFile,"\n imageCompression.getExifOrientation = ").concat(imageCompression.getExifOrientation,"\n imageCompression.handleMaxWidthOrHeight = ").concat(imageCompression.handleMaxWidthOrHeight,"\n imageCompression.handleMaxWidth = ").concat(imageCompression.handleMaxWidth,"\n imageCompression.handleMaxHeight = ").concat(imageCompression.handleMaxHeight,"\n imageCompression.followExifOrientation = ").concat(imageCompression.followExifOrientation,"\n imageCompression.cleanupMemory = ").concat(imageCompression.cleanupMemory,"\n\n getDataUrlFromFile = imageCompression.getDataUrlFromFile\n getFilefromDataUrl = imageCompression.getFilefromDataUrl\n loadImage = imageCompression.loadImage\n drawImageInCanvas = imageCompression.drawImageInCanvas\n drawFileInCanvas = imageCompression.drawFileInCanvas\n canvasToFile = imageCompression.canvasToFile\n getExifOrientation = imageCompression.getExifOrientation\n handleMaxWidthOrHeight = imageCompression.handleMaxWidthOrHeight\n handleMaxWidth = imageCompression.handleMaxWidth\n handleMaxHeight = imageCompression.handleMaxHeight\n followExifOrientation = imageCompression.followExifOrientation\n cleanupMemory = imageCompression.cleanupMemory\n\n getNewCanvasAndCtx = ").concat(getNewCanvasAndCtx,"\n \n CustomFileReader = FileReader\n \n CustomFile = File\n \n function _slicedToArray(arr, n) { return arr }\n \n function _typeof(a) { return typeof a }\n\n function compress (){return (").concat(compress,").apply(null, arguments)}\n "))}function generateWorkerScript(){return function createWorker(e){return"function"==typeof e&&(e="(".concat(f,")()")),new Worker(URL.createObjectURL(new Blob([e])))}("\n let scriptImported = false\n self.addEventListener('message', async (e) => {\n const { file, id, imageCompressionLibUrl, options } = e.data\n options.onProgress = (progress) => self.postMessage({ progress, id })\n try {\n if (!scriptImported) {\n // console.log('[worker] importScripts', imageCompressionLibUrl)\n self.importScripts(imageCompressionLibUrl)\n scriptImported = true\n }\n // console.log('[worker] self', self)\n const compressedFile = await imageCompression(file, options)\n self.postMessage({ file: compressedFile, id })\n } catch (e) {\n // console.error('[worker] error', e)\n self.postMessage({ error: e.message + '\\n' + e.stack, id })\n }\n })\n ")}function imageCompression(e,n){return new Promise((function(a,o){var s,c,m;if(n.maxSizeMB=n.maxSizeMB||Number.POSITIVE_INFINITY,c="boolean"==typeof n.useWebWorker&&n.useWebWorker,delete n.useWebWorker,!(e instanceof Blob||e instanceof CustomFile))return o(new Error("The file given is not an instance of Blob or File"));if(!/^image/.test(e.type))return o(new Error("The file given is not an image"));if(m="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,!c||"function"!=typeof Worker||m)return compress(e,n).then(function(e){try{return s=e,$If_3.call(this)}catch(e){return o(e)}}.bind(this),o);var l=function(){try{return $If_3.call(this)}catch(e){return o(e)}}.bind(this),u=function $Try_1_Catch(r){try{return compress(e,n).then((function(e){try{return s=e,l()}catch(e){return o(e)}}),o)}catch(e){return o(e)}};try{return function compressOnWebWorker(e,n){return new Promise((function(a,o){return new Promise((function(s,c){var m=i++;return r||(r=generateLib()),t||(t=generateWorkerScript()),t.addEventListener("message",(function handler(e){if(e.data.id===m){if(void 0!==e.data.progress&&e.data.progress<100)return void n.onProgress(e.data.progress);t.removeEventListener("message",handler),e.data.error&&o(new Error(e.data.error)),a(e.data.file)}})),t.postMessage({file:e,id:m,imageCompressionLibUrl:r,options:_objectSpread2({},n,{onProgress:void 0})}),s()}))}))}(e,n).then((function(e){try{return s=e,l()}catch(e){return u()}}),u)}catch(e){u()}function $If_3(){try{s.name=e.name,s.lastModified=e.lastModified}catch(e){}return a(s)}}))}return imageCompression.getDataUrlFromFile=getDataUrlFromFile,imageCompression.getFilefromDataUrl=getFilefromDataUrl,imageCompression.loadImage=loadImage,imageCompression.drawImageInCanvas=drawImageInCanvas,imageCompression.drawFileInCanvas=drawFileInCanvas,imageCompression.canvasToFile=canvasToFile,imageCompression.getExifOrientation=getExifOrientation,imageCompression.handleMaxWidthOrHeight=handleMaxWidthOrHeight,imageCompression.handleMaxWidth=handleMaxWidth,imageCompression.handleMaxHeight=handleMaxHeight,imageCompression.followExifOrientation=followExifOrientation,imageCompression.cleanupMemory=cleanupCanvasMemory,imageCompression.version="1.0.9",imageCompression}));
//# sourceMappingURL=browser-image-compression.js.map
diff --git a/dist/browser-image-compression.js.map b/dist/browser-image-compression.js.map
index b65c02f..2da3423 100644
--- a/dist/browser-image-compression.js.map
+++ b/dist/browser-image-compression.js.map
@@ -1 +1 @@
-{"version":3,"file":"browser-image-compression.js","sources":["../lib/utils.js","../lib/image-compression.js","../lib/web-worker.js","../lib/index.js"],"sourcesContent":["const isBrowser = typeof window !== 'undefined' // change browser environment to support SSR\n\n// add support for cordova-plugin-file\nconst moduleMapper = isBrowser && window.cordova && window.cordova.require && window.cordova.require('cordova/modulemapper')\nexport const CustomFile = isBrowser && ((moduleMapper && moduleMapper.getOriginalSymbol(window, 'File')) || File)\nexport const CustomFileReader = isBrowser && ((moduleMapper && moduleMapper.getOriginalSymbol(window, 'FileReader')) || FileReader)\n\n/**\n * getDataUrlFromFile\n *\n * @param {File} file\n * @returns {Promise}\n */\nexport function getDataUrlFromFile (file) {\n return new Promise((resolve, reject) => {\n const reader = new CustomFileReader()\n reader.onload = () => resolve(reader.result)\n reader.onerror = (e) => reject(e)\n reader.readAsDataURL(file)\n })\n}\n\n/**\n * getFilefromDataUrl\n *\n * @param {string} dataurl\n * @param {string} filename\n * @param {number} [lastModified=Date.now()]\n * @returns {Promise}\n */\nexport function getFilefromDataUrl (dataurl, filename, lastModified = Date.now()) {\n return new Promise((resolve) => {\n const arr = dataurl.split(',')\n const mime = arr[0].match(/:(.*?);/)[1]\n const bstr = atob(arr[1])\n let n = bstr.length\n const u8arr = new Uint8Array(n)\n while (n--) {\n u8arr[n] = bstr.charCodeAt(n)\n }\n const file = new Blob([u8arr], { type: mime })\n file.name = filename\n file.lastModified = lastModified\n resolve(file)\n\n // Safari has issue with File constructor not being able to POST in FormData\n // https://github.com/Donaldcwl/browser-image-compression/issues/8\n // https://bugs.webkit.org/show_bug.cgi?id=165081\n // let file\n // try {\n // file = new File([u8arr], filename, { type: mime }) // Edge do not support File constructor\n // } catch (e) {\n // file = new Blob([u8arr], { type: mime })\n // file.name = filename\n // file.lastModified = lastModified\n // }\n // resolve(file)\n })\n}\n\n/**\n * loadImage\n *\n * @param {string} src\n * @returns {Promise}\n */\nexport function loadImage (src) {\n return new Promise((resolve, reject) => {\n const img = new Image()\n img.onload = () => resolve(img)\n img.onerror = (e) => reject(e)\n img.src = src\n })\n}\n\n/**\n * drawImageInCanvas\n *\n * @param {HTMLImageElement} img\n * @returns {HTMLCanvasElement}\n */\nexport function drawImageInCanvas (img) {\n const [canvas, ctx] = getNewCanvasAndCtx(img.width, img.height)\n ctx.drawImage(img, 0, 0, canvas.width, canvas.height)\n return canvas\n}\n\n/**\n * drawFileInCanvas\n *\n * @param {File} file\n * @returns {Promise<[ImageBitmap | HTMLImageElement, HTMLCanvasElement]>}\n */\nexport async function drawFileInCanvas (file) {\n let img\n try {\n img = await createImageBitmap(file)\n } catch (e) {\n const dataUrl = await getDataUrlFromFile(file)\n img = await loadImage(dataUrl)\n }\n const canvas = drawImageInCanvas(img)\n return [img, canvas]\n}\n\n/**\n * canvasToFile\n *\n * @param canvas\n * @param {string} fileType\n * @param {string} fileName\n * @param {number} fileLastModified\n * @param {number} [quality]\n * @returns {Promise}\n */\nexport async function canvasToFile (canvas, fileType, fileName, fileLastModified, quality = 1) {\n let file\n if (typeof OffscreenCanvas === 'function' && canvas instanceof OffscreenCanvas) {\n file = await canvas.convertToBlob({ type: fileType, quality })\n file.name = fileName\n file.lastModified = fileLastModified\n } else {\n const dataUrl = canvas.toDataURL(fileType, quality)\n file = await getFilefromDataUrl(dataUrl, fileName, fileLastModified)\n }\n return file\n}\n\n/**\n * getExifOrientation\n * get image exif orientation info\n * source: https://stackoverflow.com/a/32490603/10395024\n *\n * @param {File} file\n * @returns {Promise} - orientation id, see https://i.stack.imgur.com/VGsAj.gif\n */\nexport function getExifOrientation (file) {\n return new Promise((resolve, reject) => {\n const reader = new CustomFileReader()\n reader.onload = (e) => {\n const view = new DataView(e.target.result)\n if (view.getUint16(0, false) != 0xFFD8) {\n return resolve(-2)\n }\n const length = view.byteLength\n let offset = 2\n while (offset < length) {\n if (view.getUint16(offset + 2, false) <= 8) return resolve(-1)\n const marker = view.getUint16(offset, false)\n offset += 2\n if (marker == 0xFFE1) {\n if (view.getUint32(offset += 2, false) != 0x45786966) {\n return resolve(-1)\n }\n\n var little = view.getUint16(offset += 6, false) == 0x4949\n offset += view.getUint32(offset + 4, little)\n var tags = view.getUint16(offset, little)\n offset += 2\n for (var i = 0; i < tags; i++) {\n if (view.getUint16(offset + (i * 12), little) == 0x0112) {\n return resolve(view.getUint16(offset + (i * 12) + 8, little))\n }\n }\n } else if ((marker & 0xFF00) != 0xFF00) {\n break\n } else {\n offset += view.getUint16(offset, false)\n }\n }\n return resolve(-1)\n }\n reader.onerror = (e) => reject(e)\n reader.readAsArrayBuffer(file)\n })\n}\n\n/**\n *\n * @param {HTMLCanvasElement} canvas\n * @param options\n * @returns {HTMLCanvasElement>}\n */\nexport function handleMaxWidthOrHeight (canvas, options) {\n const width = canvas.width\n const height = canvas.height\n const maxWidthOrHeight = options.maxWidthOrHeight\n\n const needToHandle = Number.isFinite(maxWidthOrHeight) && (width > maxWidthOrHeight || height > maxWidthOrHeight)\n\n let newCanvas = canvas\n let ctx\n\n if (needToHandle) {\n [newCanvas, ctx] = getNewCanvasAndCtx(width, height)\n if (width > height) {\n newCanvas.width = maxWidthOrHeight\n newCanvas.height = (height / width) * maxWidthOrHeight\n } else {\n newCanvas.width = (width / height) * maxWidthOrHeight\n newCanvas.height = maxWidthOrHeight\n }\n ctx.drawImage(canvas, 0, 0, newCanvas.width, newCanvas.height)\n\n cleanupCanvasMemory(canvas)\n }\n\n return newCanvas\n}\n\n/**\n * followExifOrientation\n * source: https://stackoverflow.com/a/40867559/10395024\n *\n * @param {HTMLCanvasElement} canvas\n * @param {number} exifOrientation\n * @returns {HTMLCanvasElement} canvas\n */\nexport function followExifOrientation (canvas, exifOrientation) {\n const width = canvas.width\n const height = canvas.height\n\n const [newCanvas, ctx] = getNewCanvasAndCtx(width, height)\n\n // set proper canvas dimensions before transform & export\n if (4 < exifOrientation && exifOrientation < 9) {\n newCanvas.width = height\n newCanvas.height = width\n } else {\n newCanvas.width = width\n newCanvas.height = height\n }\n\n // transform context before drawing image\n switch (exifOrientation) {\n case 2: ctx.transform(-1, 0, 0, 1, width, 0); break;\n case 3: ctx.transform(-1, 0, 0, -1, width, height); break;\n case 4: ctx.transform(1, 0, 0, -1, 0, height); break;\n case 5: ctx.transform(0, 1, 1, 0, 0, 0); break;\n case 6: ctx.transform(0, 1, -1, 0, height, 0); break;\n case 7: ctx.transform(0, -1, -1, 0, height, width); break;\n case 8: ctx.transform(0, -1, 1, 0, 0, width); break;\n default: break;\n }\n\n ctx.drawImage(canvas, 0, 0, width, height)\n\n cleanupCanvasMemory(canvas)\n\n return newCanvas\n}\n\n/**\n * get new Canvas and it's context\n * @param width\n * @param height\n * @returns {[HTMLCanvasElement, CanvasRenderingContext2D]}\n */\nexport function getNewCanvasAndCtx (width, height) {\n let canvas\n let ctx\n try {\n canvas = new OffscreenCanvas(width, height)\n ctx = canvas.getContext('2d')\n if (ctx === null) {\n throw new Error('getContext of OffscreenCanvas returns null')\n }\n } catch (e) {\n canvas = document.createElement('canvas')\n ctx = canvas.getContext('2d')\n }\n canvas.width = width\n canvas.height = height\n return [canvas, ctx]\n}\n\n/**\n * clear Canvas memory\n * @param canvas\n * @returns null\n */\nexport function cleanupCanvasMemory (canvas) {\n canvas.width = 0\n canvas.height = 0\n}\n\nif (isBrowser) {\n// Polyfill for Number.isInteger\n Number.isInteger = Number.isInteger || function (value) {\n return typeof value === 'number' &&\n isFinite(value) &&\n Math.floor(value) === value\n }\n}\n","import {\n canvasToFile,\n cleanupCanvasMemory,\n drawFileInCanvas,\n followExifOrientation,\n getExifOrientation,\n getNewCanvasAndCtx,\n handleMaxWidthOrHeight\n} from './utils'\n\n/**\n * Compress an image file.\n *\n * @param {File} file\n * @param {Object} options - { maxSizeMB=Number.POSITIVE_INFINITY, maxWidthOrHeight, useWebWorker=false, maxIteration = 10, exifOrientation, fileType }\n * @param {number} [options.maxSizeMB=Number.POSITIVE_INFINITY]\n * @param {number} [options.maxWidthOrHeight=undefined]\n * @param {number} [options.maxIteration=10]\n * @param {number} [options.exifOrientation] - default to be the exif orientation from the image file\n * @param {Function} [options.onProgress] - a function takes one progress argument (progress from 0 to 100)\n * @param {string} [options.fileType] - default to be the original mime type from the image file\n * @returns {Promise}\n */\nexport default async function compress (file, options) {\n let progress = 0\n\n function incProgress (inc = 5) {\n progress += inc\n if (typeof options.onProgress === 'function') {\n options.onProgress(Math.min(progress, 100))\n }\n }\n\n function setProgress (p) {\n progress = Math.min(Math.max(p, progress), 100)\n if (typeof options.onProgress === 'function') {\n options.onProgress(progress)\n }\n }\n\n let remainingTrials = options.maxIteration || 10\n\n const maxSizeByte = options.maxSizeMB * 1024 * 1024\n\n incProgress()\n\n // drawFileInCanvas\n let [img, origCanvas] = await drawFileInCanvas(file)\n\n incProgress()\n\n // handleMaxWidthOrHeight\n const maxWidthOrHeightFixedCanvas = handleMaxWidthOrHeight(origCanvas, options)\n\n incProgress()\n\n // exifOrientation\n options.exifOrientation = options.exifOrientation || await getExifOrientation(file)\n incProgress()\n const orientationFixedCanvas = followExifOrientation(maxWidthOrHeightFixedCanvas, options.exifOrientation)\n incProgress()\n\n let quality = 1\n\n let tempFile = await canvasToFile(orientationFixedCanvas, options.fileType || file.type, file.name, file.lastModified, quality)\n incProgress()\n\n const origExceedMaxSize = tempFile.size > maxSizeByte\n const sizeBecomeLarger = tempFile.size > file.size\n\n // check if we need to compress or resize\n if (!origExceedMaxSize && !sizeBecomeLarger) {\n // no need to compress\n setProgress(100)\n return tempFile\n }\n\n const sourceSize = file.size\n const renderedSize = tempFile.size\n let currentSize = renderedSize\n let compressedFile\n let newCanvas, ctx\n let canvas = orientationFixedCanvas\n while (remainingTrials-- && (currentSize > maxSizeByte || currentSize > sourceSize)) {\n const newWidth = origExceedMaxSize ? canvas.width * 0.95 : canvas.width\n const newHeight = origExceedMaxSize ? canvas.height * 0.95 : canvas.height;\n [newCanvas, ctx] = getNewCanvasAndCtx(newWidth, newHeight)\n\n ctx.drawImage(canvas, 0, 0, newWidth, newHeight)\n\n if (file.type === 'image/jpeg') {\n quality *= 0.95\n }\n compressedFile = await canvasToFile(newCanvas, options.fileType || file.type, file.name, file.lastModified, quality)\n\n cleanupCanvasMemory(canvas)\n\n canvas = newCanvas\n\n currentSize = compressedFile.size\n setProgress(Math.min(99, Math.floor((renderedSize - currentSize) / (renderedSize - maxSizeByte) * 100)))\n }\n\n // garbage clean canvas for safari\n // ref: https://bugs.webkit.org/show_bug.cgi?id=195325\n cleanupCanvasMemory(canvas)\n cleanupCanvasMemory(newCanvas)\n cleanupCanvasMemory(maxWidthOrHeightFixedCanvas)\n cleanupCanvasMemory(orientationFixedCanvas)\n cleanupCanvasMemory(origCanvas)\n\n setProgress(100)\n return compressedFile\n}\n","import lib from './index'\nimport compress from './image-compression'\nimport { getNewCanvasAndCtx } from './utils'\n\nlet cnt = 0\nlet imageCompressionLibUrl\nlet worker\n\nfunction createWorker (script) {\n if (typeof script === 'function') {\n script = `(${f})()`\n }\n return new Worker(URL.createObjectURL(new Blob([script])))\n}\n\nfunction createSourceObject (str) {\n return URL.createObjectURL(new Blob([str], { type: 'application/javascript' }))\n}\n\nfunction generateLib () {\n // prepare the lib to be used inside WebWorker\n return createSourceObject(`\n function imageCompression (){return (${lib}).apply(null, arguments)}\n\n imageCompression.getDataUrlFromFile = ${lib.getDataUrlFromFile}\n imageCompression.getFilefromDataUrl = ${lib.getFilefromDataUrl}\n imageCompression.loadImage = ${lib.loadImage}\n imageCompression.drawImageInCanvas = ${lib.drawImageInCanvas}\n imageCompression.drawFileInCanvas = ${lib.drawFileInCanvas}\n imageCompression.canvasToFile = ${lib.canvasToFile}\n imageCompression.getExifOrientation = ${lib.getExifOrientation}\n imageCompression.handleMaxWidthOrHeight = ${lib.handleMaxWidthOrHeight}\n imageCompression.followExifOrientation = ${lib.followExifOrientation}\n imageCompression.cleanupMemory = ${lib.cleanupMemory}\n\n getDataUrlFromFile = imageCompression.getDataUrlFromFile\n getFilefromDataUrl = imageCompression.getFilefromDataUrl\n loadImage = imageCompression.loadImage\n drawImageInCanvas = imageCompression.drawImageInCanvas\n drawFileInCanvas = imageCompression.drawFileInCanvas\n canvasToFile = imageCompression.canvasToFile\n getExifOrientation = imageCompression.getExifOrientation\n handleMaxWidthOrHeight = imageCompression.handleMaxWidthOrHeight\n followExifOrientation = imageCompression.followExifOrientation\n cleanupMemory = imageCompression.cleanupMemory\n\n getNewCanvasAndCtx = ${getNewCanvasAndCtx}\n \n CustomFileReader = FileReader\n \n CustomFile = File\n \n function _slicedToArray(arr, n) { return arr }\n \n function _typeof(a) { return typeof a }\n\n function compress (){return (${compress}).apply(null, arguments)}\n `)\n}\n\nfunction generateWorkerScript () {\n // code to be run in the WebWorker\n return createWorker(`\n let scriptImported = false\n self.addEventListener('message', async (e) => {\n const { file, id, imageCompressionLibUrl, options } = e.data\n options.onProgress = (progress) => self.postMessage({ progress, id })\n try {\n if (!scriptImported) {\n // console.log('[worker] importScripts', imageCompressionLibUrl)\n self.importScripts(imageCompressionLibUrl)\n scriptImported = true\n }\n // console.log('[worker] self', self)\n const compressedFile = await imageCompression(file, options)\n self.postMessage({ file: compressedFile, id })\n } catch (e) {\n // console.error('[worker] error', e)\n self.postMessage({ error: e.message + '\\\\n' + e.stack, id })\n }\n })\n `)\n}\n\nexport function compressOnWebWorker (file, options) {\n return new Promise(async (resolve, reject) => {\n let id = cnt++\n\n if (!imageCompressionLibUrl) {\n imageCompressionLibUrl = generateLib()\n }\n\n if (!worker) {\n worker = generateWorkerScript()\n }\n\n function handler (e) {\n if (e.data.id === id) {\n if (e.data.progress !== undefined && e.data.progress < 100) {\n options.onProgress(e.data.progress)\n return\n }\n worker.removeEventListener('message', handler)\n if (e.data.error) {\n reject(new Error(e.data.error))\n }\n resolve(e.data.file)\n }\n }\n\n worker.addEventListener('message', handler)\n worker.postMessage({\n file,\n id,\n imageCompressionLibUrl,\n options: { ...options, onProgress: undefined }\n })\n })\n}\n","import compress from './image-compression'\nimport {\n canvasToFile,\n drawFileInCanvas,\n drawImageInCanvas,\n getDataUrlFromFile,\n getFilefromDataUrl,\n loadImage,\n getExifOrientation,\n handleMaxWidthOrHeight,\n followExifOrientation,\n CustomFile,\n cleanupCanvasMemory\n} from './utils'\nimport { compressOnWebWorker } from './web-worker'\n\n/**\n * Compress an image file.\n *\n * @param {File} file\n * @param {Object} options - { maxSizeMB=Number.POSITIVE_INFINITY, maxWidthOrHeight, useWebWorker=false, maxIteration = 10, exifOrientation, fileType }\n * @param {number} [options.maxSizeMB=Number.POSITIVE_INFINITY]\n * @param {number} [options.maxWidthOrHeight=undefined]\n * @param {boolean} [options.useWebWorker=false]\n * @param {number} [options.maxIteration=10]\n * @param {number} [options.exifOrientation] - default to be the exif orientation from the image file\n * @param {Function} [options.onProgress] - a function takes one progress argument (progress from 0 to 100)\n * @param {string} [options.fileType] - default to be the original mime type from the image file\n * @returns {Promise}\n */\nasync function imageCompression (file, options) {\n\n let compressedFile\n\n options.maxSizeMB = options.maxSizeMB || Number.POSITIVE_INFINITY\n const useWebWorker = typeof options.useWebWorker === 'boolean' ? options.useWebWorker : false\n delete options.useWebWorker\n\n if (!(file instanceof Blob || file instanceof CustomFile)) {\n throw new Error('The file given is not an instance of Blob or File')\n } else if (!/^image/.test(file.type)) {\n throw new Error('The file given is not an image')\n }\n\n // try run in web worker, fall back to run in main thread\n const inWebWorker = typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope\n\n // if ((useWebWorker && typeof Worker === 'function') || inWebWorker) {\n // console.log('run compression in web worker')\n // } else {\n // console.log('run compression in main thread')\n // }\n\n if (useWebWorker && typeof Worker === 'function' && !inWebWorker) {\n try {\n // console.log(1)\n // \"compressOnWebWorker\" is kind of like a recursion to call \"imageCompression\" again inside web worker\n compressedFile = await compressOnWebWorker(file, options)\n } catch (e) {\n // console.warn('Run compression in web worker failed:', e, ', fall back to main thread')\n // console.log(1.5)\n compressedFile = await compress(file, options)\n }\n } else {\n // console.log(2)\n compressedFile = await compress(file, options)\n }\n\n try {\n compressedFile.name = file.name\n compressedFile.lastModified = file.lastModified\n } catch (e) {}\n\n return compressedFile\n}\n\nimageCompression.getDataUrlFromFile = getDataUrlFromFile\nimageCompression.getFilefromDataUrl = getFilefromDataUrl\nimageCompression.loadImage = loadImage\nimageCompression.drawImageInCanvas = drawImageInCanvas\nimageCompression.drawFileInCanvas = drawFileInCanvas\nimageCompression.canvasToFile = canvasToFile\nimageCompression.getExifOrientation = getExifOrientation\nimageCompression.handleMaxWidthOrHeight = handleMaxWidthOrHeight\nimageCompression.followExifOrientation = followExifOrientation\nimageCompression.cleanupMemory = cleanupCanvasMemory\nimageCompression.version = '1.0.9'\n\nexport default imageCompression\n"],"names":["isBrowser","window","moduleMapper","getDataUrlFromFile","resolve","reader","dataurl","split","n","bstr","filename","file","lastModified","canvas","view","length","offset","getUint32","marker","maxWidthOrHeight","width","followExifOrientation","height","ctx","inc","drawFileInCanvas","exifOrientation","orientationFixedCanvas","options","fileType","imageCompressionLibUrl","cnt","generateLib","script","imageCompression","getFilefromDataUrl","loadImage","drawImageInCanvas","canvasToFile","getExifOrientation"],"mappings":";;;;;;;m/CAAA,IAAMA,EAA8B,oBAAlBC,2EAKoF,uCAQ5DC,2HAiBnC,SAASC,mDACPC,6DAEqBC,uNAiCdC,EAAAC,mCACK,gBAEjBC,EAAIC,6BAEJD,8DAUYE,EACdC,EAAAC,eACAR,28BAwC2CS,qcAoB7CC,mEAEMV,mCAGQW,6DAEgBC,8GASpBF,EAAAG,UAAgBD,0GAKPA,EAAA,iCAGTE,0KA+BVC,oJAqBuBC,4CAQTP,EAAV,0CAEAA,qBASYQ,yCACZC,mPAmBuCA,wJAI9B,sHA8BbC,2BAHWD,kaC3OTE,iLAPK,6DAUGC,iBAARd,yKAUMe,sUAWAC,EAAwBC,EAAAC,6PAsB5BhB,o8BC/FJ,IACIiB,IADAC,IAcJ,SAASC,okEAPPC,gkDCyDwBtB,0zBAa1BuB,iBAAA/B,mBAAsCA,mBACtC+B,iBAAAC,sCACAD,iBAAAE,oBACAF,iBAAAG,oCACAH,iBAAAT,kCAEAS,iBAAAI,0BAxFAJ,iBAAAK"}
\ No newline at end of file
+{"version":3,"file":"browser-image-compression.js","sources":["../lib/utils.js","../lib/image-compression.js","../lib/web-worker.js","../lib/index.js"],"sourcesContent":["const isBrowser = typeof window !== 'undefined' // change browser environment to support SSR\n\n// add support for cordova-plugin-file\nconst moduleMapper = isBrowser && window.cordova && window.cordova.require && window.cordova.require('cordova/modulemapper')\nexport const CustomFile = isBrowser && ((moduleMapper && moduleMapper.getOriginalSymbol(window, 'File')) || File)\nexport const CustomFileReader = isBrowser && ((moduleMapper && moduleMapper.getOriginalSymbol(window, 'FileReader')) || FileReader)\n\n/**\n * getDataUrlFromFile\n *\n * @param {File} file\n * @returns {Promise}\n */\nexport function getDataUrlFromFile (file) {\n return new Promise((resolve, reject) => {\n const reader = new CustomFileReader()\n reader.onload = () => resolve(reader.result)\n reader.onerror = (e) => reject(e)\n reader.readAsDataURL(file)\n })\n}\n\n/**\n * getFilefromDataUrl\n *\n * @param {string} dataurl\n * @param {string} filename\n * @param {number} [lastModified=Date.now()]\n * @returns {Promise}\n */\nexport function getFilefromDataUrl (dataurl, filename, lastModified = Date.now()) {\n return new Promise((resolve) => {\n const arr = dataurl.split(',')\n const mime = arr[0].match(/:(.*?);/)[1]\n const bstr = atob(arr[1])\n let n = bstr.length\n const u8arr = new Uint8Array(n)\n while (n--) {\n u8arr[n] = bstr.charCodeAt(n)\n }\n const file = new Blob([u8arr], { type: mime })\n file.name = filename\n file.lastModified = lastModified\n resolve(file)\n\n // Safari has issue with File constructor not being able to POST in FormData\n // https://github.com/Donaldcwl/browser-image-compression/issues/8\n // https://bugs.webkit.org/show_bug.cgi?id=165081\n // let file\n // try {\n // file = new File([u8arr], filename, { type: mime }) // Edge do not support File constructor\n // } catch (e) {\n // file = new Blob([u8arr], { type: mime })\n // file.name = filename\n // file.lastModified = lastModified\n // }\n // resolve(file)\n })\n}\n\n/**\n * loadImage\n *\n * @param {string} src\n * @returns {Promise}\n */\nexport function loadImage (src) {\n return new Promise((resolve, reject) => {\n const img = new Image()\n img.onload = () => resolve(img)\n img.onerror = (e) => reject(e)\n img.src = src\n })\n}\n\n/**\n * drawImageInCanvas\n *\n * @param {HTMLImageElement} img\n * @returns {HTMLCanvasElement}\n */\nexport function drawImageInCanvas (img) {\n const [canvas, ctx] = getNewCanvasAndCtx(img.width, img.height)\n ctx.drawImage(img, 0, 0, canvas.width, canvas.height)\n return canvas\n}\n\n/**\n * drawFileInCanvas\n *\n * @param {File} file\n * @returns {Promise<[ImageBitmap | HTMLImageElement, HTMLCanvasElement]>}\n */\nexport async function drawFileInCanvas (file) {\n let img\n try {\n img = await createImageBitmap(file)\n } catch (e) {\n const dataUrl = await getDataUrlFromFile(file)\n img = await loadImage(dataUrl)\n }\n const canvas = drawImageInCanvas(img)\n return [img, canvas]\n}\n\n/**\n * canvasToFile\n *\n * @param canvas\n * @param {string} fileType\n * @param {string} fileName\n * @param {number} fileLastModified\n * @param {number} [quality]\n * @returns {Promise}\n */\nexport async function canvasToFile (canvas, fileType, fileName, fileLastModified, quality = 1) {\n let file\n if (typeof OffscreenCanvas === 'function' && canvas instanceof OffscreenCanvas) {\n file = await canvas.convertToBlob({ type: fileType, quality })\n file.name = fileName\n file.lastModified = fileLastModified\n } else {\n const dataUrl = canvas.toDataURL(fileType, quality)\n file = await getFilefromDataUrl(dataUrl, fileName, fileLastModified)\n }\n return file\n}\n\n/**\n * getExifOrientation\n * get image exif orientation info\n * source: https://stackoverflow.com/a/32490603/10395024\n *\n * @param {File} file\n * @returns {Promise} - orientation id, see https://i.stack.imgur.com/VGsAj.gif\n */\nexport function getExifOrientation (file) {\n return new Promise((resolve, reject) => {\n const reader = new CustomFileReader()\n reader.onload = (e) => {\n const view = new DataView(e.target.result)\n if (view.getUint16(0, false) != 0xFFD8) {\n return resolve(-2)\n }\n const length = view.byteLength\n let offset = 2\n while (offset < length) {\n if (view.getUint16(offset + 2, false) <= 8) return resolve(-1)\n const marker = view.getUint16(offset, false)\n offset += 2\n if (marker == 0xFFE1) {\n if (view.getUint32(offset += 2, false) != 0x45786966) {\n return resolve(-1)\n }\n\n var little = view.getUint16(offset += 6, false) == 0x4949\n offset += view.getUint32(offset + 4, little)\n var tags = view.getUint16(offset, little)\n offset += 2\n for (var i = 0; i < tags; i++) {\n if (view.getUint16(offset + (i * 12), little) == 0x0112) {\n return resolve(view.getUint16(offset + (i * 12) + 8, little))\n }\n }\n } else if ((marker & 0xFF00) != 0xFF00) {\n break\n } else {\n offset += view.getUint16(offset, false)\n }\n }\n return resolve(-1)\n }\n reader.onerror = (e) => reject(e)\n reader.readAsArrayBuffer(file)\n })\n}\n\n/**\n *\n * @param {HTMLCanvasElement} canvas\n * @param options\n * @returns {HTMLCanvasElement>}\n */\nexport function handleMaxWidthOrHeight (canvas, options) {\n const width = canvas.width\n const height = canvas.height\n const maxWidthOrHeight = options.maxWidthOrHeight\n\n const needToHandle = Number.isFinite(maxWidthOrHeight) && (width > maxWidthOrHeight || height > maxWidthOrHeight)\n\n let newCanvas = canvas\n let ctx\n\n if (needToHandle) {\n [newCanvas, ctx] = getNewCanvasAndCtx(width, height)\n if (width > height) {\n newCanvas.width = maxWidthOrHeight\n newCanvas.height = (height / width) * maxWidthOrHeight\n } else {\n newCanvas.width = (width / height) * maxWidthOrHeight\n newCanvas.height = maxWidthOrHeight\n }\n ctx.drawImage(canvas, 0, 0, newCanvas.width, newCanvas.height)\n\n cleanupCanvasMemory(canvas)\n }\n\n return newCanvas\n}\n\n/**\n *\n * @param {HTMLCanvasElement} canvas\n * @param options\n * @returns {HTMLCanvasElement>}\n */\nexport function handleMaxWidth (canvas, options) {\n const width = canvas.width\n const height = canvas.height\n const maxWidth = options.maxWidth\n\n const needToHandle = Number.isFinite(maxWidth) && (width > maxWidth)\n\n let newCanvas = canvas\n let ctx\n\n if (needToHandle) {\n [newCanvas, ctx] = getNewCanvasAndCtx(width, height)\n newCanvas.width = maxWidth\n newCanvas.height = (height / width) * maxWidth\n ctx.drawImage(canvas, 0, 0, newCanvas.width, newCanvas.height)\n\n cleanupCanvasMemory(canvas)\n }\n\n return newCanvas\n}\n\n/**\n *\n * @param {HTMLCanvasElement} canvas\n * @param options\n * @returns {HTMLCanvasElement>}\n */\nexport function handleMaxHeight (canvas, options) {\n const width = canvas.width\n const height = canvas.height\n const maxHeight = options.maxHeight\n\n const needToHandle = Number.isFinite(maxHeight) && (height > maxHeight)\n\n let newCanvas = canvas\n let ctx\n\n if (needToHandle) {\n [newCanvas, ctx] = getNewCanvasAndCtx(width, height)\n newCanvas.width = (width / height) * maxHeight\n newCanvas.height = maxHeight\n\n ctx.drawImage(canvas, 0, 0, newCanvas.width, newCanvas.height)\n\n cleanupCanvasMemory(canvas)\n }\n\n return newCanvas\n}\n\n/**\n * followExifOrientation\n * source: https://stackoverflow.com/a/40867559/10395024\n *\n * @param {HTMLCanvasElement} canvas\n * @param {number} exifOrientation\n * @returns {HTMLCanvasElement} canvas\n */\nexport function followExifOrientation (canvas, exifOrientation) {\n const width = canvas.width\n const height = canvas.height\n\n const [newCanvas, ctx] = getNewCanvasAndCtx(width, height)\n\n // set proper canvas dimensions before transform & export\n if (4 < exifOrientation && exifOrientation < 9) {\n newCanvas.width = height\n newCanvas.height = width\n } else {\n newCanvas.width = width\n newCanvas.height = height\n }\n\n // transform context before drawing image\n switch (exifOrientation) {\n case 2: ctx.transform(-1, 0, 0, 1, width, 0); break;\n case 3: ctx.transform(-1, 0, 0, -1, width, height); break;\n case 4: ctx.transform(1, 0, 0, -1, 0, height); break;\n case 5: ctx.transform(0, 1, 1, 0, 0, 0); break;\n case 6: ctx.transform(0, 1, -1, 0, height, 0); break;\n case 7: ctx.transform(0, -1, -1, 0, height, width); break;\n case 8: ctx.transform(0, -1, 1, 0, 0, width); break;\n default: break;\n }\n\n ctx.drawImage(canvas, 0, 0, width, height)\n\n cleanupCanvasMemory(canvas)\n\n return newCanvas\n}\n\n/**\n * get new Canvas and it's context\n * @param width\n * @param height\n * @returns {[HTMLCanvasElement, CanvasRenderingContext2D]}\n */\nexport function getNewCanvasAndCtx (width, height) {\n let canvas\n let ctx\n try {\n canvas = new OffscreenCanvas(width, height)\n ctx = canvas.getContext('2d')\n if (ctx === null) {\n throw new Error('getContext of OffscreenCanvas returns null')\n }\n } catch (e) {\n canvas = document.createElement('canvas')\n ctx = canvas.getContext('2d')\n }\n canvas.width = width\n canvas.height = height\n return [canvas, ctx]\n}\n\n/**\n * clear Canvas memory\n * @param canvas\n * @returns null\n */\nexport function cleanupCanvasMemory (canvas) {\n canvas.width = 0\n canvas.height = 0\n}\n\nif (isBrowser) {\n// Polyfill for Number.isInteger\n Number.isInteger = Number.isInteger || function (value) {\n return typeof value === 'number' &&\n isFinite(value) &&\n Math.floor(value) === value\n }\n}\n","import {\n canvasToFile,\n cleanupCanvasMemory,\n drawFileInCanvas,\n followExifOrientation,\n getExifOrientation,\n getNewCanvasAndCtx,\n handleMaxWidthOrHeight,\n handleMaxWidth,\n handleMaxHeight\n} from './utils'\n\n/**\n * Compress an image file.\n *\n * @param {File} file\n * @param {Object} options - { maxSizeMB=Number.POSITIVE_INFINITY, maxWidthOrHeight, maxWidth, maxHeight, useWebWorker=false, maxIteration = 10, exifOrientation, fileType }\n * @param {number} [options.maxSizeMB=Number.POSITIVE_INFINITY]\n * @param {number} [options.maxWidthOrHeight=undefined]\n * @param {number} [options.maxWidth=undefined]\n * @param {number} [options.maxHeight=undefined]\n * @param {number} [options.maxIteration=10]\n * @param {number} [options.exifOrientation] - default to be the exif orientation from the image file\n * @param {Function} [options.onProgress] - a function takes one progress argument (progress from 0 to 100)\n * @param {string} [options.fileType] - default to be the original mime type from the image file\n * @returns {Promise}\n */\nexport default async function compress (file, options) {\n let progress = 0\n\n function incProgress (inc = 5) {\n progress += inc\n if (typeof options.onProgress === 'function') {\n options.onProgress(Math.min(progress, 100))\n }\n }\n\n function setProgress (p) {\n progress = Math.min(Math.max(p, progress), 100)\n if (typeof options.onProgress === 'function') {\n options.onProgress(progress)\n }\n }\n\n let remainingTrials = options.maxIteration || 10\n\n const maxSizeByte = options.maxSizeMB * 1024 * 1024\n\n incProgress()\n\n // drawFileInCanvas\n let [img, origCanvas] = await drawFileInCanvas(file)\n\n incProgress()\n\n // handleMaxDimensions\n let maxDimensionsCanvas = handleMaxWidthOrHeight(origCanvas, options)\n\n if (Number.isFinite(options.maxWidth)) {\n maxDimensionsCanvas = handleMaxWidth(origCanvas, options)\n }\n if (Number.isFinite(options.maxHeight)) {\n maxDimensionsCanvas = handleMaxHeight(origCanvas, options)\n }\n\n incProgress()\n\n // exifOrientation\n options.exifOrientation = options.exifOrientation || await getExifOrientation(file)\n incProgress()\n const orientationFixedCanvas = followExifOrientation(maxDimensionsCanvas, options.exifOrientation)\n incProgress()\n\n let quality = 1\n\n let tempFile = await canvasToFile(orientationFixedCanvas, options.fileType || file.type, file.name, file.lastModified, quality)\n incProgress()\n\n const origExceedMaxSize = tempFile.size > maxSizeByte\n const sizeBecomeLarger = tempFile.size > file.size\n\n // check if we need to compress or resize\n if (!origExceedMaxSize && !sizeBecomeLarger) {\n // no need to compress\n setProgress(100)\n return tempFile\n }\n\n const sourceSize = file.size\n const renderedSize = tempFile.size\n let currentSize = renderedSize\n let compressedFile\n let newCanvas, ctx\n let canvas = orientationFixedCanvas\n while (remainingTrials-- && (currentSize > maxSizeByte || currentSize > sourceSize)) {\n const newWidth = origExceedMaxSize ? canvas.width * 0.95 : canvas.width\n const newHeight = origExceedMaxSize ? canvas.height * 0.95 : canvas.height;\n [newCanvas, ctx] = getNewCanvasAndCtx(newWidth, newHeight)\n\n ctx.drawImage(canvas, 0, 0, newWidth, newHeight)\n\n if (file.type === 'image/jpeg') {\n quality *= 0.95\n }\n compressedFile = await canvasToFile(newCanvas, options.fileType || file.type, file.name, file.lastModified, quality)\n\n cleanupCanvasMemory(canvas)\n\n canvas = newCanvas\n\n currentSize = compressedFile.size\n setProgress(Math.min(99, Math.floor((renderedSize - currentSize) / (renderedSize - maxSizeByte) * 100)))\n }\n\n // garbage clean canvas for safari\n // ref: https://bugs.webkit.org/show_bug.cgi?id=195325\n cleanupCanvasMemory(canvas)\n cleanupCanvasMemory(newCanvas)\n cleanupCanvasMemory(maxDimensionsCanvas)\n cleanupCanvasMemory(orientationFixedCanvas)\n cleanupCanvasMemory(origCanvas)\n\n setProgress(100)\n return compressedFile\n}\n","import lib from './index'\nimport compress from './image-compression'\nimport { getNewCanvasAndCtx } from './utils'\n\nlet cnt = 0\nlet imageCompressionLibUrl\nlet worker\n\nfunction createWorker (script) {\n if (typeof script === 'function') {\n script = `(${f})()`\n }\n return new Worker(URL.createObjectURL(new Blob([script])))\n}\n\nfunction createSourceObject (str) {\n return URL.createObjectURL(new Blob([str], { type: 'application/javascript' }))\n}\n\nfunction generateLib () {\n // prepare the lib to be used inside WebWorker\n return createSourceObject(`\n function imageCompression (){return (${lib}).apply(null, arguments)}\n\n imageCompression.getDataUrlFromFile = ${lib.getDataUrlFromFile}\n imageCompression.getFilefromDataUrl = ${lib.getFilefromDataUrl}\n imageCompression.loadImage = ${lib.loadImage}\n imageCompression.drawImageInCanvas = ${lib.drawImageInCanvas}\n imageCompression.drawFileInCanvas = ${lib.drawFileInCanvas}\n imageCompression.canvasToFile = ${lib.canvasToFile}\n imageCompression.getExifOrientation = ${lib.getExifOrientation}\n imageCompression.handleMaxWidthOrHeight = ${lib.handleMaxWidthOrHeight}\n imageCompression.handleMaxWidth = ${lib.handleMaxWidth}\n imageCompression.handleMaxHeight = ${lib.handleMaxHeight}\n imageCompression.followExifOrientation = ${lib.followExifOrientation}\n imageCompression.cleanupMemory = ${lib.cleanupMemory}\n\n getDataUrlFromFile = imageCompression.getDataUrlFromFile\n getFilefromDataUrl = imageCompression.getFilefromDataUrl\n loadImage = imageCompression.loadImage\n drawImageInCanvas = imageCompression.drawImageInCanvas\n drawFileInCanvas = imageCompression.drawFileInCanvas\n canvasToFile = imageCompression.canvasToFile\n getExifOrientation = imageCompression.getExifOrientation\n handleMaxWidthOrHeight = imageCompression.handleMaxWidthOrHeight\n handleMaxWidth = imageCompression.handleMaxWidth\n handleMaxHeight = imageCompression.handleMaxHeight\n followExifOrientation = imageCompression.followExifOrientation\n cleanupMemory = imageCompression.cleanupMemory\n\n getNewCanvasAndCtx = ${getNewCanvasAndCtx}\n \n CustomFileReader = FileReader\n \n CustomFile = File\n \n function _slicedToArray(arr, n) { return arr }\n \n function _typeof(a) { return typeof a }\n\n function compress (){return (${compress}).apply(null, arguments)}\n `)\n}\n\nfunction generateWorkerScript () {\n // code to be run in the WebWorker\n return createWorker(`\n let scriptImported = false\n self.addEventListener('message', async (e) => {\n const { file, id, imageCompressionLibUrl, options } = e.data\n options.onProgress = (progress) => self.postMessage({ progress, id })\n try {\n if (!scriptImported) {\n // console.log('[worker] importScripts', imageCompressionLibUrl)\n self.importScripts(imageCompressionLibUrl)\n scriptImported = true\n }\n // console.log('[worker] self', self)\n const compressedFile = await imageCompression(file, options)\n self.postMessage({ file: compressedFile, id })\n } catch (e) {\n // console.error('[worker] error', e)\n self.postMessage({ error: e.message + '\\\\n' + e.stack, id })\n }\n })\n `)\n}\n\nexport function compressOnWebWorker (file, options) {\n return new Promise(async (resolve, reject) => {\n let id = cnt++\n\n if (!imageCompressionLibUrl) {\n imageCompressionLibUrl = generateLib()\n }\n\n if (!worker) {\n worker = generateWorkerScript()\n }\n\n function handler (e) {\n if (e.data.id === id) {\n if (e.data.progress !== undefined && e.data.progress < 100) {\n options.onProgress(e.data.progress)\n return\n }\n worker.removeEventListener('message', handler)\n if (e.data.error) {\n reject(new Error(e.data.error))\n }\n resolve(e.data.file)\n }\n }\n\n worker.addEventListener('message', handler)\n worker.postMessage({\n file,\n id,\n imageCompressionLibUrl,\n options: { ...options, onProgress: undefined }\n })\n })\n}\n","import compress from './image-compression'\nimport {\n canvasToFile,\n drawFileInCanvas,\n drawImageInCanvas,\n getDataUrlFromFile,\n getFilefromDataUrl,\n loadImage,\n getExifOrientation,\n handleMaxWidthOrHeight,\n handleMaxWidth,\n handleMaxHeight,\n followExifOrientation,\n CustomFile,\n cleanupCanvasMemory\n} from './utils'\nimport { compressOnWebWorker } from './web-worker'\n\n/**\n * Compress an image file.\n *\n * @param {File} file\n * @param {Object} options - { maxSizeMB=Number.POSITIVE_INFINITY, maxWidthOrHeight, maxWidth, maxHeight, useWebWorker=false, maxIteration = 10, exifOrientation, fileType }\n * @param {number} [options.maxSizeMB=Number.POSITIVE_INFINITY]\n * @param {number} [options.maxWidthOrHeight=undefined]\n * @param {number} [options.maxWidth=undefined]\n * @param {number} [options.maxHeight=undefined]\n * @param {boolean} [options.useWebWorker=false]\n * @param {number} [options.maxIteration=10]\n * @param {number} [options.exifOrientation] - default to be the exif orientation from the image file\n * @param {Function} [options.onProgress] - a function takes one progress argument (progress from 0 to 100)\n * @param {string} [options.fileType] - default to be the original mime type from the image file\n * @returns {Promise}\n */\nasync function imageCompression (file, options) {\n\n let compressedFile\n\n options.maxSizeMB = options.maxSizeMB || Number.POSITIVE_INFINITY\n const useWebWorker = typeof options.useWebWorker === 'boolean' ? options.useWebWorker : false\n delete options.useWebWorker\n\n if (!(file instanceof Blob || file instanceof CustomFile)) {\n throw new Error('The file given is not an instance of Blob or File')\n } else if (!/^image/.test(file.type)) {\n throw new Error('The file given is not an image')\n }\n\n // try run in web worker, fall back to run in main thread\n const inWebWorker = typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope\n\n // if ((useWebWorker && typeof Worker === 'function') || inWebWorker) {\n // console.log('run compression in web worker')\n // } else {\n // console.log('run compression in main thread')\n // }\n\n if (useWebWorker && typeof Worker === 'function' && !inWebWorker) {\n try {\n // console.log(1)\n // \"compressOnWebWorker\" is kind of like a recursion to call \"imageCompression\" again inside web worker\n compressedFile = await compressOnWebWorker(file, options)\n } catch (e) {\n // console.warn('Run compression in web worker failed:', e, ', fall back to main thread')\n // console.log(1.5)\n compressedFile = await compress(file, options)\n }\n } else {\n // console.log(2)\n compressedFile = await compress(file, options)\n }\n\n try {\n compressedFile.name = file.name\n compressedFile.lastModified = file.lastModified\n } catch (e) {}\n\n return compressedFile\n}\n\nimageCompression.getDataUrlFromFile = getDataUrlFromFile\nimageCompression.getFilefromDataUrl = getFilefromDataUrl\nimageCompression.loadImage = loadImage\nimageCompression.drawImageInCanvas = drawImageInCanvas\nimageCompression.drawFileInCanvas = drawFileInCanvas\nimageCompression.canvasToFile = canvasToFile\nimageCompression.getExifOrientation = getExifOrientation\nimageCompression.handleMaxWidthOrHeight = handleMaxWidthOrHeight\nimageCompression.handleMaxWidth = handleMaxWidth\nimageCompression.handleMaxHeight = handleMaxHeight\nimageCompression.followExifOrientation = followExifOrientation\nimageCompression.cleanupMemory = cleanupCanvasMemory\nimageCompression.version = '1.0.9'\n\nexport default imageCompression\n"],"names":["isBrowser","window","moduleMapper","getDataUrlFromFile","resolve","reader","dataurl","split","n","bstr","filename","file","lastModified","canvas","view","length","offset","getUint32","marker","maxWidthOrHeight","width","ctx","drawImage","height","maxWidth","Number","isFinite","cleanupCanvasMemory","followExifOrientation","newCanvas","exifOrientation","p","maxSizeByte","imageCompressionLibUrl","cnt","generateLib","lib","script","createWorker","inWebWorker","imageCompression","getFilefromDataUrl","loadImage","drawImageInCanvas","drawFileInCanvas"],"mappings":";;;;;;;m/CAAA,IAAMA,EAA8B,oBAAlBC,2EAKoF,uCAQ5DC,2HAiBnC,SAASC,mDACPC,6DAEqBC,uNAiCdC,EAAAC,mCACK,gBAEjBC,EAAIC,6BAEJD,8DAUYE,EACdC,EAAAC,eACAR,28BAwC2CS,qcAoB7CC,mEAEMV,mCAGQW,6DAEgBC,8GASpBF,EAAAG,UAAgBD,0GAKPA,EAAA,iCAGTE,0KA+BVC,oJAmBuBC,6BAIAD,GAGrBE,EAAAC,sDAGET,yDAwBEU,WACAC,eAKQX,KAFVY,OAAAC,SAAAF,gEASFH,oEAaAM,oEAgBEP,uOA0BAQ,+BACAR,UACAG,sFAMJM,EAAAT,QACES,EAAAN,WAEAM,EAAAT,oBAUAU,8IAKmB,mwBCrRkCC,8bAkBvDD,oVAQ6CnB,OAAdA,SAA6BC,oEAElDoB,mmCC3FV,IACIC,IADAC,IAcJ,SAASC,oLAuGTC,sqEA9GEC,sEAZFC,y3BC6DiDb,4SAMjDc,+lCAiBA5B,gDAMA6B,iBAAArC,mBAAAA,mBACAqC,iBAAAC,sCACAD,iBAAAE,oBAEAF,iBAAAG,oCA9FAH,iBAAAI"}
\ No newline at end of file
diff --git a/dist/browser-image-compression.mjs b/dist/browser-image-compression.mjs
index 08896bc..fa7e845 100644
--- a/dist/browser-image-compression.mjs
+++ b/dist/browser-image-compression.mjs
@@ -5,5 +5,5 @@
* https://github.com/Donaldcwl/browser-image-compression
*/
-function _defineProperty(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function ownKeys(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function _objectSpread2(e){for(var n=1;n2&&void 0!==arguments[2]?arguments[2]:Date.now();return new Promise((function(t){for(var i=e.split(","),o=i[0].match(/:(.*?);/)[1],a=atob(i[1]),s=a.length,c=new Uint8Array(s);s--;)c[s]=a.charCodeAt(s);var l=new Blob([c],{type:o});l.name=n,l.lastModified=r,t(l)}))}function loadImage(e){return new Promise((function(n,r){var t=new Image;t.onload=function(){return n(t)},t.onerror=function(e){return r(e)},t.src=e}))}function drawImageInCanvas(e){var n=_slicedToArray(getNewCanvasAndCtx(e.width,e.height),2),r=n[0];return n[1].drawImage(e,0,0,r.width,r.height),r}function drawFileInCanvas(e){return new Promise((function(n,r){var t,i,o=function $Try_1_Post(){try{return i=drawImageInCanvas(t),n([t,i])}catch(e){return r(e)}},a=function $Try_1_Catch(n){try{return getDataUrlFromFile(e).then((function(e){try{return loadImage(e).then((function(e){try{return t=e,o()}catch(e){return r(e)}}),r)}catch(e){return r(e)}}),r)}catch(e){return r(e)}};try{return createImageBitmap(e).then((function(e){try{return t=e,o()}catch(e){return a()}}),a)}catch(e){a()}}))}function canvasToFile(e,n,r,t){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;return new Promise((function(o,a){var s;return"function"==typeof OffscreenCanvas&&e instanceof OffscreenCanvas?e.convertToBlob({type:n,quality:i}).then(function(e){try{return(s=e).name=r,s.lastModified=t,$If_4.call(this)}catch(e){return a(e)}}.bind(this),a):getFilefromDataUrl(e.toDataURL(n,i),r,t).then(function(e){try{return s=e,$If_4.call(this)}catch(e){return a(e)}}.bind(this),a);function $If_4(){return o(s)}}))}function getExifOrientation(e){return new Promise((function(n,r){var t=new CustomFileReader;t.onload=function(e){var r=new DataView(e.target.result);if(65496!=r.getUint16(0,!1))return n(-2);for(var t=r.byteLength,i=2;io||i>o)){var s=_slicedToArray(getNewCanvasAndCtx(t,i),2);a=s[0],r=s[1],t>i?(a.width=o,a.height=i/t*o):(a.width=t/i*o,a.height=o),r.drawImage(e,0,0,a.width,a.height),cleanupCanvasMemory(e)}return a}function followExifOrientation(e,n){var r=e.width,t=e.height,i=_slicedToArray(getNewCanvasAndCtx(r,t),2),o=i[0],a=i[1];switch(40&&void 0!==arguments[0]?arguments[0]:5;i+=e,"function"==typeof n.onProgress&&n.onProgress(Math.min(i,100))}function setProgress(e){i=Math.min(Math.max(e,i),100),"function"==typeof n.onProgress&&n.onProgress(i)}return i=0,o=n.maxIteration||10,a=1024*n.maxSizeMB*1024,incProgress(),drawFileInCanvas(e).then(function(i){try{var C=_slicedToArray(i,2);return C[0],s=C[1],incProgress(),c=handleMaxWidthOrHeight(s,n),incProgress(),new Promise((function(r,t){var i;if(!(i=n.exifOrientation))return getExifOrientation(e).then(function(e){try{return i=e,$If_2.call(this)}catch(e){return t(e)}}.bind(this),t);function $If_2(){return r(i)}return $If_2.call(this)})).then(function(i){try{return n.exifOrientation=i,incProgress(),l=followExifOrientation(c,n.exifOrientation),incProgress(),u=1,canvasToFile(l,n.fileType||e.type,e.name,e.lastModified,u).then(function(i){try{{if(m=i,incProgress(),f=m.size>a,g=m.size>e.size,!f&&!g)return setProgress(100),r(m);var C;function $Loop_3(){if(o--&&(h>a||h>p)){var r,i,s=_slicedToArray(getNewCanvasAndCtx(r=f?.95*y.width:y.width,i=f?.95*y.height:y.height),2);return w=s[0],s[1].drawImage(y,0,0,r,i),"image/jpeg"===e.type&&(u*=.95),canvasToFile(w,n.fileType||e.type,e.name,e.lastModified,u).then((function(e){try{return v=e,cleanupCanvasMemory(y),y=w,h=v.size,setProgress(Math.min(99,Math.floor((d-h)/(d-a)*100))),$Loop_3}catch(e){return t(e)}}),t)}return[1]}return p=e.size,d=m.size,h=d,y=l,(C=function(e){for(;e;){if(e.then)return void e.then(C,t);try{if(e.pop){if(e.length)return e.pop()?$Loop_3_exit.call(this):e;e=$Loop_3}else e=e.call(this)}catch(e){return t(e)}}}.bind(this))($Loop_3);function $Loop_3_exit(){return cleanupCanvasMemory(y),cleanupCanvasMemory(w),cleanupCanvasMemory(c),cleanupCanvasMemory(l),cleanupCanvasMemory(s),setProgress(100),r(v)}}}catch(e){return t(e)}}.bind(this),t)}catch(e){return t(e)}}.bind(this),t)}catch(e){return t(e)}}.bind(this),t)}))}e&&(Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e});var r,t,i=0;function generateLib(){return function createSourceObject(e){return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}("\n function imageCompression (){return (".concat(imageCompression,").apply(null, arguments)}\n\n imageCompression.getDataUrlFromFile = ").concat(imageCompression.getDataUrlFromFile,"\n imageCompression.getFilefromDataUrl = ").concat(imageCompression.getFilefromDataUrl,"\n imageCompression.loadImage = ").concat(imageCompression.loadImage,"\n imageCompression.drawImageInCanvas = ").concat(imageCompression.drawImageInCanvas,"\n imageCompression.drawFileInCanvas = ").concat(imageCompression.drawFileInCanvas,"\n imageCompression.canvasToFile = ").concat(imageCompression.canvasToFile,"\n imageCompression.getExifOrientation = ").concat(imageCompression.getExifOrientation,"\n imageCompression.handleMaxWidthOrHeight = ").concat(imageCompression.handleMaxWidthOrHeight,"\n imageCompression.followExifOrientation = ").concat(imageCompression.followExifOrientation,"\n imageCompression.cleanupMemory = ").concat(imageCompression.cleanupMemory,"\n\n getDataUrlFromFile = imageCompression.getDataUrlFromFile\n getFilefromDataUrl = imageCompression.getFilefromDataUrl\n loadImage = imageCompression.loadImage\n drawImageInCanvas = imageCompression.drawImageInCanvas\n drawFileInCanvas = imageCompression.drawFileInCanvas\n canvasToFile = imageCompression.canvasToFile\n getExifOrientation = imageCompression.getExifOrientation\n handleMaxWidthOrHeight = imageCompression.handleMaxWidthOrHeight\n followExifOrientation = imageCompression.followExifOrientation\n cleanupMemory = imageCompression.cleanupMemory\n\n getNewCanvasAndCtx = ").concat(getNewCanvasAndCtx,"\n \n CustomFileReader = FileReader\n \n CustomFile = File\n \n function _slicedToArray(arr, n) { return arr }\n \n function _typeof(a) { return typeof a }\n\n function compress (){return (").concat(compress,").apply(null, arguments)}\n "))}function generateWorkerScript(){return function createWorker(e){return"function"==typeof e&&(e="(".concat(f,")()")),new Worker(URL.createObjectURL(new Blob([e])))}("\n let scriptImported = false\n self.addEventListener('message', async (e) => {\n const { file, id, imageCompressionLibUrl, options } = e.data\n options.onProgress = (progress) => self.postMessage({ progress, id })\n try {\n if (!scriptImported) {\n // console.log('[worker] importScripts', imageCompressionLibUrl)\n self.importScripts(imageCompressionLibUrl)\n scriptImported = true\n }\n // console.log('[worker] self', self)\n const compressedFile = await imageCompression(file, options)\n self.postMessage({ file: compressedFile, id })\n } catch (e) {\n // console.error('[worker] error', e)\n self.postMessage({ error: e.message + '\\n' + e.stack, id })\n }\n })\n ")}function imageCompression(e,n){return new Promise((function(o,a){var s,c,l;if(n.maxSizeMB=n.maxSizeMB||Number.POSITIVE_INFINITY,c="boolean"==typeof n.useWebWorker&&n.useWebWorker,delete n.useWebWorker,!(e instanceof Blob||e instanceof CustomFile))return a(new Error("The file given is not an instance of Blob or File"));if(!/^image/.test(e.type))return a(new Error("The file given is not an image"));if(l="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,!c||"function"!=typeof Worker||l)return compress(e,n).then(function(e){try{return s=e,$If_3.call(this)}catch(e){return a(e)}}.bind(this),a);var u=function(){try{return $If_3.call(this)}catch(e){return a(e)}}.bind(this),m=function $Try_1_Catch(r){try{return compress(e,n).then((function(e){try{return s=e,u()}catch(e){return a(e)}}),a)}catch(e){return a(e)}};try{return function compressOnWebWorker(e,n){return new Promise((function(o,a){return new Promise((function(s,c){var l=i++;return r||(r=generateLib()),t||(t=generateWorkerScript()),t.addEventListener("message",(function handler(e){if(e.data.id===l){if(void 0!==e.data.progress&&e.data.progress<100)return void n.onProgress(e.data.progress);t.removeEventListener("message",handler),e.data.error&&a(new Error(e.data.error)),o(e.data.file)}})),t.postMessage({file:e,id:l,imageCompressionLibUrl:r,options:_objectSpread2({},n,{onProgress:void 0})}),s()}))}))}(e,n).then((function(e){try{return s=e,u()}catch(e){return m()}}),m)}catch(e){m()}function $If_3(){try{s.name=e.name,s.lastModified=e.lastModified}catch(e){}return o(s)}}))}imageCompression.getDataUrlFromFile=getDataUrlFromFile,imageCompression.getFilefromDataUrl=getFilefromDataUrl,imageCompression.loadImage=loadImage,imageCompression.drawImageInCanvas=drawImageInCanvas,imageCompression.drawFileInCanvas=drawFileInCanvas,imageCompression.canvasToFile=canvasToFile,imageCompression.getExifOrientation=getExifOrientation,imageCompression.handleMaxWidthOrHeight=handleMaxWidthOrHeight,imageCompression.followExifOrientation=followExifOrientation,imageCompression.cleanupMemory=cleanupCanvasMemory,imageCompression.version="1.0.9";export default imageCompression;
+function _defineProperty(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function ownKeys(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function _objectSpread2(e){for(var n=1;n2&&void 0!==arguments[2]?arguments[2]:Date.now();return new Promise((function(t){for(var i=e.split(","),a=i[0].match(/:(.*?);/)[1],o=atob(i[1]),s=o.length,c=new Uint8Array(s);s--;)c[s]=o.charCodeAt(s);var l=new Blob([c],{type:a});l.name=n,l.lastModified=r,t(l)}))}function loadImage(e){return new Promise((function(n,r){var t=new Image;t.onload=function(){return n(t)},t.onerror=function(e){return r(e)},t.src=e}))}function drawImageInCanvas(e){var n=_slicedToArray(getNewCanvasAndCtx(e.width,e.height),2),r=n[0];return n[1].drawImage(e,0,0,r.width,r.height),r}function drawFileInCanvas(e){return new Promise((function(n,r){var t,i,a=function $Try_1_Post(){try{return i=drawImageInCanvas(t),n([t,i])}catch(e){return r(e)}},o=function $Try_1_Catch(n){try{return getDataUrlFromFile(e).then((function(e){try{return loadImage(e).then((function(e){try{return t=e,a()}catch(e){return r(e)}}),r)}catch(e){return r(e)}}),r)}catch(e){return r(e)}};try{return createImageBitmap(e).then((function(e){try{return t=e,a()}catch(e){return o()}}),o)}catch(e){o()}}))}function canvasToFile(e,n,r,t){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;return new Promise((function(a,o){var s;return"function"==typeof OffscreenCanvas&&e instanceof OffscreenCanvas?e.convertToBlob({type:n,quality:i}).then(function(e){try{return(s=e).name=r,s.lastModified=t,$If_4.call(this)}catch(e){return o(e)}}.bind(this),o):getFilefromDataUrl(e.toDataURL(n,i),r,t).then(function(e){try{return s=e,$If_4.call(this)}catch(e){return o(e)}}.bind(this),o);function $If_4(){return a(s)}}))}function getExifOrientation(e){return new Promise((function(n,r){var t=new CustomFileReader;t.onload=function(e){var r=new DataView(e.target.result);if(65496!=r.getUint16(0,!1))return n(-2);for(var t=r.byteLength,i=2;ia||i>a)){var s=_slicedToArray(getNewCanvasAndCtx(t,i),2);o=s[0],r=s[1],t>i?(o.width=a,o.height=i/t*a):(o.width=t/i*a,o.height=a),r.drawImage(e,0,0,o.width,o.height),cleanupCanvasMemory(e)}return o}function handleMaxWidth(e,n){var r,t=e.width,i=e.height,a=n.maxWidth,o=e;if(Number.isFinite(a)&&t>a){var s=_slicedToArray(getNewCanvasAndCtx(t,i),2);o=s[0],r=s[1],o.width=a,o.height=i/t*a,r.drawImage(e,0,0,o.width,o.height),cleanupCanvasMemory(e)}return o}function handleMaxHeight(e,n){var r,t=e.width,i=e.height,a=n.maxHeight,o=e;if(Number.isFinite(a)&&i>a){var s=_slicedToArray(getNewCanvasAndCtx(t,i),2);o=s[0],r=s[1],o.width=t/i*a,o.height=a,r.drawImage(e,0,0,o.width,o.height),cleanupCanvasMemory(e)}return o}function followExifOrientation(e,n){var r=e.width,t=e.height,i=_slicedToArray(getNewCanvasAndCtx(r,t),2),a=i[0],o=i[1];switch(40&&void 0!==arguments[0]?arguments[0]:5;i+=e,"function"==typeof n.onProgress&&n.onProgress(Math.min(i,100))}function setProgress(e){i=Math.min(Math.max(e,i),100),"function"==typeof n.onProgress&&n.onProgress(i)}return i=0,a=n.maxIteration||10,o=1024*n.maxSizeMB*1024,incProgress(),drawFileInCanvas(e).then(function(i){try{var y=_slicedToArray(i,2);return y[0],s=y[1],incProgress(),c=handleMaxWidthOrHeight(s,n),Number.isFinite(n.maxWidth)&&(c=handleMaxWidth(s,n)),Number.isFinite(n.maxHeight)&&(c=handleMaxHeight(s,n)),incProgress(),new Promise((function(r,t){var i;if(!(i=n.exifOrientation))return getExifOrientation(e).then(function(e){try{return i=e,$If_2.call(this)}catch(e){return t(e)}}.bind(this),t);function $If_2(){return r(i)}return $If_2.call(this)})).then(function(i){try{return n.exifOrientation=i,incProgress(),l=followExifOrientation(c,n.exifOrientation),incProgress(),m=1,canvasToFile(l,n.fileType||e.type,e.name,e.lastModified,m).then(function(i){try{{if(u=i,incProgress(),g=u.size>o,f=u.size>e.size,!g&&!f)return setProgress(100),r(u);var y;function $Loop_3(){if(a--&&(p>o||p>h)){var r,i,s=_slicedToArray(getNewCanvasAndCtx(r=g?.95*C.width:C.width,i=g?.95*C.height:C.height),2);return w=s[0],s[1].drawImage(C,0,0,r,i),"image/jpeg"===e.type&&(m*=.95),canvasToFile(w,n.fileType||e.type,e.name,e.lastModified,m).then((function(e){try{return v=e,cleanupCanvasMemory(C),C=w,p=v.size,setProgress(Math.min(99,Math.floor((d-p)/(d-o)*100))),$Loop_3}catch(e){return t(e)}}),t)}return[1]}return h=e.size,d=u.size,p=d,C=l,(y=function(e){for(;e;){if(e.then)return void e.then(y,t);try{if(e.pop){if(e.length)return e.pop()?$Loop_3_exit.call(this):e;e=$Loop_3}else e=e.call(this)}catch(e){return t(e)}}}.bind(this))($Loop_3);function $Loop_3_exit(){return cleanupCanvasMemory(C),cleanupCanvasMemory(w),cleanupCanvasMemory(c),cleanupCanvasMemory(l),cleanupCanvasMemory(s),setProgress(100),r(v)}}}catch(e){return t(e)}}.bind(this),t)}catch(e){return t(e)}}.bind(this),t)}catch(e){return t(e)}}.bind(this),t)}))}e&&(Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e});var r,t,i=0;function generateLib(){return function createSourceObject(e){return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}("\n function imageCompression (){return (".concat(imageCompression,").apply(null, arguments)}\n\n imageCompression.getDataUrlFromFile = ").concat(imageCompression.getDataUrlFromFile,"\n imageCompression.getFilefromDataUrl = ").concat(imageCompression.getFilefromDataUrl,"\n imageCompression.loadImage = ").concat(imageCompression.loadImage,"\n imageCompression.drawImageInCanvas = ").concat(imageCompression.drawImageInCanvas,"\n imageCompression.drawFileInCanvas = ").concat(imageCompression.drawFileInCanvas,"\n imageCompression.canvasToFile = ").concat(imageCompression.canvasToFile,"\n imageCompression.getExifOrientation = ").concat(imageCompression.getExifOrientation,"\n imageCompression.handleMaxWidthOrHeight = ").concat(imageCompression.handleMaxWidthOrHeight,"\n imageCompression.handleMaxWidth = ").concat(imageCompression.handleMaxWidth,"\n imageCompression.handleMaxHeight = ").concat(imageCompression.handleMaxHeight,"\n imageCompression.followExifOrientation = ").concat(imageCompression.followExifOrientation,"\n imageCompression.cleanupMemory = ").concat(imageCompression.cleanupMemory,"\n\n getDataUrlFromFile = imageCompression.getDataUrlFromFile\n getFilefromDataUrl = imageCompression.getFilefromDataUrl\n loadImage = imageCompression.loadImage\n drawImageInCanvas = imageCompression.drawImageInCanvas\n drawFileInCanvas = imageCompression.drawFileInCanvas\n canvasToFile = imageCompression.canvasToFile\n getExifOrientation = imageCompression.getExifOrientation\n handleMaxWidthOrHeight = imageCompression.handleMaxWidthOrHeight\n handleMaxWidth = imageCompression.handleMaxWidth\n handleMaxHeight = imageCompression.handleMaxHeight\n followExifOrientation = imageCompression.followExifOrientation\n cleanupMemory = imageCompression.cleanupMemory\n\n getNewCanvasAndCtx = ").concat(getNewCanvasAndCtx,"\n \n CustomFileReader = FileReader\n \n CustomFile = File\n \n function _slicedToArray(arr, n) { return arr }\n \n function _typeof(a) { return typeof a }\n\n function compress (){return (").concat(compress,").apply(null, arguments)}\n "))}function generateWorkerScript(){return function createWorker(e){return"function"==typeof e&&(e="(".concat(f,")()")),new Worker(URL.createObjectURL(new Blob([e])))}("\n let scriptImported = false\n self.addEventListener('message', async (e) => {\n const { file, id, imageCompressionLibUrl, options } = e.data\n options.onProgress = (progress) => self.postMessage({ progress, id })\n try {\n if (!scriptImported) {\n // console.log('[worker] importScripts', imageCompressionLibUrl)\n self.importScripts(imageCompressionLibUrl)\n scriptImported = true\n }\n // console.log('[worker] self', self)\n const compressedFile = await imageCompression(file, options)\n self.postMessage({ file: compressedFile, id })\n } catch (e) {\n // console.error('[worker] error', e)\n self.postMessage({ error: e.message + '\\n' + e.stack, id })\n }\n })\n ")}function imageCompression(e,n){return new Promise((function(a,o){var s,c,l;if(n.maxSizeMB=n.maxSizeMB||Number.POSITIVE_INFINITY,c="boolean"==typeof n.useWebWorker&&n.useWebWorker,delete n.useWebWorker,!(e instanceof Blob||e instanceof CustomFile))return o(new Error("The file given is not an instance of Blob or File"));if(!/^image/.test(e.type))return o(new Error("The file given is not an image"));if(l="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,!c||"function"!=typeof Worker||l)return compress(e,n).then(function(e){try{return s=e,$If_3.call(this)}catch(e){return o(e)}}.bind(this),o);var m=function(){try{return $If_3.call(this)}catch(e){return o(e)}}.bind(this),u=function $Try_1_Catch(r){try{return compress(e,n).then((function(e){try{return s=e,m()}catch(e){return o(e)}}),o)}catch(e){return o(e)}};try{return function compressOnWebWorker(e,n){return new Promise((function(a,o){return new Promise((function(s,c){var l=i++;return r||(r=generateLib()),t||(t=generateWorkerScript()),t.addEventListener("message",(function handler(e){if(e.data.id===l){if(void 0!==e.data.progress&&e.data.progress<100)return void n.onProgress(e.data.progress);t.removeEventListener("message",handler),e.data.error&&o(new Error(e.data.error)),a(e.data.file)}})),t.postMessage({file:e,id:l,imageCompressionLibUrl:r,options:_objectSpread2({},n,{onProgress:void 0})}),s()}))}))}(e,n).then((function(e){try{return s=e,m()}catch(e){return u()}}),u)}catch(e){u()}function $If_3(){try{s.name=e.name,s.lastModified=e.lastModified}catch(e){}return a(s)}}))}imageCompression.getDataUrlFromFile=getDataUrlFromFile,imageCompression.getFilefromDataUrl=getFilefromDataUrl,imageCompression.loadImage=loadImage,imageCompression.drawImageInCanvas=drawImageInCanvas,imageCompression.drawFileInCanvas=drawFileInCanvas,imageCompression.canvasToFile=canvasToFile,imageCompression.getExifOrientation=getExifOrientation,imageCompression.handleMaxWidthOrHeight=handleMaxWidthOrHeight,imageCompression.handleMaxWidth=handleMaxWidth,imageCompression.handleMaxHeight=handleMaxHeight,imageCompression.followExifOrientation=followExifOrientation,imageCompression.cleanupMemory=cleanupCanvasMemory,imageCompression.version="1.0.9";export default imageCompression;
//# sourceMappingURL=browser-image-compression.mjs.map
diff --git a/dist/browser-image-compression.mjs.map b/dist/browser-image-compression.mjs.map
index f787e5c..50ff4e2 100644
--- a/dist/browser-image-compression.mjs.map
+++ b/dist/browser-image-compression.mjs.map
@@ -1 +1 @@
-{"version":3,"file":"browser-image-compression.mjs","sources":["../lib/utils.js","../lib/image-compression.js","../lib/web-worker.js","../lib/index.js"],"sourcesContent":["const isBrowser = typeof window !== 'undefined' // change browser environment to support SSR\n\n// add support for cordova-plugin-file\nconst moduleMapper = isBrowser && window.cordova && window.cordova.require && window.cordova.require('cordova/modulemapper')\nexport const CustomFile = isBrowser && ((moduleMapper && moduleMapper.getOriginalSymbol(window, 'File')) || File)\nexport const CustomFileReader = isBrowser && ((moduleMapper && moduleMapper.getOriginalSymbol(window, 'FileReader')) || FileReader)\n\n/**\n * getDataUrlFromFile\n *\n * @param {File} file\n * @returns {Promise}\n */\nexport function getDataUrlFromFile (file) {\n return new Promise((resolve, reject) => {\n const reader = new CustomFileReader()\n reader.onload = () => resolve(reader.result)\n reader.onerror = (e) => reject(e)\n reader.readAsDataURL(file)\n })\n}\n\n/**\n * getFilefromDataUrl\n *\n * @param {string} dataurl\n * @param {string} filename\n * @param {number} [lastModified=Date.now()]\n * @returns {Promise}\n */\nexport function getFilefromDataUrl (dataurl, filename, lastModified = Date.now()) {\n return new Promise((resolve) => {\n const arr = dataurl.split(',')\n const mime = arr[0].match(/:(.*?);/)[1]\n const bstr = atob(arr[1])\n let n = bstr.length\n const u8arr = new Uint8Array(n)\n while (n--) {\n u8arr[n] = bstr.charCodeAt(n)\n }\n const file = new Blob([u8arr], { type: mime })\n file.name = filename\n file.lastModified = lastModified\n resolve(file)\n\n // Safari has issue with File constructor not being able to POST in FormData\n // https://github.com/Donaldcwl/browser-image-compression/issues/8\n // https://bugs.webkit.org/show_bug.cgi?id=165081\n // let file\n // try {\n // file = new File([u8arr], filename, { type: mime }) // Edge do not support File constructor\n // } catch (e) {\n // file = new Blob([u8arr], { type: mime })\n // file.name = filename\n // file.lastModified = lastModified\n // }\n // resolve(file)\n })\n}\n\n/**\n * loadImage\n *\n * @param {string} src\n * @returns {Promise}\n */\nexport function loadImage (src) {\n return new Promise((resolve, reject) => {\n const img = new Image()\n img.onload = () => resolve(img)\n img.onerror = (e) => reject(e)\n img.src = src\n })\n}\n\n/**\n * drawImageInCanvas\n *\n * @param {HTMLImageElement} img\n * @returns {HTMLCanvasElement}\n */\nexport function drawImageInCanvas (img) {\n const [canvas, ctx] = getNewCanvasAndCtx(img.width, img.height)\n ctx.drawImage(img, 0, 0, canvas.width, canvas.height)\n return canvas\n}\n\n/**\n * drawFileInCanvas\n *\n * @param {File} file\n * @returns {Promise<[ImageBitmap | HTMLImageElement, HTMLCanvasElement]>}\n */\nexport async function drawFileInCanvas (file) {\n let img\n try {\n img = await createImageBitmap(file)\n } catch (e) {\n const dataUrl = await getDataUrlFromFile(file)\n img = await loadImage(dataUrl)\n }\n const canvas = drawImageInCanvas(img)\n return [img, canvas]\n}\n\n/**\n * canvasToFile\n *\n * @param canvas\n * @param {string} fileType\n * @param {string} fileName\n * @param {number} fileLastModified\n * @param {number} [quality]\n * @returns {Promise}\n */\nexport async function canvasToFile (canvas, fileType, fileName, fileLastModified, quality = 1) {\n let file\n if (typeof OffscreenCanvas === 'function' && canvas instanceof OffscreenCanvas) {\n file = await canvas.convertToBlob({ type: fileType, quality })\n file.name = fileName\n file.lastModified = fileLastModified\n } else {\n const dataUrl = canvas.toDataURL(fileType, quality)\n file = await getFilefromDataUrl(dataUrl, fileName, fileLastModified)\n }\n return file\n}\n\n/**\n * getExifOrientation\n * get image exif orientation info\n * source: https://stackoverflow.com/a/32490603/10395024\n *\n * @param {File} file\n * @returns {Promise} - orientation id, see https://i.stack.imgur.com/VGsAj.gif\n */\nexport function getExifOrientation (file) {\n return new Promise((resolve, reject) => {\n const reader = new CustomFileReader()\n reader.onload = (e) => {\n const view = new DataView(e.target.result)\n if (view.getUint16(0, false) != 0xFFD8) {\n return resolve(-2)\n }\n const length = view.byteLength\n let offset = 2\n while (offset < length) {\n if (view.getUint16(offset + 2, false) <= 8) return resolve(-1)\n const marker = view.getUint16(offset, false)\n offset += 2\n if (marker == 0xFFE1) {\n if (view.getUint32(offset += 2, false) != 0x45786966) {\n return resolve(-1)\n }\n\n var little = view.getUint16(offset += 6, false) == 0x4949\n offset += view.getUint32(offset + 4, little)\n var tags = view.getUint16(offset, little)\n offset += 2\n for (var i = 0; i < tags; i++) {\n if (view.getUint16(offset + (i * 12), little) == 0x0112) {\n return resolve(view.getUint16(offset + (i * 12) + 8, little))\n }\n }\n } else if ((marker & 0xFF00) != 0xFF00) {\n break\n } else {\n offset += view.getUint16(offset, false)\n }\n }\n return resolve(-1)\n }\n reader.onerror = (e) => reject(e)\n reader.readAsArrayBuffer(file)\n })\n}\n\n/**\n *\n * @param {HTMLCanvasElement} canvas\n * @param options\n * @returns {HTMLCanvasElement>}\n */\nexport function handleMaxWidthOrHeight (canvas, options) {\n const width = canvas.width\n const height = canvas.height\n const maxWidthOrHeight = options.maxWidthOrHeight\n\n const needToHandle = Number.isFinite(maxWidthOrHeight) && (width > maxWidthOrHeight || height > maxWidthOrHeight)\n\n let newCanvas = canvas\n let ctx\n\n if (needToHandle) {\n [newCanvas, ctx] = getNewCanvasAndCtx(width, height)\n if (width > height) {\n newCanvas.width = maxWidthOrHeight\n newCanvas.height = (height / width) * maxWidthOrHeight\n } else {\n newCanvas.width = (width / height) * maxWidthOrHeight\n newCanvas.height = maxWidthOrHeight\n }\n ctx.drawImage(canvas, 0, 0, newCanvas.width, newCanvas.height)\n\n cleanupCanvasMemory(canvas)\n }\n\n return newCanvas\n}\n\n/**\n * followExifOrientation\n * source: https://stackoverflow.com/a/40867559/10395024\n *\n * @param {HTMLCanvasElement} canvas\n * @param {number} exifOrientation\n * @returns {HTMLCanvasElement} canvas\n */\nexport function followExifOrientation (canvas, exifOrientation) {\n const width = canvas.width\n const height = canvas.height\n\n const [newCanvas, ctx] = getNewCanvasAndCtx(width, height)\n\n // set proper canvas dimensions before transform & export\n if (4 < exifOrientation && exifOrientation < 9) {\n newCanvas.width = height\n newCanvas.height = width\n } else {\n newCanvas.width = width\n newCanvas.height = height\n }\n\n // transform context before drawing image\n switch (exifOrientation) {\n case 2: ctx.transform(-1, 0, 0, 1, width, 0); break;\n case 3: ctx.transform(-1, 0, 0, -1, width, height); break;\n case 4: ctx.transform(1, 0, 0, -1, 0, height); break;\n case 5: ctx.transform(0, 1, 1, 0, 0, 0); break;\n case 6: ctx.transform(0, 1, -1, 0, height, 0); break;\n case 7: ctx.transform(0, -1, -1, 0, height, width); break;\n case 8: ctx.transform(0, -1, 1, 0, 0, width); break;\n default: break;\n }\n\n ctx.drawImage(canvas, 0, 0, width, height)\n\n cleanupCanvasMemory(canvas)\n\n return newCanvas\n}\n\n/**\n * get new Canvas and it's context\n * @param width\n * @param height\n * @returns {[HTMLCanvasElement, CanvasRenderingContext2D]}\n */\nexport function getNewCanvasAndCtx (width, height) {\n let canvas\n let ctx\n try {\n canvas = new OffscreenCanvas(width, height)\n ctx = canvas.getContext('2d')\n if (ctx === null) {\n throw new Error('getContext of OffscreenCanvas returns null')\n }\n } catch (e) {\n canvas = document.createElement('canvas')\n ctx = canvas.getContext('2d')\n }\n canvas.width = width\n canvas.height = height\n return [canvas, ctx]\n}\n\n/**\n * clear Canvas memory\n * @param canvas\n * @returns null\n */\nexport function cleanupCanvasMemory (canvas) {\n canvas.width = 0\n canvas.height = 0\n}\n\nif (isBrowser) {\n// Polyfill for Number.isInteger\n Number.isInteger = Number.isInteger || function (value) {\n return typeof value === 'number' &&\n isFinite(value) &&\n Math.floor(value) === value\n }\n}\n","import {\n canvasToFile,\n cleanupCanvasMemory,\n drawFileInCanvas,\n followExifOrientation,\n getExifOrientation,\n getNewCanvasAndCtx,\n handleMaxWidthOrHeight\n} from './utils'\n\n/**\n * Compress an image file.\n *\n * @param {File} file\n * @param {Object} options - { maxSizeMB=Number.POSITIVE_INFINITY, maxWidthOrHeight, useWebWorker=false, maxIteration = 10, exifOrientation, fileType }\n * @param {number} [options.maxSizeMB=Number.POSITIVE_INFINITY]\n * @param {number} [options.maxWidthOrHeight=undefined]\n * @param {number} [options.maxIteration=10]\n * @param {number} [options.exifOrientation] - default to be the exif orientation from the image file\n * @param {Function} [options.onProgress] - a function takes one progress argument (progress from 0 to 100)\n * @param {string} [options.fileType] - default to be the original mime type from the image file\n * @returns {Promise}\n */\nexport default async function compress (file, options) {\n let progress = 0\n\n function incProgress (inc = 5) {\n progress += inc\n if (typeof options.onProgress === 'function') {\n options.onProgress(Math.min(progress, 100))\n }\n }\n\n function setProgress (p) {\n progress = Math.min(Math.max(p, progress), 100)\n if (typeof options.onProgress === 'function') {\n options.onProgress(progress)\n }\n }\n\n let remainingTrials = options.maxIteration || 10\n\n const maxSizeByte = options.maxSizeMB * 1024 * 1024\n\n incProgress()\n\n // drawFileInCanvas\n let [img, origCanvas] = await drawFileInCanvas(file)\n\n incProgress()\n\n // handleMaxWidthOrHeight\n const maxWidthOrHeightFixedCanvas = handleMaxWidthOrHeight(origCanvas, options)\n\n incProgress()\n\n // exifOrientation\n options.exifOrientation = options.exifOrientation || await getExifOrientation(file)\n incProgress()\n const orientationFixedCanvas = followExifOrientation(maxWidthOrHeightFixedCanvas, options.exifOrientation)\n incProgress()\n\n let quality = 1\n\n let tempFile = await canvasToFile(orientationFixedCanvas, options.fileType || file.type, file.name, file.lastModified, quality)\n incProgress()\n\n const origExceedMaxSize = tempFile.size > maxSizeByte\n const sizeBecomeLarger = tempFile.size > file.size\n\n // check if we need to compress or resize\n if (!origExceedMaxSize && !sizeBecomeLarger) {\n // no need to compress\n setProgress(100)\n return tempFile\n }\n\n const sourceSize = file.size\n const renderedSize = tempFile.size\n let currentSize = renderedSize\n let compressedFile\n let newCanvas, ctx\n let canvas = orientationFixedCanvas\n while (remainingTrials-- && (currentSize > maxSizeByte || currentSize > sourceSize)) {\n const newWidth = origExceedMaxSize ? canvas.width * 0.95 : canvas.width\n const newHeight = origExceedMaxSize ? canvas.height * 0.95 : canvas.height;\n [newCanvas, ctx] = getNewCanvasAndCtx(newWidth, newHeight)\n\n ctx.drawImage(canvas, 0, 0, newWidth, newHeight)\n\n if (file.type === 'image/jpeg') {\n quality *= 0.95\n }\n compressedFile = await canvasToFile(newCanvas, options.fileType || file.type, file.name, file.lastModified, quality)\n\n cleanupCanvasMemory(canvas)\n\n canvas = newCanvas\n\n currentSize = compressedFile.size\n setProgress(Math.min(99, Math.floor((renderedSize - currentSize) / (renderedSize - maxSizeByte) * 100)))\n }\n\n // garbage clean canvas for safari\n // ref: https://bugs.webkit.org/show_bug.cgi?id=195325\n cleanupCanvasMemory(canvas)\n cleanupCanvasMemory(newCanvas)\n cleanupCanvasMemory(maxWidthOrHeightFixedCanvas)\n cleanupCanvasMemory(orientationFixedCanvas)\n cleanupCanvasMemory(origCanvas)\n\n setProgress(100)\n return compressedFile\n}\n","import lib from './index'\nimport compress from './image-compression'\nimport { getNewCanvasAndCtx } from './utils'\n\nlet cnt = 0\nlet imageCompressionLibUrl\nlet worker\n\nfunction createWorker (script) {\n if (typeof script === 'function') {\n script = `(${f})()`\n }\n return new Worker(URL.createObjectURL(new Blob([script])))\n}\n\nfunction createSourceObject (str) {\n return URL.createObjectURL(new Blob([str], { type: 'application/javascript' }))\n}\n\nfunction generateLib () {\n // prepare the lib to be used inside WebWorker\n return createSourceObject(`\n function imageCompression (){return (${lib}).apply(null, arguments)}\n\n imageCompression.getDataUrlFromFile = ${lib.getDataUrlFromFile}\n imageCompression.getFilefromDataUrl = ${lib.getFilefromDataUrl}\n imageCompression.loadImage = ${lib.loadImage}\n imageCompression.drawImageInCanvas = ${lib.drawImageInCanvas}\n imageCompression.drawFileInCanvas = ${lib.drawFileInCanvas}\n imageCompression.canvasToFile = ${lib.canvasToFile}\n imageCompression.getExifOrientation = ${lib.getExifOrientation}\n imageCompression.handleMaxWidthOrHeight = ${lib.handleMaxWidthOrHeight}\n imageCompression.followExifOrientation = ${lib.followExifOrientation}\n imageCompression.cleanupMemory = ${lib.cleanupMemory}\n\n getDataUrlFromFile = imageCompression.getDataUrlFromFile\n getFilefromDataUrl = imageCompression.getFilefromDataUrl\n loadImage = imageCompression.loadImage\n drawImageInCanvas = imageCompression.drawImageInCanvas\n drawFileInCanvas = imageCompression.drawFileInCanvas\n canvasToFile = imageCompression.canvasToFile\n getExifOrientation = imageCompression.getExifOrientation\n handleMaxWidthOrHeight = imageCompression.handleMaxWidthOrHeight\n followExifOrientation = imageCompression.followExifOrientation\n cleanupMemory = imageCompression.cleanupMemory\n\n getNewCanvasAndCtx = ${getNewCanvasAndCtx}\n \n CustomFileReader = FileReader\n \n CustomFile = File\n \n function _slicedToArray(arr, n) { return arr }\n \n function _typeof(a) { return typeof a }\n\n function compress (){return (${compress}).apply(null, arguments)}\n `)\n}\n\nfunction generateWorkerScript () {\n // code to be run in the WebWorker\n return createWorker(`\n let scriptImported = false\n self.addEventListener('message', async (e) => {\n const { file, id, imageCompressionLibUrl, options } = e.data\n options.onProgress = (progress) => self.postMessage({ progress, id })\n try {\n if (!scriptImported) {\n // console.log('[worker] importScripts', imageCompressionLibUrl)\n self.importScripts(imageCompressionLibUrl)\n scriptImported = true\n }\n // console.log('[worker] self', self)\n const compressedFile = await imageCompression(file, options)\n self.postMessage({ file: compressedFile, id })\n } catch (e) {\n // console.error('[worker] error', e)\n self.postMessage({ error: e.message + '\\\\n' + e.stack, id })\n }\n })\n `)\n}\n\nexport function compressOnWebWorker (file, options) {\n return new Promise(async (resolve, reject) => {\n let id = cnt++\n\n if (!imageCompressionLibUrl) {\n imageCompressionLibUrl = generateLib()\n }\n\n if (!worker) {\n worker = generateWorkerScript()\n }\n\n function handler (e) {\n if (e.data.id === id) {\n if (e.data.progress !== undefined && e.data.progress < 100) {\n options.onProgress(e.data.progress)\n return\n }\n worker.removeEventListener('message', handler)\n if (e.data.error) {\n reject(new Error(e.data.error))\n }\n resolve(e.data.file)\n }\n }\n\n worker.addEventListener('message', handler)\n worker.postMessage({\n file,\n id,\n imageCompressionLibUrl,\n options: { ...options, onProgress: undefined }\n })\n })\n}\n","import compress from './image-compression'\nimport {\n canvasToFile,\n drawFileInCanvas,\n drawImageInCanvas,\n getDataUrlFromFile,\n getFilefromDataUrl,\n loadImage,\n getExifOrientation,\n handleMaxWidthOrHeight,\n followExifOrientation,\n CustomFile,\n cleanupCanvasMemory\n} from './utils'\nimport { compressOnWebWorker } from './web-worker'\n\n/**\n * Compress an image file.\n *\n * @param {File} file\n * @param {Object} options - { maxSizeMB=Number.POSITIVE_INFINITY, maxWidthOrHeight, useWebWorker=false, maxIteration = 10, exifOrientation, fileType }\n * @param {number} [options.maxSizeMB=Number.POSITIVE_INFINITY]\n * @param {number} [options.maxWidthOrHeight=undefined]\n * @param {boolean} [options.useWebWorker=false]\n * @param {number} [options.maxIteration=10]\n * @param {number} [options.exifOrientation] - default to be the exif orientation from the image file\n * @param {Function} [options.onProgress] - a function takes one progress argument (progress from 0 to 100)\n * @param {string} [options.fileType] - default to be the original mime type from the image file\n * @returns {Promise}\n */\nasync function imageCompression (file, options) {\n\n let compressedFile\n\n options.maxSizeMB = options.maxSizeMB || Number.POSITIVE_INFINITY\n const useWebWorker = typeof options.useWebWorker === 'boolean' ? options.useWebWorker : false\n delete options.useWebWorker\n\n if (!(file instanceof Blob || file instanceof CustomFile)) {\n throw new Error('The file given is not an instance of Blob or File')\n } else if (!/^image/.test(file.type)) {\n throw new Error('The file given is not an image')\n }\n\n // try run in web worker, fall back to run in main thread\n const inWebWorker = typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope\n\n // if ((useWebWorker && typeof Worker === 'function') || inWebWorker) {\n // console.log('run compression in web worker')\n // } else {\n // console.log('run compression in main thread')\n // }\n\n if (useWebWorker && typeof Worker === 'function' && !inWebWorker) {\n try {\n // console.log(1)\n // \"compressOnWebWorker\" is kind of like a recursion to call \"imageCompression\" again inside web worker\n compressedFile = await compressOnWebWorker(file, options)\n } catch (e) {\n // console.warn('Run compression in web worker failed:', e, ', fall back to main thread')\n // console.log(1.5)\n compressedFile = await compress(file, options)\n }\n } else {\n // console.log(2)\n compressedFile = await compress(file, options)\n }\n\n try {\n compressedFile.name = file.name\n compressedFile.lastModified = file.lastModified\n } catch (e) {}\n\n return compressedFile\n}\n\nimageCompression.getDataUrlFromFile = getDataUrlFromFile\nimageCompression.getFilefromDataUrl = getFilefromDataUrl\nimageCompression.loadImage = loadImage\nimageCompression.drawImageInCanvas = drawImageInCanvas\nimageCompression.drawFileInCanvas = drawFileInCanvas\nimageCompression.canvasToFile = canvasToFile\nimageCompression.getExifOrientation = getExifOrientation\nimageCompression.handleMaxWidthOrHeight = handleMaxWidthOrHeight\nimageCompression.followExifOrientation = followExifOrientation\nimageCompression.cleanupMemory = cleanupCanvasMemory\nimageCompression.version = '1.0.9'\n\nexport default imageCompression\n"],"names":["isBrowser","window","moduleMapper","getDataUrlFromFile","resolve","reader","dataurl","split","n","bstr","filename","file","lastModified","canvas","view","length","offset","getUint32","marker","maxWidthOrHeight","width","followExifOrientation","height","ctx","inc","drawFileInCanvas","exifOrientation","orientationFixedCanvas","options","fileType","imageCompressionLibUrl","cnt","generateLib","script","imageCompression","getFilefromDataUrl","loadImage","drawImageInCanvas","canvasToFile","getExifOrientation"],"mappings":";;;;;;;4yCAAA,IAAMA,EAA8B,oBAAlBC,2EAKoF,uCAQ5DC,2HAiBnC,SAASC,mDACPC,6DAEqBC,uNAiCdC,EAAAC,mCACK,gBAEjBC,EAAIC,6BAEJD,8DAUYE,EACdC,EAAAC,eACAR,28BAwC2CS,qcAoB7CC,mEAEMV,mCAGQW,6DAEgBC,8GASpBF,EAAAG,UAAgBD,0GAKPA,EAAA,iCAGTE,0KA+BVC,oJAqBuBC,4CAQTP,EAAV,0CAEAA,qBASYQ,yCACZC,mPAmBuCA,wJAI9B,sHA8BbC,2BAHWD,kaC3OTE,iLAPK,6DAUGC,iBAARd,yKAUMe,sUAWAC,EAAwBC,EAAAC,6PAsB5BhB,o8BC/FJ,IACIiB,IADAC,IAcJ,SAASC,okEAPPC,gkDCyDwBtB,mzBAa1BuB,iBAAA/B,mBAAsCA,mBACtC+B,iBAAAC,sCACAD,iBAAAE,oBACAF,iBAAAG,oCACAH,iBAAAT,kCAEAS,iBAAAI,0BAxFAJ,iBAAAK"}
\ No newline at end of file
+{"version":3,"file":"browser-image-compression.mjs","sources":["../lib/utils.js","../lib/image-compression.js","../lib/web-worker.js","../lib/index.js"],"sourcesContent":["const isBrowser = typeof window !== 'undefined' // change browser environment to support SSR\n\n// add support for cordova-plugin-file\nconst moduleMapper = isBrowser && window.cordova && window.cordova.require && window.cordova.require('cordova/modulemapper')\nexport const CustomFile = isBrowser && ((moduleMapper && moduleMapper.getOriginalSymbol(window, 'File')) || File)\nexport const CustomFileReader = isBrowser && ((moduleMapper && moduleMapper.getOriginalSymbol(window, 'FileReader')) || FileReader)\n\n/**\n * getDataUrlFromFile\n *\n * @param {File} file\n * @returns {Promise}\n */\nexport function getDataUrlFromFile (file) {\n return new Promise((resolve, reject) => {\n const reader = new CustomFileReader()\n reader.onload = () => resolve(reader.result)\n reader.onerror = (e) => reject(e)\n reader.readAsDataURL(file)\n })\n}\n\n/**\n * getFilefromDataUrl\n *\n * @param {string} dataurl\n * @param {string} filename\n * @param {number} [lastModified=Date.now()]\n * @returns {Promise}\n */\nexport function getFilefromDataUrl (dataurl, filename, lastModified = Date.now()) {\n return new Promise((resolve) => {\n const arr = dataurl.split(',')\n const mime = arr[0].match(/:(.*?);/)[1]\n const bstr = atob(arr[1])\n let n = bstr.length\n const u8arr = new Uint8Array(n)\n while (n--) {\n u8arr[n] = bstr.charCodeAt(n)\n }\n const file = new Blob([u8arr], { type: mime })\n file.name = filename\n file.lastModified = lastModified\n resolve(file)\n\n // Safari has issue with File constructor not being able to POST in FormData\n // https://github.com/Donaldcwl/browser-image-compression/issues/8\n // https://bugs.webkit.org/show_bug.cgi?id=165081\n // let file\n // try {\n // file = new File([u8arr], filename, { type: mime }) // Edge do not support File constructor\n // } catch (e) {\n // file = new Blob([u8arr], { type: mime })\n // file.name = filename\n // file.lastModified = lastModified\n // }\n // resolve(file)\n })\n}\n\n/**\n * loadImage\n *\n * @param {string} src\n * @returns {Promise}\n */\nexport function loadImage (src) {\n return new Promise((resolve, reject) => {\n const img = new Image()\n img.onload = () => resolve(img)\n img.onerror = (e) => reject(e)\n img.src = src\n })\n}\n\n/**\n * drawImageInCanvas\n *\n * @param {HTMLImageElement} img\n * @returns {HTMLCanvasElement}\n */\nexport function drawImageInCanvas (img) {\n const [canvas, ctx] = getNewCanvasAndCtx(img.width, img.height)\n ctx.drawImage(img, 0, 0, canvas.width, canvas.height)\n return canvas\n}\n\n/**\n * drawFileInCanvas\n *\n * @param {File} file\n * @returns {Promise<[ImageBitmap | HTMLImageElement, HTMLCanvasElement]>}\n */\nexport async function drawFileInCanvas (file) {\n let img\n try {\n img = await createImageBitmap(file)\n } catch (e) {\n const dataUrl = await getDataUrlFromFile(file)\n img = await loadImage(dataUrl)\n }\n const canvas = drawImageInCanvas(img)\n return [img, canvas]\n}\n\n/**\n * canvasToFile\n *\n * @param canvas\n * @param {string} fileType\n * @param {string} fileName\n * @param {number} fileLastModified\n * @param {number} [quality]\n * @returns {Promise}\n */\nexport async function canvasToFile (canvas, fileType, fileName, fileLastModified, quality = 1) {\n let file\n if (typeof OffscreenCanvas === 'function' && canvas instanceof OffscreenCanvas) {\n file = await canvas.convertToBlob({ type: fileType, quality })\n file.name = fileName\n file.lastModified = fileLastModified\n } else {\n const dataUrl = canvas.toDataURL(fileType, quality)\n file = await getFilefromDataUrl(dataUrl, fileName, fileLastModified)\n }\n return file\n}\n\n/**\n * getExifOrientation\n * get image exif orientation info\n * source: https://stackoverflow.com/a/32490603/10395024\n *\n * @param {File} file\n * @returns {Promise} - orientation id, see https://i.stack.imgur.com/VGsAj.gif\n */\nexport function getExifOrientation (file) {\n return new Promise((resolve, reject) => {\n const reader = new CustomFileReader()\n reader.onload = (e) => {\n const view = new DataView(e.target.result)\n if (view.getUint16(0, false) != 0xFFD8) {\n return resolve(-2)\n }\n const length = view.byteLength\n let offset = 2\n while (offset < length) {\n if (view.getUint16(offset + 2, false) <= 8) return resolve(-1)\n const marker = view.getUint16(offset, false)\n offset += 2\n if (marker == 0xFFE1) {\n if (view.getUint32(offset += 2, false) != 0x45786966) {\n return resolve(-1)\n }\n\n var little = view.getUint16(offset += 6, false) == 0x4949\n offset += view.getUint32(offset + 4, little)\n var tags = view.getUint16(offset, little)\n offset += 2\n for (var i = 0; i < tags; i++) {\n if (view.getUint16(offset + (i * 12), little) == 0x0112) {\n return resolve(view.getUint16(offset + (i * 12) + 8, little))\n }\n }\n } else if ((marker & 0xFF00) != 0xFF00) {\n break\n } else {\n offset += view.getUint16(offset, false)\n }\n }\n return resolve(-1)\n }\n reader.onerror = (e) => reject(e)\n reader.readAsArrayBuffer(file)\n })\n}\n\n/**\n *\n * @param {HTMLCanvasElement} canvas\n * @param options\n * @returns {HTMLCanvasElement>}\n */\nexport function handleMaxWidthOrHeight (canvas, options) {\n const width = canvas.width\n const height = canvas.height\n const maxWidthOrHeight = options.maxWidthOrHeight\n\n const needToHandle = Number.isFinite(maxWidthOrHeight) && (width > maxWidthOrHeight || height > maxWidthOrHeight)\n\n let newCanvas = canvas\n let ctx\n\n if (needToHandle) {\n [newCanvas, ctx] = getNewCanvasAndCtx(width, height)\n if (width > height) {\n newCanvas.width = maxWidthOrHeight\n newCanvas.height = (height / width) * maxWidthOrHeight\n } else {\n newCanvas.width = (width / height) * maxWidthOrHeight\n newCanvas.height = maxWidthOrHeight\n }\n ctx.drawImage(canvas, 0, 0, newCanvas.width, newCanvas.height)\n\n cleanupCanvasMemory(canvas)\n }\n\n return newCanvas\n}\n\n/**\n *\n * @param {HTMLCanvasElement} canvas\n * @param options\n * @returns {HTMLCanvasElement>}\n */\nexport function handleMaxWidth (canvas, options) {\n const width = canvas.width\n const height = canvas.height\n const maxWidth = options.maxWidth\n\n const needToHandle = Number.isFinite(maxWidth) && (width > maxWidth)\n\n let newCanvas = canvas\n let ctx\n\n if (needToHandle) {\n [newCanvas, ctx] = getNewCanvasAndCtx(width, height)\n newCanvas.width = maxWidth\n newCanvas.height = (height / width) * maxWidth\n ctx.drawImage(canvas, 0, 0, newCanvas.width, newCanvas.height)\n\n cleanupCanvasMemory(canvas)\n }\n\n return newCanvas\n}\n\n/**\n *\n * @param {HTMLCanvasElement} canvas\n * @param options\n * @returns {HTMLCanvasElement>}\n */\nexport function handleMaxHeight (canvas, options) {\n const width = canvas.width\n const height = canvas.height\n const maxHeight = options.maxHeight\n\n const needToHandle = Number.isFinite(maxHeight) && (height > maxHeight)\n\n let newCanvas = canvas\n let ctx\n\n if (needToHandle) {\n [newCanvas, ctx] = getNewCanvasAndCtx(width, height)\n newCanvas.width = (width / height) * maxHeight\n newCanvas.height = maxHeight\n\n ctx.drawImage(canvas, 0, 0, newCanvas.width, newCanvas.height)\n\n cleanupCanvasMemory(canvas)\n }\n\n return newCanvas\n}\n\n/**\n * followExifOrientation\n * source: https://stackoverflow.com/a/40867559/10395024\n *\n * @param {HTMLCanvasElement} canvas\n * @param {number} exifOrientation\n * @returns {HTMLCanvasElement} canvas\n */\nexport function followExifOrientation (canvas, exifOrientation) {\n const width = canvas.width\n const height = canvas.height\n\n const [newCanvas, ctx] = getNewCanvasAndCtx(width, height)\n\n // set proper canvas dimensions before transform & export\n if (4 < exifOrientation && exifOrientation < 9) {\n newCanvas.width = height\n newCanvas.height = width\n } else {\n newCanvas.width = width\n newCanvas.height = height\n }\n\n // transform context before drawing image\n switch (exifOrientation) {\n case 2: ctx.transform(-1, 0, 0, 1, width, 0); break;\n case 3: ctx.transform(-1, 0, 0, -1, width, height); break;\n case 4: ctx.transform(1, 0, 0, -1, 0, height); break;\n case 5: ctx.transform(0, 1, 1, 0, 0, 0); break;\n case 6: ctx.transform(0, 1, -1, 0, height, 0); break;\n case 7: ctx.transform(0, -1, -1, 0, height, width); break;\n case 8: ctx.transform(0, -1, 1, 0, 0, width); break;\n default: break;\n }\n\n ctx.drawImage(canvas, 0, 0, width, height)\n\n cleanupCanvasMemory(canvas)\n\n return newCanvas\n}\n\n/**\n * get new Canvas and it's context\n * @param width\n * @param height\n * @returns {[HTMLCanvasElement, CanvasRenderingContext2D]}\n */\nexport function getNewCanvasAndCtx (width, height) {\n let canvas\n let ctx\n try {\n canvas = new OffscreenCanvas(width, height)\n ctx = canvas.getContext('2d')\n if (ctx === null) {\n throw new Error('getContext of OffscreenCanvas returns null')\n }\n } catch (e) {\n canvas = document.createElement('canvas')\n ctx = canvas.getContext('2d')\n }\n canvas.width = width\n canvas.height = height\n return [canvas, ctx]\n}\n\n/**\n * clear Canvas memory\n * @param canvas\n * @returns null\n */\nexport function cleanupCanvasMemory (canvas) {\n canvas.width = 0\n canvas.height = 0\n}\n\nif (isBrowser) {\n// Polyfill for Number.isInteger\n Number.isInteger = Number.isInteger || function (value) {\n return typeof value === 'number' &&\n isFinite(value) &&\n Math.floor(value) === value\n }\n}\n","import {\n canvasToFile,\n cleanupCanvasMemory,\n drawFileInCanvas,\n followExifOrientation,\n getExifOrientation,\n getNewCanvasAndCtx,\n handleMaxWidthOrHeight,\n handleMaxWidth,\n handleMaxHeight\n} from './utils'\n\n/**\n * Compress an image file.\n *\n * @param {File} file\n * @param {Object} options - { maxSizeMB=Number.POSITIVE_INFINITY, maxWidthOrHeight, maxWidth, maxHeight, useWebWorker=false, maxIteration = 10, exifOrientation, fileType }\n * @param {number} [options.maxSizeMB=Number.POSITIVE_INFINITY]\n * @param {number} [options.maxWidthOrHeight=undefined]\n * @param {number} [options.maxWidth=undefined]\n * @param {number} [options.maxHeight=undefined]\n * @param {number} [options.maxIteration=10]\n * @param {number} [options.exifOrientation] - default to be the exif orientation from the image file\n * @param {Function} [options.onProgress] - a function takes one progress argument (progress from 0 to 100)\n * @param {string} [options.fileType] - default to be the original mime type from the image file\n * @returns {Promise}\n */\nexport default async function compress (file, options) {\n let progress = 0\n\n function incProgress (inc = 5) {\n progress += inc\n if (typeof options.onProgress === 'function') {\n options.onProgress(Math.min(progress, 100))\n }\n }\n\n function setProgress (p) {\n progress = Math.min(Math.max(p, progress), 100)\n if (typeof options.onProgress === 'function') {\n options.onProgress(progress)\n }\n }\n\n let remainingTrials = options.maxIteration || 10\n\n const maxSizeByte = options.maxSizeMB * 1024 * 1024\n\n incProgress()\n\n // drawFileInCanvas\n let [img, origCanvas] = await drawFileInCanvas(file)\n\n incProgress()\n\n // handleMaxDimensions\n let maxDimensionsCanvas = handleMaxWidthOrHeight(origCanvas, options)\n\n if (Number.isFinite(options.maxWidth)) {\n maxDimensionsCanvas = handleMaxWidth(origCanvas, options)\n }\n if (Number.isFinite(options.maxHeight)) {\n maxDimensionsCanvas = handleMaxHeight(origCanvas, options)\n }\n\n incProgress()\n\n // exifOrientation\n options.exifOrientation = options.exifOrientation || await getExifOrientation(file)\n incProgress()\n const orientationFixedCanvas = followExifOrientation(maxDimensionsCanvas, options.exifOrientation)\n incProgress()\n\n let quality = 1\n\n let tempFile = await canvasToFile(orientationFixedCanvas, options.fileType || file.type, file.name, file.lastModified, quality)\n incProgress()\n\n const origExceedMaxSize = tempFile.size > maxSizeByte\n const sizeBecomeLarger = tempFile.size > file.size\n\n // check if we need to compress or resize\n if (!origExceedMaxSize && !sizeBecomeLarger) {\n // no need to compress\n setProgress(100)\n return tempFile\n }\n\n const sourceSize = file.size\n const renderedSize = tempFile.size\n let currentSize = renderedSize\n let compressedFile\n let newCanvas, ctx\n let canvas = orientationFixedCanvas\n while (remainingTrials-- && (currentSize > maxSizeByte || currentSize > sourceSize)) {\n const newWidth = origExceedMaxSize ? canvas.width * 0.95 : canvas.width\n const newHeight = origExceedMaxSize ? canvas.height * 0.95 : canvas.height;\n [newCanvas, ctx] = getNewCanvasAndCtx(newWidth, newHeight)\n\n ctx.drawImage(canvas, 0, 0, newWidth, newHeight)\n\n if (file.type === 'image/jpeg') {\n quality *= 0.95\n }\n compressedFile = await canvasToFile(newCanvas, options.fileType || file.type, file.name, file.lastModified, quality)\n\n cleanupCanvasMemory(canvas)\n\n canvas = newCanvas\n\n currentSize = compressedFile.size\n setProgress(Math.min(99, Math.floor((renderedSize - currentSize) / (renderedSize - maxSizeByte) * 100)))\n }\n\n // garbage clean canvas for safari\n // ref: https://bugs.webkit.org/show_bug.cgi?id=195325\n cleanupCanvasMemory(canvas)\n cleanupCanvasMemory(newCanvas)\n cleanupCanvasMemory(maxDimensionsCanvas)\n cleanupCanvasMemory(orientationFixedCanvas)\n cleanupCanvasMemory(origCanvas)\n\n setProgress(100)\n return compressedFile\n}\n","import lib from './index'\nimport compress from './image-compression'\nimport { getNewCanvasAndCtx } from './utils'\n\nlet cnt = 0\nlet imageCompressionLibUrl\nlet worker\n\nfunction createWorker (script) {\n if (typeof script === 'function') {\n script = `(${f})()`\n }\n return new Worker(URL.createObjectURL(new Blob([script])))\n}\n\nfunction createSourceObject (str) {\n return URL.createObjectURL(new Blob([str], { type: 'application/javascript' }))\n}\n\nfunction generateLib () {\n // prepare the lib to be used inside WebWorker\n return createSourceObject(`\n function imageCompression (){return (${lib}).apply(null, arguments)}\n\n imageCompression.getDataUrlFromFile = ${lib.getDataUrlFromFile}\n imageCompression.getFilefromDataUrl = ${lib.getFilefromDataUrl}\n imageCompression.loadImage = ${lib.loadImage}\n imageCompression.drawImageInCanvas = ${lib.drawImageInCanvas}\n imageCompression.drawFileInCanvas = ${lib.drawFileInCanvas}\n imageCompression.canvasToFile = ${lib.canvasToFile}\n imageCompression.getExifOrientation = ${lib.getExifOrientation}\n imageCompression.handleMaxWidthOrHeight = ${lib.handleMaxWidthOrHeight}\n imageCompression.handleMaxWidth = ${lib.handleMaxWidth}\n imageCompression.handleMaxHeight = ${lib.handleMaxHeight}\n imageCompression.followExifOrientation = ${lib.followExifOrientation}\n imageCompression.cleanupMemory = ${lib.cleanupMemory}\n\n getDataUrlFromFile = imageCompression.getDataUrlFromFile\n getFilefromDataUrl = imageCompression.getFilefromDataUrl\n loadImage = imageCompression.loadImage\n drawImageInCanvas = imageCompression.drawImageInCanvas\n drawFileInCanvas = imageCompression.drawFileInCanvas\n canvasToFile = imageCompression.canvasToFile\n getExifOrientation = imageCompression.getExifOrientation\n handleMaxWidthOrHeight = imageCompression.handleMaxWidthOrHeight\n handleMaxWidth = imageCompression.handleMaxWidth\n handleMaxHeight = imageCompression.handleMaxHeight\n followExifOrientation = imageCompression.followExifOrientation\n cleanupMemory = imageCompression.cleanupMemory\n\n getNewCanvasAndCtx = ${getNewCanvasAndCtx}\n \n CustomFileReader = FileReader\n \n CustomFile = File\n \n function _slicedToArray(arr, n) { return arr }\n \n function _typeof(a) { return typeof a }\n\n function compress (){return (${compress}).apply(null, arguments)}\n `)\n}\n\nfunction generateWorkerScript () {\n // code to be run in the WebWorker\n return createWorker(`\n let scriptImported = false\n self.addEventListener('message', async (e) => {\n const { file, id, imageCompressionLibUrl, options } = e.data\n options.onProgress = (progress) => self.postMessage({ progress, id })\n try {\n if (!scriptImported) {\n // console.log('[worker] importScripts', imageCompressionLibUrl)\n self.importScripts(imageCompressionLibUrl)\n scriptImported = true\n }\n // console.log('[worker] self', self)\n const compressedFile = await imageCompression(file, options)\n self.postMessage({ file: compressedFile, id })\n } catch (e) {\n // console.error('[worker] error', e)\n self.postMessage({ error: e.message + '\\\\n' + e.stack, id })\n }\n })\n `)\n}\n\nexport function compressOnWebWorker (file, options) {\n return new Promise(async (resolve, reject) => {\n let id = cnt++\n\n if (!imageCompressionLibUrl) {\n imageCompressionLibUrl = generateLib()\n }\n\n if (!worker) {\n worker = generateWorkerScript()\n }\n\n function handler (e) {\n if (e.data.id === id) {\n if (e.data.progress !== undefined && e.data.progress < 100) {\n options.onProgress(e.data.progress)\n return\n }\n worker.removeEventListener('message', handler)\n if (e.data.error) {\n reject(new Error(e.data.error))\n }\n resolve(e.data.file)\n }\n }\n\n worker.addEventListener('message', handler)\n worker.postMessage({\n file,\n id,\n imageCompressionLibUrl,\n options: { ...options, onProgress: undefined }\n })\n })\n}\n","import compress from './image-compression'\nimport {\n canvasToFile,\n drawFileInCanvas,\n drawImageInCanvas,\n getDataUrlFromFile,\n getFilefromDataUrl,\n loadImage,\n getExifOrientation,\n handleMaxWidthOrHeight,\n handleMaxWidth,\n handleMaxHeight,\n followExifOrientation,\n CustomFile,\n cleanupCanvasMemory\n} from './utils'\nimport { compressOnWebWorker } from './web-worker'\n\n/**\n * Compress an image file.\n *\n * @param {File} file\n * @param {Object} options - { maxSizeMB=Number.POSITIVE_INFINITY, maxWidthOrHeight, maxWidth, maxHeight, useWebWorker=false, maxIteration = 10, exifOrientation, fileType }\n * @param {number} [options.maxSizeMB=Number.POSITIVE_INFINITY]\n * @param {number} [options.maxWidthOrHeight=undefined]\n * @param {number} [options.maxWidth=undefined]\n * @param {number} [options.maxHeight=undefined]\n * @param {boolean} [options.useWebWorker=false]\n * @param {number} [options.maxIteration=10]\n * @param {number} [options.exifOrientation] - default to be the exif orientation from the image file\n * @param {Function} [options.onProgress] - a function takes one progress argument (progress from 0 to 100)\n * @param {string} [options.fileType] - default to be the original mime type from the image file\n * @returns {Promise}\n */\nasync function imageCompression (file, options) {\n\n let compressedFile\n\n options.maxSizeMB = options.maxSizeMB || Number.POSITIVE_INFINITY\n const useWebWorker = typeof options.useWebWorker === 'boolean' ? options.useWebWorker : false\n delete options.useWebWorker\n\n if (!(file instanceof Blob || file instanceof CustomFile)) {\n throw new Error('The file given is not an instance of Blob or File')\n } else if (!/^image/.test(file.type)) {\n throw new Error('The file given is not an image')\n }\n\n // try run in web worker, fall back to run in main thread\n const inWebWorker = typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope\n\n // if ((useWebWorker && typeof Worker === 'function') || inWebWorker) {\n // console.log('run compression in web worker')\n // } else {\n // console.log('run compression in main thread')\n // }\n\n if (useWebWorker && typeof Worker === 'function' && !inWebWorker) {\n try {\n // console.log(1)\n // \"compressOnWebWorker\" is kind of like a recursion to call \"imageCompression\" again inside web worker\n compressedFile = await compressOnWebWorker(file, options)\n } catch (e) {\n // console.warn('Run compression in web worker failed:', e, ', fall back to main thread')\n // console.log(1.5)\n compressedFile = await compress(file, options)\n }\n } else {\n // console.log(2)\n compressedFile = await compress(file, options)\n }\n\n try {\n compressedFile.name = file.name\n compressedFile.lastModified = file.lastModified\n } catch (e) {}\n\n return compressedFile\n}\n\nimageCompression.getDataUrlFromFile = getDataUrlFromFile\nimageCompression.getFilefromDataUrl = getFilefromDataUrl\nimageCompression.loadImage = loadImage\nimageCompression.drawImageInCanvas = drawImageInCanvas\nimageCompression.drawFileInCanvas = drawFileInCanvas\nimageCompression.canvasToFile = canvasToFile\nimageCompression.getExifOrientation = getExifOrientation\nimageCompression.handleMaxWidthOrHeight = handleMaxWidthOrHeight\nimageCompression.handleMaxWidth = handleMaxWidth\nimageCompression.handleMaxHeight = handleMaxHeight\nimageCompression.followExifOrientation = followExifOrientation\nimageCompression.cleanupMemory = cleanupCanvasMemory\nimageCompression.version = '1.0.9'\n\nexport default imageCompression\n"],"names":["isBrowser","window","moduleMapper","getDataUrlFromFile","resolve","reader","dataurl","split","n","bstr","filename","file","lastModified","canvas","view","length","offset","getUint32","marker","maxWidthOrHeight","width","ctx","drawImage","height","maxWidth","Number","isFinite","cleanupCanvasMemory","followExifOrientation","newCanvas","exifOrientation","p","maxSizeByte","imageCompressionLibUrl","cnt","generateLib","lib","script","createWorker","inWebWorker","imageCompression","getFilefromDataUrl","loadImage","drawImageInCanvas","drawFileInCanvas"],"mappings":";;;;;;;4yCAAA,IAAMA,EAA8B,oBAAlBC,2EAKoF,uCAQ5DC,2HAiBnC,SAASC,mDACPC,6DAEqBC,uNAiCdC,EAAAC,mCACK,gBAEjBC,EAAIC,6BAEJD,8DAUYE,EACdC,EAAAC,eACAR,28BAwC2CS,qcAoB7CC,mEAEMV,mCAGQW,6DAEgBC,8GASpBF,EAAAG,UAAgBD,0GAKPA,EAAA,iCAGTE,0KA+BVC,oJAmBuBC,6BAIAD,GAGrBE,EAAAC,sDAGET,yDAwBEU,WACAC,eAKQX,KAFVY,OAAAC,SAAAF,gEASFH,oEAaAM,oEAgBEP,uOA0BAQ,+BACAR,UACAG,sFAMJM,EAAAT,QACES,EAAAN,WAEAM,EAAAT,oBAUAU,8IAKmB,mwBCrRkCC,8bAkBvDD,oVAQ6CnB,OAAdA,SAA6BC,oEAElDoB,mmCC3FV,IACIC,IADAC,IAcJ,SAASC,oLAuGTC,sqEA9GEC,sEAZFC,y3BC6DiDb,4SAMjDc,+lCAiBA5B,yCAMA6B,iBAAArC,mBAAAA,mBACAqC,iBAAAC,sCACAD,iBAAAE,oBAEAF,iBAAAG,oCA9FAH,iBAAAI"}
\ No newline at end of file
diff --git a/lib/image-compression.js b/lib/image-compression.js
index effa8ae..5650fe5 100644
--- a/lib/image-compression.js
+++ b/lib/image-compression.js
@@ -5,16 +5,20 @@ import {
followExifOrientation,
getExifOrientation,
getNewCanvasAndCtx,
- handleMaxWidthOrHeight
+ handleMaxWidthOrHeight,
+ handleMaxWidth,
+ handleMaxHeight
} from './utils'
/**
* Compress an image file.
*
* @param {File} file
- * @param {Object} options - { maxSizeMB=Number.POSITIVE_INFINITY, maxWidthOrHeight, useWebWorker=false, maxIteration = 10, exifOrientation, fileType }
+ * @param {Object} options - { maxSizeMB=Number.POSITIVE_INFINITY, maxWidthOrHeight, maxWidth, maxHeight, useWebWorker=false, maxIteration = 10, exifOrientation, fileType }
* @param {number} [options.maxSizeMB=Number.POSITIVE_INFINITY]
* @param {number} [options.maxWidthOrHeight=undefined]
+ * @param {number} [options.maxWidth=undefined]
+ * @param {number} [options.maxHeight=undefined]
* @param {number} [options.maxIteration=10]
* @param {number} [options.exifOrientation] - default to be the exif orientation from the image file
* @param {Function} [options.onProgress] - a function takes one progress argument (progress from 0 to 100)
@@ -49,15 +53,22 @@ export default async function compress (file, options) {
incProgress()
- // handleMaxWidthOrHeight
- const maxWidthOrHeightFixedCanvas = handleMaxWidthOrHeight(origCanvas, options)
+ // handleMaxDimensions
+ let maxDimensionsCanvas = handleMaxWidthOrHeight(origCanvas, options)
+
+ if (Number.isFinite(options.maxWidth)) {
+ maxDimensionsCanvas = handleMaxWidth(origCanvas, options)
+ }
+ if (Number.isFinite(options.maxHeight)) {
+ maxDimensionsCanvas = handleMaxHeight(origCanvas, options)
+ }
incProgress()
// exifOrientation
options.exifOrientation = options.exifOrientation || await getExifOrientation(file)
incProgress()
- const orientationFixedCanvas = followExifOrientation(maxWidthOrHeightFixedCanvas, options.exifOrientation)
+ const orientationFixedCanvas = followExifOrientation(maxDimensionsCanvas, options.exifOrientation)
incProgress()
let quality = 1
@@ -105,7 +116,7 @@ export default async function compress (file, options) {
// ref: https://bugs.webkit.org/show_bug.cgi?id=195325
cleanupCanvasMemory(canvas)
cleanupCanvasMemory(newCanvas)
- cleanupCanvasMemory(maxWidthOrHeightFixedCanvas)
+ cleanupCanvasMemory(maxDimensionsCanvas)
cleanupCanvasMemory(orientationFixedCanvas)
cleanupCanvasMemory(origCanvas)
diff --git a/lib/index.d.ts b/lib/index.d.ts
index 94ff80d..74f1955 100644
--- a/lib/index.d.ts
+++ b/lib/index.d.ts
@@ -8,6 +8,10 @@ interface Options {
maxSizeMB?: number;
/** @default undefined */
maxWidthOrHeight?: number;
+ /** @default undefined */
+ maxWidth?: number;
+ /** @default undefined */
+ maxHeight?: number;
/** @default false */
useWebWorker?: boolean;
/** @default 10 */
diff --git a/lib/index.js b/lib/index.js
index 0b09de4..1b9a9a1 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -8,6 +8,8 @@ import {
loadImage,
getExifOrientation,
handleMaxWidthOrHeight,
+ handleMaxWidth,
+ handleMaxHeight,
followExifOrientation,
CustomFile,
cleanupCanvasMemory
@@ -18,9 +20,11 @@ import { compressOnWebWorker } from './web-worker'
* Compress an image file.
*
* @param {File} file
- * @param {Object} options - { maxSizeMB=Number.POSITIVE_INFINITY, maxWidthOrHeight, useWebWorker=false, maxIteration = 10, exifOrientation, fileType }
+ * @param {Object} options - { maxSizeMB=Number.POSITIVE_INFINITY, maxWidthOrHeight, maxWidth, maxHeight, useWebWorker=false, maxIteration = 10, exifOrientation, fileType }
* @param {number} [options.maxSizeMB=Number.POSITIVE_INFINITY]
* @param {number} [options.maxWidthOrHeight=undefined]
+ * @param {number} [options.maxWidth=undefined]
+ * @param {number} [options.maxHeight=undefined]
* @param {boolean} [options.useWebWorker=false]
* @param {number} [options.maxIteration=10]
* @param {number} [options.exifOrientation] - default to be the exif orientation from the image file
@@ -82,6 +86,8 @@ imageCompression.drawFileInCanvas = drawFileInCanvas
imageCompression.canvasToFile = canvasToFile
imageCompression.getExifOrientation = getExifOrientation
imageCompression.handleMaxWidthOrHeight = handleMaxWidthOrHeight
+imageCompression.handleMaxWidth = handleMaxWidth
+imageCompression.handleMaxHeight = handleMaxHeight
imageCompression.followExifOrientation = followExifOrientation
imageCompression.cleanupMemory = cleanupCanvasMemory
imageCompression.version = '1.0.9'
diff --git a/lib/utils.js b/lib/utils.js
index 49da2ac..5f1ded4 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -208,6 +208,63 @@ export function handleMaxWidthOrHeight (canvas, options) {
return newCanvas
}
+/**
+ *
+ * @param {HTMLCanvasElement} canvas
+ * @param options
+ * @returns {HTMLCanvasElement>}
+ */
+export function handleMaxWidth (canvas, options) {
+ const width = canvas.width
+ const height = canvas.height
+ const maxWidth = options.maxWidth
+
+ const needToHandle = Number.isFinite(maxWidth) && (width > maxWidth)
+
+ let newCanvas = canvas
+ let ctx
+
+ if (needToHandle) {
+ [newCanvas, ctx] = getNewCanvasAndCtx(width, height)
+ newCanvas.width = maxWidth
+ newCanvas.height = (height / width) * maxWidth
+ ctx.drawImage(canvas, 0, 0, newCanvas.width, newCanvas.height)
+
+ cleanupCanvasMemory(canvas)
+ }
+
+ return newCanvas
+}
+
+/**
+ *
+ * @param {HTMLCanvasElement} canvas
+ * @param options
+ * @returns {HTMLCanvasElement>}
+ */
+export function handleMaxHeight (canvas, options) {
+ const width = canvas.width
+ const height = canvas.height
+ const maxHeight = options.maxHeight
+
+ const needToHandle = Number.isFinite(maxHeight) && (height > maxHeight)
+
+ let newCanvas = canvas
+ let ctx
+
+ if (needToHandle) {
+ [newCanvas, ctx] = getNewCanvasAndCtx(width, height)
+ newCanvas.width = (width / height) * maxHeight
+ newCanvas.height = maxHeight
+
+ ctx.drawImage(canvas, 0, 0, newCanvas.width, newCanvas.height)
+
+ cleanupCanvasMemory(canvas)
+ }
+
+ return newCanvas
+}
+
/**
* followExifOrientation
* source: https://stackoverflow.com/a/40867559/10395024
diff --git a/lib/web-worker.js b/lib/web-worker.js
index 53777a8..267d533 100644
--- a/lib/web-worker.js
+++ b/lib/web-worker.js
@@ -30,6 +30,8 @@ function generateLib () {
imageCompression.canvasToFile = ${lib.canvasToFile}
imageCompression.getExifOrientation = ${lib.getExifOrientation}
imageCompression.handleMaxWidthOrHeight = ${lib.handleMaxWidthOrHeight}
+ imageCompression.handleMaxWidth = ${lib.handleMaxWidth}
+ imageCompression.handleMaxHeight = ${lib.handleMaxHeight}
imageCompression.followExifOrientation = ${lib.followExifOrientation}
imageCompression.cleanupMemory = ${lib.cleanupMemory}
@@ -41,6 +43,8 @@ function generateLib () {
canvasToFile = imageCompression.canvasToFile
getExifOrientation = imageCompression.getExifOrientation
handleMaxWidthOrHeight = imageCompression.handleMaxWidthOrHeight
+ handleMaxWidth = imageCompression.handleMaxWidth
+ handleMaxHeight = imageCompression.handleMaxHeight
followExifOrientation = imageCompression.followExifOrientation
cleanupMemory = imageCompression.cleanupMemory
diff --git a/package-lock.json b/package-lock.json
index f1e6e0f..649affe 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -4,4861 +4,5470 @@
"lockfileVersion": 1,
"requires": true,
"dependencies": {
- "abab": {
- "version": "2.0.3",
- "resolved": "https://registry.yarnpkg.com/abab/-/abab-2.0.3.tgz",
- "integrity": "sha1-Yj4gdeAustPyR15J+ZyRhGRnkHo="
- },
- "abbrev": {
- "version": "1.1.1",
- "resolved": "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz",
- "integrity": "sha1-+PLIh60Qv2f2NPAFtph/7TF5qsg="
- },
- "acorn": {
- "version": "7.1.1",
- "resolved": "https://registry.yarnpkg.com/acorn/-/acorn-7.1.1.tgz",
- "integrity": "sha1-41Zo3gtALzWd5RXFSCoaufiaab8="
+ "@babel/code-frame": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.8.3.tgz",
+ "integrity": "sha1-M+JZA9dIEYFTThLsCiXxa2/PQZ4=",
+ "dev": true,
+ "requires": {
+ "@babel/highlight": "^7.8.3"
+ }
},
- "acorn-dynamic-import": {
- "version": "3.0.0",
- "resolved": "https://registry.yarnpkg.com/acorn-dynamic-import/-/acorn-dynamic-import-3.0.0.tgz",
- "integrity": "sha1-kBzu5Mf6rvfgetKkfokGddpQong=",
+ "@babel/compat-data": {
+ "version": "7.8.6",
+ "resolved": "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.8.6.tgz",
+ "integrity": "sha1-fuqg36F+UMfZwIMlFe7gm1bwTjU=",
+ "dev": true,
"requires": {
- "acorn": "5.7.4"
+ "browserslist": "^4.8.5",
+ "invariant": "^2.2.4",
+ "semver": "^5.5.0"
+ }
+ },
+ "@babel/core": {
+ "version": "7.8.7",
+ "resolved": "https://registry.yarnpkg.com/@babel/core/-/core-7.8.7.tgz",
+ "integrity": "sha1-tpAX0iHM3rIDFFrp2iadcs8QLzs=",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.8.3",
+ "@babel/generator": "^7.8.7",
+ "@babel/helpers": "^7.8.4",
+ "@babel/parser": "^7.8.7",
+ "@babel/template": "^7.8.6",
+ "@babel/traverse": "^7.8.6",
+ "@babel/types": "^7.8.7",
+ "convert-source-map": "^1.7.0",
+ "debug": "^4.1.0",
+ "gensync": "^1.0.0-beta.1",
+ "json5": "^2.1.0",
+ "lodash": "^4.17.13",
+ "resolve": "^1.3.2",
+ "semver": "^5.4.1",
+ "source-map": "^0.5.0"
},
"dependencies": {
- "acorn": {
- "version": "5.7.4",
- "resolved": "https://registry.yarnpkg.com/acorn/-/acorn-5.7.4.tgz",
- "integrity": "sha1-Po2KmUfQWZoXltECJddDL0pKz14="
+ "source-map": {
+ "version": "0.5.7",
+ "resolved": "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz",
+ "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",
+ "dev": true
}
}
},
- "acorn-es7-plugin": {
- "version": "1.1.7",
- "resolved": "https://registry.yarnpkg.com/acorn-es7-plugin/-/acorn-es7-plugin-1.1.7.tgz",
- "integrity": "sha1-8u4fMiipDurRJF+asZIusucdM2s="
- },
- "acorn-globals": {
- "version": "4.3.4",
- "resolved": "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-4.3.4.tgz",
- "integrity": "sha1-n6GSat3BHJcwjE5m163Q1Awycuc=",
+ "@babel/generator": {
+ "version": "7.8.8",
+ "resolved": "https://registry.yarnpkg.com/@babel/generator/-/generator-7.8.8.tgz",
+ "integrity": "sha1-zc1YyqtzCDTO6e6ttynoM7Yl2j4=",
+ "dev": true,
"requires": {
- "acorn": "6.4.1",
- "acorn-walk": "6.2.0"
+ "@babel/types": "^7.8.7",
+ "jsesc": "^2.5.1",
+ "lodash": "^4.17.13",
+ "source-map": "^0.5.0"
},
"dependencies": {
- "acorn": {
- "version": "6.4.1",
- "resolved": "https://registry.yarnpkg.com/acorn/-/acorn-6.4.1.tgz",
- "integrity": "sha1-Ux5Yuj9RudrLmmZGyk3r9bFMpHQ="
+ "source-map": {
+ "version": "0.5.7",
+ "resolved": "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz",
+ "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",
+ "dev": true
}
}
},
- "acorn-jsx": {
- "version": "5.2.0",
- "resolved": "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.2.0.tgz",
- "integrity": "sha1-TGYGkXPW/daO2FI5/CViJhgrLr4="
- },
- "acorn-walk": {
- "version": "6.2.0",
- "resolved": "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-6.2.0.tgz",
- "integrity": "sha1-Ejy487hMIXHx9/slJhWxx4prGow="
- },
- "aggregate-error": {
- "version": "3.0.1",
- "resolved": "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.0.1.tgz",
- "integrity": "sha1-2y/nJG5Tb0DZtUQqOeEX191qJOA=",
+ "@babel/helper-annotate-as-pure": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.8.3.tgz",
+ "integrity": "sha1-YLwLxlf2Ogkk/5pLSgskoTz03u4=",
+ "dev": true,
"requires": {
- "clean-stack": "2.2.0",
- "indent-string": "4.0.0"
+ "@babel/types": "^7.8.3"
}
},
- "ajv": {
- "version": "6.12.0",
- "resolved": "https://registry.yarnpkg.com/ajv/-/ajv-6.12.0.tgz",
- "integrity": "sha1-BtYLlth7hFSlrauobnhU2mKdtLc=",
+ "@babel/helper-builder-binary-assignment-operator-visitor": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.8.3.tgz",
+ "integrity": "sha1-yECXpCegYaxWocMOv1S3si0kFQM=",
+ "dev": true,
"requires": {
- "fast-deep-equal": "3.1.1",
- "fast-json-stable-stringify": "2.1.0",
- "json-schema-traverse": "0.4.1",
- "uri-js": "4.2.2"
+ "@babel/helper-explode-assignable-expression": "^7.8.3",
+ "@babel/types": "^7.8.3"
}
},
- "amdefine": {
- "version": "1.0.1",
- "resolved": "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz",
- "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU="
- },
- "ansi-colors": {
- "version": "3.2.3",
- "resolved": "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-3.2.3.tgz",
- "integrity": "sha1-V9NbhoboUeLMBMQD8cACA5dqGBM="
- },
- "ansi-escapes": {
- "version": "4.3.1",
- "resolved": "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.1.tgz",
- "integrity": "sha1-pcR8xDGB8fOP/XB2g3cA05VSKmE=",
+ "@babel/helper-call-delegate": {
+ "version": "7.8.7",
+ "resolved": "https://registry.yarnpkg.com/@babel/helper-call-delegate/-/helper-call-delegate-7.8.7.tgz",
+ "integrity": "sha1-KKJ5wubGIqYjPaVIEn+YB1EyTKs=",
+ "dev": true,
"requires": {
- "type-fest": "0.11.0"
- },
- "dependencies": {
- "type-fest": {
- "version": "0.11.0",
- "resolved": "https://registry.yarnpkg.com/type-fest/-/type-fest-0.11.0.tgz",
- "integrity": "sha1-l6vwhyMQ/tiKXEZrJWgVdhReM/E="
- }
+ "@babel/helper-hoist-variables": "^7.8.3",
+ "@babel/traverse": "^7.8.3",
+ "@babel/types": "^7.8.7"
}
},
- "ansi-regex": {
- "version": "4.1.0",
- "resolved": "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz",
- "integrity": "sha1-i5+PCM8ay4Q3Vqg5yox+MWjFGZc="
- },
- "ansi-styles": {
- "version": "3.2.1",
- "resolved": "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz",
- "integrity": "sha1-QfuyAkPlCxK+DwS43tvwdSDOhB0=",
+ "@babel/helper-compilation-targets": {
+ "version": "7.8.7",
+ "resolved": "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.8.7.tgz",
+ "integrity": "sha1-2sHuoVnA5L1G4wm1obBKZrU8Hd4=",
+ "dev": true,
"requires": {
- "color-convert": "1.9.3"
+ "@babel/compat-data": "^7.8.6",
+ "browserslist": "^4.9.1",
+ "invariant": "^2.2.4",
+ "levenary": "^1.1.1",
+ "semver": "^5.5.0"
}
},
- "anymatch": {
- "version": "3.1.1",
- "resolved": "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.1.tgz",
- "integrity": "sha1-xV7PAhheJGklk5kxDBc84xIzsUI=",
+ "@babel/helper-create-regexp-features-plugin": {
+ "version": "7.8.8",
+ "resolved": "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.8.8.tgz",
+ "integrity": "sha1-XYQYC1iPVgt4ZO+u6okkPlgxIIc=",
+ "dev": true,
"requires": {
- "normalize-path": "3.0.0",
- "picomatch": "2.2.1"
+ "@babel/helper-annotate-as-pure": "^7.8.3",
+ "@babel/helper-regex": "^7.8.3",
+ "regexpu-core": "^4.7.0"
}
},
- "append-transform": {
- "version": "2.0.0",
- "resolved": "https://registry.yarnpkg.com/append-transform/-/append-transform-2.0.0.tgz",
- "integrity": "sha1-mdnSnHs4OR5vQo0ozhNlUfC3fhI=",
+ "@babel/helper-define-map": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/helper-define-map/-/helper-define-map-7.8.3.tgz",
+ "integrity": "sha1-oGVcrVRRw3YLcm66h18c2PqgLBU=",
+ "dev": true,
"requires": {
- "default-require-extensions": "3.0.0"
+ "@babel/helper-function-name": "^7.8.3",
+ "@babel/types": "^7.8.3",
+ "lodash": "^4.17.13"
}
},
- "aproba": {
- "version": "1.2.0",
- "resolved": "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz",
- "integrity": "sha1-aALmJk79GMeQobDVF/DyYnvyyUo="
- },
- "archy": {
- "version": "1.0.0",
- "resolved": "https://registry.yarnpkg.com/archy/-/archy-1.0.0.tgz",
- "integrity": "sha1-+cjBN1fMHde8N5rHeyxipcKGjEA="
- },
- "are-we-there-yet": {
- "version": "1.1.5",
- "resolved": "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz",
- "integrity": "sha1-SzXClE8GKov82mZBB2A1D+nd/CE=",
+ "@babel/helper-explode-assignable-expression": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.8.3.tgz",
+ "integrity": "sha1-pyjcW06J4w/C38fQT6KKkwZT+YI=",
+ "dev": true,
"requires": {
- "delegates": "1.0.0",
- "readable-stream": "2.3.7"
+ "@babel/traverse": "^7.8.3",
+ "@babel/types": "^7.8.3"
}
},
- "argparse": {
- "version": "1.0.10",
- "resolved": "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz",
- "integrity": "sha1-vNZ5HqWuCXJeF+WtmIE0zUCz2RE=",
+ "@babel/helper-function-name": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.8.3.tgz",
+ "integrity": "sha1-7utmWgGx8RBo6fuGrVahyxqCTMo=",
+ "dev": true,
"requires": {
- "sprintf-js": "1.0.3"
+ "@babel/helper-get-function-arity": "^7.8.3",
+ "@babel/template": "^7.8.3",
+ "@babel/types": "^7.8.3"
}
},
- "array-equal": {
- "version": "1.0.0",
- "resolved": "https://registry.yarnpkg.com/array-equal/-/array-equal-1.0.0.tgz",
- "integrity": "sha1-jCpe8kcv2ep0KwTHenUJO6J1fJM="
- },
- "array-find-index": {
- "version": "1.0.2",
- "resolved": "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz",
- "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E="
- },
- "array-union": {
- "version": "2.1.0",
- "resolved": "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz",
- "integrity": "sha1-t5hCCtvrHego2ErNii4j0+/oXo0="
- },
- "asn1": {
- "version": "0.2.4",
- "resolved": "https://registry.yarnpkg.com/asn1/-/asn1-0.2.4.tgz",
- "integrity": "sha1-jSR136tVO7M+d7VOWeiAu4ziMTY=",
+ "@babel/helper-get-function-arity": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz",
+ "integrity": "sha1-uJS5R70AQ4HOY+odufCFR+kgq9U=",
+ "dev": true,
"requires": {
- "safer-buffer": "2.1.2"
+ "@babel/types": "^7.8.3"
}
},
- "assert-plus": {
- "version": "1.0.0",
- "resolved": "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz",
- "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU="
- },
- "assertion-error": {
- "version": "1.1.0",
- "resolved": "https://registry.yarnpkg.com/assertion-error/-/assertion-error-1.1.0.tgz",
- "integrity": "sha1-5gtrDo8wG9l+U3UhW9pAbIURjAs="
- },
- "astral-regex": {
- "version": "1.0.0",
- "resolved": "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz",
- "integrity": "sha1-bIw/uCfdQ+45GPJ7gngqt2WKb9k="
- },
- "async": {
- "version": "1.5.2",
- "resolved": "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz",
- "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo="
- },
- "asynckit": {
- "version": "0.4.0",
- "resolved": "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz",
- "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
- },
- "aws-sign2": {
- "version": "0.7.0",
- "resolved": "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz",
- "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg="
- },
- "aws4": {
- "version": "1.9.1",
- "resolved": "https://registry.yarnpkg.com/aws4/-/aws4-1.9.1.tgz",
- "integrity": "sha1-fjPY99RJs/ZzzXLeuavcVS2+Uo4="
- },
- "babel-eslint": {
- "version": "10.1.0",
- "resolved": "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.1.0.tgz",
- "integrity": "sha1-aWjlaKkQt4+zd5zdi2rC9HmUMjI=",
+ "@babel/helper-hoist-variables": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.8.3.tgz",
+ "integrity": "sha1-Hb6ba1XXjJtBg/yM3G4wzrg7cTQ=",
+ "dev": true,
"requires": {
- "@babel/code-frame": "7.8.3",
- "@babel/parser": "7.8.8",
- "@babel/traverse": "7.8.6",
- "@babel/types": "7.8.7",
- "eslint-visitor-keys": "1.1.0",
- "resolve": "1.15.1"
+ "@babel/types": "^7.8.3"
}
},
- "babel-plugin-dynamic-import-node": {
- "version": "2.3.0",
- "resolved": "https://registry.yarnpkg.com/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.0.tgz",
- "integrity": "sha1-8A9Qe9qjw+P/bn5emNkKesq5b38=",
+ "@babel/helper-member-expression-to-functions": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.8.3.tgz",
+ "integrity": "sha1-ZZtxBJjqbB2ZB+DHPyBu7n2twkw=",
+ "dev": true,
"requires": {
- "object.assign": "4.1.0"
+ "@babel/types": "^7.8.3"
}
},
- "babel-plugin-istanbul": {
- "version": "6.0.0",
- "resolved": "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-6.0.0.tgz",
- "integrity": "sha1-4VnM3Jr5XgtXDHW0Vzt8NNZx12U=",
+ "@babel/helper-module-imports": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.8.3.tgz",
+ "integrity": "sha1-f+OVibOcAWMxtrjD9EHo8LFBlJg=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3",
- "@istanbuljs/load-nyc-config": "1.0.0",
- "@istanbuljs/schema": "0.1.2",
- "istanbul-lib-instrument": "4.0.1",
- "test-exclude": "6.0.0"
+ "@babel/types": "^7.8.3"
}
},
- "balanced-match": {
- "version": "1.0.0",
- "resolved": "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz",
- "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c="
+ "@babel/helper-module-transforms": {
+ "version": "7.8.6",
+ "resolved": "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.8.6.tgz",
+ "integrity": "sha1-ahO17srcNWkgRwc6ZOQpd7l2VKQ=",
+ "dev": true,
+ "requires": {
+ "@babel/helper-module-imports": "^7.8.3",
+ "@babel/helper-replace-supers": "^7.8.6",
+ "@babel/helper-simple-access": "^7.8.3",
+ "@babel/helper-split-export-declaration": "^7.8.3",
+ "@babel/template": "^7.8.6",
+ "@babel/types": "^7.8.6",
+ "lodash": "^4.17.13"
+ }
},
- "bcrypt-pbkdf": {
- "version": "1.0.2",
- "resolved": "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",
- "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=",
+ "@babel/helper-optimise-call-expression": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.8.3.tgz",
+ "integrity": "sha1-ftBxgT0Jx1KY708giVYAa2ER7Lk=",
+ "dev": true,
"requires": {
- "tweetnacl": "0.14.5"
+ "@babel/types": "^7.8.3"
}
},
- "binary-extensions": {
- "version": "2.0.0",
- "resolved": "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.0.0.tgz",
- "integrity": "sha1-I8DfFPaogHf1+YbA0WfsA8PVU3w="
+ "@babel/helper-plugin-utils": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.8.3.tgz",
+ "integrity": "sha1-nqKTvhm6vA9S/4yoizTDYRsghnA=",
+ "dev": true
},
- "brace-expansion": {
- "version": "1.1.11",
- "resolved": "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz",
- "integrity": "sha1-PH/L9SnYcibz0vUrlm/1Jx60Qd0=",
+ "@babel/helper-regex": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/helper-regex/-/helper-regex-7.8.3.tgz",
+ "integrity": "sha1-E5dyYH1RuT8j7/5yEFsxnSpMaWU=",
+ "dev": true,
"requires": {
- "balanced-match": "1.0.0",
- "concat-map": "0.0.1"
+ "lodash": "^4.17.13"
}
},
- "braces": {
- "version": "3.0.2",
- "resolved": "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz",
- "integrity": "sha1-NFThpGLujVmeI23zNs2epPiv4Qc=",
+ "@babel/helper-remap-async-to-generator": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.8.3.tgz",
+ "integrity": "sha1-JzxgDYub9QBhQsHjWIfVVcEu3YY=",
+ "dev": true,
"requires": {
- "fill-range": "7.0.1"
+ "@babel/helper-annotate-as-pure": "^7.8.3",
+ "@babel/helper-wrap-function": "^7.8.3",
+ "@babel/template": "^7.8.3",
+ "@babel/traverse": "^7.8.3",
+ "@babel/types": "^7.8.3"
}
},
- "browser-process-hrtime": {
- "version": "1.0.0",
- "resolved": "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz",
- "integrity": "sha1-PJtLfXgsgSHlbxAQbYTA0P/JRiY="
+ "@babel/helper-replace-supers": {
+ "version": "7.8.6",
+ "resolved": "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.8.6.tgz",
+ "integrity": "sha1-Wtp0T9WtcyA78dZ0WaJ9y6Z+/8g=",
+ "dev": true,
+ "requires": {
+ "@babel/helper-member-expression-to-functions": "^7.8.3",
+ "@babel/helper-optimise-call-expression": "^7.8.3",
+ "@babel/traverse": "^7.8.6",
+ "@babel/types": "^7.8.6"
+ }
},
- "browser-stdout": {
- "version": "1.3.1",
- "resolved": "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.1.tgz",
- "integrity": "sha1-uqVZ7hTO1zRSIputcyZGfGH6vWA="
+ "@babel/helper-simple-access": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.8.3.tgz",
+ "integrity": "sha1-f4EJkotNq0ZUB2mGr1dSMd62Oa4=",
+ "dev": true,
+ "requires": {
+ "@babel/template": "^7.8.3",
+ "@babel/types": "^7.8.3"
+ }
},
- "browserslist": {
- "version": "4.9.1",
- "resolved": "https://registry.yarnpkg.com/browserslist/-/browserslist-4.9.1.tgz",
- "integrity": "sha1-Af+5yjGhrvdngSj8aiJTMWqnKHw=",
+ "@babel/helper-split-export-declaration": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz",
+ "integrity": "sha1-ManzAHD5E2inGCzwX4MXgQZfx6k=",
+ "dev": true,
"requires": {
- "caniuse-lite": "1.0.30001035",
- "electron-to-chromium": "1.3.376",
- "node-releases": "1.1.52"
+ "@babel/types": "^7.8.3"
}
},
- "buffer-from": {
- "version": "1.1.1",
- "resolved": "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz",
- "integrity": "sha1-MnE7wCj3XAL9txDXx7zsHyxgcO8="
+ "@babel/helper-wrap-function": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.8.3.tgz",
+ "integrity": "sha1-nb2yu1XvFKqgH+jJm2Kb1TUthhA=",
+ "dev": true,
+ "requires": {
+ "@babel/helper-function-name": "^7.8.3",
+ "@babel/template": "^7.8.3",
+ "@babel/traverse": "^7.8.3",
+ "@babel/types": "^7.8.3"
+ }
},
- "caching-transform": {
- "version": "4.0.0",
- "resolved": "https://registry.yarnpkg.com/caching-transform/-/caching-transform-4.0.0.tgz",
- "integrity": "sha1-ANKXpCBtceIWPDnq/6gVesBlHw8=",
+ "@babel/helpers": {
+ "version": "7.8.4",
+ "resolved": "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.8.4.tgz",
+ "integrity": "sha1-dU6z7nJ8Fl4KJA1sIH3nxFXzb3M=",
+ "dev": true,
"requires": {
- "hasha": "5.2.0",
- "make-dir": "3.0.2",
- "package-hash": "4.0.0",
- "write-file-atomic": "3.0.3"
+ "@babel/template": "^7.8.3",
+ "@babel/traverse": "^7.8.4",
+ "@babel/types": "^7.8.3"
}
},
- "callsites": {
- "version": "3.1.0",
- "resolved": "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz",
- "integrity": "sha1-s2MKvYlDQy9Us/BRkjjjPNffL3M="
+ "@babel/highlight": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.8.3.tgz",
+ "integrity": "sha1-KPFz0EIj6qpZvB1Dmjg25tEmV5c=",
+ "dev": true,
+ "requires": {
+ "chalk": "^2.0.0",
+ "esutils": "^2.0.2",
+ "js-tokens": "^4.0.0"
+ }
},
- "camelcase": {
- "version": "5.3.1",
- "resolved": "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz",
- "integrity": "sha1-48mzFWnhBoEd8kL3FXJaH0xJQyA="
+ "@babel/parser": {
+ "version": "7.8.8",
+ "resolved": "https://registry.yarnpkg.com/@babel/parser/-/parser-7.8.8.tgz",
+ "integrity": "sha1-TDt8422zfgYpvh8NUKVx0vhvbNQ=",
+ "dev": true
},
- "caniuse-lite": {
- "version": "1.0.30001035",
- "resolved": "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001035.tgz",
- "integrity": "sha1-K7U7iqRxay7QjgiNTcgWpf4Imh4="
+ "@babel/plugin-proposal-async-generator-functions": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.8.3.tgz",
+ "integrity": "sha1-utMpxnCzgliXIbJ1QMfSiGAcbm8=",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.3",
+ "@babel/helper-remap-async-to-generator": "^7.8.3",
+ "@babel/plugin-syntax-async-generators": "^7.8.0"
+ }
},
- "canvas": {
- "version": "2.6.1",
- "resolved": "https://registry.yarnpkg.com/canvas/-/canvas-2.6.1.tgz",
- "integrity": "sha1-DQh91NYPWlqe+iAnVycKvqi++J4=",
+ "@babel/plugin-proposal-dynamic-import": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.8.3.tgz",
+ "integrity": "sha1-OMT+VVdEgm6X4q6TCw+0zAfmYFQ=",
+ "dev": true,
"requires": {
- "nan": "2.14.0",
- "node-pre-gyp": "0.11.0",
- "simple-get": "3.1.0"
+ "@babel/helper-plugin-utils": "^7.8.3",
+ "@babel/plugin-syntax-dynamic-import": "^7.8.0"
}
},
- "caseless": {
- "version": "0.12.0",
- "resolved": "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz",
- "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw="
+ "@babel/plugin-proposal-json-strings": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.8.3.tgz",
+ "integrity": "sha1-2lIWsjipi1ih4F1oUhBLEPmnDWs=",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.3",
+ "@babel/plugin-syntax-json-strings": "^7.8.0"
+ }
},
- "chai": {
- "version": "4.2.0",
- "resolved": "https://registry.yarnpkg.com/chai/-/chai-4.2.0.tgz",
- "integrity": "sha1-dgqnLPION5XoSxKHfODoNzeqKeU=",
+ "@babel/plugin-proposal-nullish-coalescing-operator": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.8.3.tgz",
+ "integrity": "sha1-5FciU/3u1lzd7s/as/kor+sv1dI=",
+ "dev": true,
"requires": {
- "assertion-error": "1.1.0",
- "check-error": "1.0.2",
- "deep-eql": "3.0.1",
- "get-func-name": "2.0.0",
- "pathval": "1.1.0",
- "type-detect": "4.0.8"
+ "@babel/helper-plugin-utils": "^7.8.3",
+ "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.0"
}
},
- "chai-as-promised": {
- "version": "7.1.1",
- "resolved": "https://registry.yarnpkg.com/chai-as-promised/-/chai-as-promised-7.1.1.tgz",
- "integrity": "sha1-CGRdgl3rhpbuYXJdv1kMAS6wDKA=",
+ "@babel/plugin-proposal-object-rest-spread": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.8.3.tgz",
+ "integrity": "sha1-61rjZhGN3KZ77Vg7U9dVTK2ZUbs=",
+ "dev": true,
"requires": {
- "check-error": "1.0.2"
+ "@babel/helper-plugin-utils": "^7.8.3",
+ "@babel/plugin-syntax-object-rest-spread": "^7.8.0"
}
},
- "chalk": {
- "version": "2.4.2",
- "resolved": "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz",
- "integrity": "sha1-zUJUFnelQzPPVBpJEIwUMrRMlCQ=",
+ "@babel/plugin-proposal-optional-catch-binding": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.8.3.tgz",
+ "integrity": "sha1-ne6WqxZQ7tiGRq6XNMoWesSpxck=",
+ "dev": true,
"requires": {
- "ansi-styles": "3.2.1",
- "escape-string-regexp": "1.0.5",
- "supports-color": "5.5.0"
- },
- "dependencies": {
- "supports-color": {
- "version": "5.5.0",
- "resolved": "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz",
- "integrity": "sha1-4uaaRKyHcveKHsCzW2id9lMO/I8=",
- "requires": {
- "has-flag": "3.0.0"
- }
- }
+ "@babel/helper-plugin-utils": "^7.8.3",
+ "@babel/plugin-syntax-optional-catch-binding": "^7.8.0"
}
},
- "chardet": {
- "version": "0.7.0",
- "resolved": "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz",
- "integrity": "sha1-kAlISfCTfy7twkJdDSip5fDLrZ4="
+ "@babel/plugin-proposal-optional-chaining": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.8.3.tgz",
+ "integrity": "sha1-rhCzIUyyX3rbHzvIe6QsoQt+JUM=",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.3",
+ "@babel/plugin-syntax-optional-chaining": "^7.8.0"
+ }
},
- "check-error": {
- "version": "1.0.2",
- "resolved": "https://registry.yarnpkg.com/check-error/-/check-error-1.0.2.tgz",
- "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII="
+ "@babel/plugin-proposal-unicode-property-regex": {
+ "version": "7.8.8",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.8.8.tgz",
+ "integrity": "sha1-7jqV6QzcBP6M2S7DJ5+gF9aKDR0=",
+ "dev": true,
+ "requires": {
+ "@babel/helper-create-regexp-features-plugin": "^7.8.8",
+ "@babel/helper-plugin-utils": "^7.8.3"
+ }
},
- "chokidar": {
- "version": "3.3.0",
- "resolved": "https://registry.yarnpkg.com/chokidar/-/chokidar-3.3.0.tgz",
- "integrity": "sha1-EsBxRmjFWAD2WeJi1JYql/r1VKY=",
+ "@babel/plugin-syntax-async-generators": {
+ "version": "7.8.4",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz",
+ "integrity": "sha1-qYP7Gusuw/btBCohD2QOkOeG/g0=",
+ "dev": true,
"requires": {
- "anymatch": "3.1.1",
- "braces": "3.0.2",
- "glob-parent": "5.1.0",
- "is-binary-path": "2.1.0",
- "is-glob": "4.0.1",
- "normalize-path": "3.0.0",
- "readdirp": "3.2.0"
+ "@babel/helper-plugin-utils": "^7.8.0"
}
},
- "chownr": {
- "version": "1.1.4",
- "resolved": "https://registry.yarnpkg.com/chownr/-/chownr-1.1.4.tgz",
- "integrity": "sha1-b8nXtC0ypYNZYzdmbn0ICE2izGs="
+ "@babel/plugin-syntax-dynamic-import": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz",
+ "integrity": "sha1-Yr+Ysto80h1iYVT8lu5bPLaOrLM=",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ }
},
- "clean-stack": {
- "version": "2.2.0",
- "resolved": "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz",
- "integrity": "sha1-7oRy27Ep5yezHooQpCfe6d/kAIs="
+ "@babel/plugin-syntax-json-strings": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz",
+ "integrity": "sha1-AcohtmjNghjJ5kDLbdiMVBKyyWo=",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ }
},
- "cli-cursor": {
- "version": "3.1.0",
- "resolved": "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-3.1.0.tgz",
- "integrity": "sha1-JkMFp65JDR0Dvwybp8kl0XU68wc=",
+ "@babel/plugin-syntax-nullish-coalescing-operator": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz",
+ "integrity": "sha1-Fn7XA2iIYIH3S1w2xlqIwDtm0ak=",
+ "dev": true,
"requires": {
- "restore-cursor": "3.1.0"
+ "@babel/helper-plugin-utils": "^7.8.0"
}
},
- "cli-width": {
- "version": "2.2.0",
- "resolved": "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.0.tgz",
- "integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk="
+ "@babel/plugin-syntax-object-rest-spread": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz",
+ "integrity": "sha1-YOIl7cvZimQDMqLnLdPmbxr1WHE=",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ }
},
- "cliui": {
- "version": "5.0.0",
- "resolved": "https://registry.yarnpkg.com/cliui/-/cliui-5.0.0.tgz",
- "integrity": "sha1-3u/P2y6AB4SqNPRvoI4GhRx7u8U=",
+ "@babel/plugin-syntax-optional-catch-binding": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz",
+ "integrity": "sha1-YRGiZbz7Ag6579D9/X0mQCue1sE=",
+ "dev": true,
"requires": {
- "string-width": "3.1.0",
- "strip-ansi": "5.2.0",
- "wrap-ansi": "5.1.0"
+ "@babel/helper-plugin-utils": "^7.8.0"
}
},
- "code-point-at": {
- "version": "1.1.0",
- "resolved": "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz",
- "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c="
+ "@babel/plugin-syntax-optional-chaining": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz",
+ "integrity": "sha1-T2nCq5UWfgGAzVM2YT+MV4j31Io=",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ }
},
- "color-convert": {
- "version": "1.9.3",
- "resolved": "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz",
- "integrity": "sha1-u3GFBpDh8TZWfeYp0tVHHe2kweg=",
+ "@babel/plugin-syntax-top-level-await": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.8.3.tgz",
+ "integrity": "sha1-Os3s5pXmsTqvV/wpHRqACVDHE5E=",
+ "dev": true,
"requires": {
- "color-name": "1.1.3"
+ "@babel/helper-plugin-utils": "^7.8.3"
}
},
- "color-name": {
- "version": "1.1.3",
- "resolved": "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz",
- "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU="
+ "@babel/plugin-transform-arrow-functions": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.8.3.tgz",
+ "integrity": "sha1-gndsLtDNnhpJlW2uuJYCTJRzuLY=",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.3"
+ }
},
- "colorette": {
- "version": "1.1.0",
- "resolved": "https://registry.yarnpkg.com/colorette/-/colorette-1.1.0.tgz",
- "integrity": "sha1-H5Q+WjV/rBC04PWq7zsUzcGvbsc="
+ "@babel/plugin-transform-async-to-generator": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.8.3.tgz",
+ "integrity": "sha1-Qwj60NlAnXHq+5sabuNfnWS2QIY=",
+ "dev": true,
+ "requires": {
+ "@babel/helper-module-imports": "^7.8.3",
+ "@babel/helper-plugin-utils": "^7.8.3",
+ "@babel/helper-remap-async-to-generator": "^7.8.3"
+ }
},
- "combined-stream": {
- "version": "1.0.8",
- "resolved": "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz",
- "integrity": "sha1-w9RaizT9cwYxoRCoolIGgrMdWn8=",
+ "@babel/plugin-transform-block-scoped-functions": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.8.3.tgz",
+ "integrity": "sha1-Q37sW3mbWFIHIISzrl72boNJ6KM=",
+ "dev": true,
"requires": {
- "delayed-stream": "1.0.0"
+ "@babel/helper-plugin-utils": "^7.8.3"
}
},
- "commander": {
- "version": "2.20.3",
- "resolved": "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz",
- "integrity": "sha1-/UhehMA+tIgcIHIrpIA16FMa6zM="
+ "@babel/plugin-transform-block-scoping": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.8.3.tgz",
+ "integrity": "sha1-l9Ndq2aFekN8FmNYuR0JBQyGjzo=",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.3",
+ "lodash": "^4.17.13"
+ }
},
- "commenting": {
- "version": "1.1.0",
- "resolved": "https://registry.yarnpkg.com/commenting/-/commenting-1.1.0.tgz",
- "integrity": "sha1-+uFDRcZDe4VU8wvGqmweFjMDNZA="
+ "@babel/plugin-transform-classes": {
+ "version": "7.8.6",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.8.6.tgz",
+ "integrity": "sha1-d1NER6R3y+WZWuSu4+OfvICQxG0=",
+ "dev": true,
+ "requires": {
+ "@babel/helper-annotate-as-pure": "^7.8.3",
+ "@babel/helper-define-map": "^7.8.3",
+ "@babel/helper-function-name": "^7.8.3",
+ "@babel/helper-optimise-call-expression": "^7.8.3",
+ "@babel/helper-plugin-utils": "^7.8.3",
+ "@babel/helper-replace-supers": "^7.8.6",
+ "@babel/helper-split-export-declaration": "^7.8.3",
+ "globals": "^11.1.0"
+ }
},
- "commondir": {
- "version": "1.0.1",
- "resolved": "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz",
- "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs="
- },
- "concat-map": {
- "version": "0.0.1",
- "resolved": "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz",
- "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="
- },
- "console-control-strings": {
- "version": "1.1.0",
- "resolved": "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz",
- "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4="
- },
- "convert-source-map": {
- "version": "1.7.0",
- "resolved": "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.7.0.tgz",
- "integrity": "sha1-F6LLiC1/d9NJBYXizmxSRCSjpEI=",
+ "@babel/plugin-transform-computed-properties": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.8.3.tgz",
+ "integrity": "sha1-ltDSi3985OtbEguy4OlDNDyG+Bs=",
+ "dev": true,
"requires": {
- "safe-buffer": "5.1.2"
- },
- "dependencies": {
- "safe-buffer": {
- "version": "5.1.2",
- "resolved": "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz",
- "integrity": "sha1-mR7GnSluAxN0fVm9/St0XDX4go0="
- }
+ "@babel/helper-plugin-utils": "^7.8.3"
}
},
- "core-js": {
- "version": "2.6.11",
- "resolved": "https://registry.yarnpkg.com/core-js/-/core-js-2.6.11.tgz",
- "integrity": "sha1-OIMUafmSK97Y7iHJ3EaYXgOZMIw="
- },
- "core-js-compat": {
- "version": "3.6.4",
- "resolved": "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.6.4.tgz",
- "integrity": "sha1-k4R2Vp67bNqA0zm88Zn65PFv/xc=",
+ "@babel/plugin-transform-destructuring": {
+ "version": "7.8.8",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.8.8.tgz",
+ "integrity": "sha1-+tsryOkMyvVljeb41NIv9icqL0s=",
+ "dev": true,
"requires": {
- "browserslist": "4.9.1",
- "semver": "7.0.0"
- },
- "dependencies": {
- "semver": {
- "version": "7.0.0",
- "resolved": "https://registry.yarnpkg.com/semver/-/semver-7.0.0.tgz",
- "integrity": "sha1-XzyjV2HkfgWyBsba/yz4FPAxa44="
- }
+ "@babel/helper-plugin-utils": "^7.8.3"
}
},
- "core-util-is": {
- "version": "1.0.2",
- "resolved": "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz",
- "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
- },
- "cross-spawn": {
- "version": "7.0.1",
- "resolved": "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.1.tgz",
- "integrity": "sha1-CrVihuD3wk4VPQTMKqAn5DqaXRQ=",
+ "@babel/plugin-transform-dotall-regex": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.8.3.tgz",
+ "integrity": "sha1-w8bsXuYSXGmTxcvKINyGIanqem4=",
+ "dev": true,
"requires": {
- "path-key": "3.1.1",
- "shebang-command": "2.0.0",
- "which": "2.0.2"
- },
- "dependencies": {
- "which": {
- "version": "2.0.2",
- "resolved": "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz",
- "integrity": "sha1-fGqN0KY2oDJ+ELWckobu6T8/UbE=",
- "requires": {
- "isexe": "2.0.0"
- }
- }
+ "@babel/helper-create-regexp-features-plugin": "^7.8.3",
+ "@babel/helper-plugin-utils": "^7.8.3"
}
},
- "cssom": {
- "version": "0.4.4",
- "resolved": "https://registry.yarnpkg.com/cssom/-/cssom-0.4.4.tgz",
- "integrity": "sha1-WmbPk9LQtmHYC/akT7ZfXC5OChA="
- },
- "cssstyle": {
- "version": "2.2.0",
- "resolved": "https://registry.yarnpkg.com/cssstyle/-/cssstyle-2.2.0.tgz",
- "integrity": "sha1-5MRN68zWt5Ee1hekOV5XVLulmZI=",
+ "@babel/plugin-transform-duplicate-keys": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.8.3.tgz",
+ "integrity": "sha1-jRLfMJqlN/JyiZxWXqF2jihuIfE=",
+ "dev": true,
"requires": {
- "cssom": "0.3.8"
- },
- "dependencies": {
- "cssom": {
- "version": "0.3.8",
- "resolved": "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz",
- "integrity": "sha1-nxJ29bK0Y/IRTT8sdSUK+MGjb0o="
- }
+ "@babel/helper-plugin-utils": "^7.8.3"
}
},
- "dashdash": {
- "version": "1.14.1",
- "resolved": "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz",
- "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",
+ "@babel/plugin-transform-exponentiation-operator": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.8.3.tgz",
+ "integrity": "sha1-WBptf1aXDga/UVYM1k9elHtw17c=",
+ "dev": true,
"requires": {
- "assert-plus": "1.0.0"
+ "@babel/helper-builder-binary-assignment-operator-visitor": "^7.8.3",
+ "@babel/helper-plugin-utils": "^7.8.3"
}
},
- "data-urls": {
- "version": "1.1.0",
- "resolved": "https://registry.yarnpkg.com/data-urls/-/data-urls-1.1.0.tgz",
- "integrity": "sha1-Fe4Fgrql4iu1nHcUDaj5x2lju/4=",
+ "@babel/plugin-transform-for-of": {
+ "version": "7.8.6",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.8.6.tgz",
+ "integrity": "sha1-oFG9G0AsYa+Xon/1G0aDIcfCoIU=",
+ "dev": true,
"requires": {
- "abab": "2.0.3",
- "whatwg-mimetype": "2.3.0",
- "whatwg-url": "7.1.0"
+ "@babel/helper-plugin-utils": "^7.8.3"
}
},
- "debug": {
- "version": "4.1.1",
- "resolved": "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz",
- "integrity": "sha1-O3ImAlUQnGtYnO4FDx1RYTlmR5E=",
+ "@babel/plugin-transform-function-name": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.8.3.tgz",
+ "integrity": "sha1-J5NzyycyKqrWfCaD53bfxHGW7Ys=",
+ "dev": true,
"requires": {
- "ms": "2.1.2"
+ "@babel/helper-function-name": "^7.8.3",
+ "@babel/helper-plugin-utils": "^7.8.3"
}
},
- "decamelize": {
- "version": "1.2.0",
- "resolved": "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz",
- "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA="
- },
- "decompress-response": {
- "version": "4.2.1",
- "resolved": "https://registry.yarnpkg.com/decompress-response/-/decompress-response-4.2.1.tgz",
- "integrity": "sha1-QUAjzHowLaJc4uyC0NUjjMr9iYY=",
+ "@babel/plugin-transform-literals": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.8.3.tgz",
+ "integrity": "sha1-rvI5gj2RmU7Hto5VGTUl1229XcE=",
+ "dev": true,
"requires": {
- "mimic-response": "2.1.0"
+ "@babel/helper-plugin-utils": "^7.8.3"
}
},
- "deep-eql": {
- "version": "3.0.1",
- "resolved": "https://registry.yarnpkg.com/deep-eql/-/deep-eql-3.0.1.tgz",
- "integrity": "sha1-38lARACtHI/gI+faHfHBR8S0RN8=",
+ "@babel/plugin-transform-member-expression-literals": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.8.3.tgz",
+ "integrity": "sha1-lj/tS2IKx8v2Apx1VCQCn6OkBBA=",
+ "dev": true,
"requires": {
- "type-detect": "4.0.8"
+ "@babel/helper-plugin-utils": "^7.8.3"
}
},
- "deep-extend": {
- "version": "0.6.0",
- "resolved": "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz",
- "integrity": "sha1-xPp8lUBKF6nD6Mp+FTcxK3NjMKw="
- },
- "deep-is": {
- "version": "0.1.3",
- "resolved": "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz",
- "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ="
- },
- "default-require-extensions": {
- "version": "3.0.0",
- "resolved": "https://registry.yarnpkg.com/default-require-extensions/-/default-require-extensions-3.0.0.tgz",
- "integrity": "sha1-4D+TqsmytkQ/xS5eSjezrZrY35Y=",
+ "@babel/plugin-transform-modules-amd": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.8.3.tgz",
+ "integrity": "sha1-ZWBtRGFrUCJedvVXjzPFaKC4dqU=",
+ "dev": true,
"requires": {
- "strip-bom": "4.0.0"
+ "@babel/helper-module-transforms": "^7.8.3",
+ "@babel/helper-plugin-utils": "^7.8.3",
+ "babel-plugin-dynamic-import-node": "^2.3.0"
}
},
- "define-properties": {
- "version": "1.1.3",
- "resolved": "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz",
- "integrity": "sha1-z4jabL7ib+bbcJT2HYcMvYTO6fE=",
+ "@babel/plugin-transform-modules-commonjs": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.8.3.tgz",
+ "integrity": "sha1-3yUXBuwzG9BYo0vdcmE5FfgpKKU=",
+ "dev": true,
"requires": {
- "object-keys": "1.1.1"
+ "@babel/helper-module-transforms": "^7.8.3",
+ "@babel/helper-plugin-utils": "^7.8.3",
+ "@babel/helper-simple-access": "^7.8.3",
+ "babel-plugin-dynamic-import-node": "^2.3.0"
}
},
- "delayed-stream": {
- "version": "1.0.0",
- "resolved": "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz",
- "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
+ "@babel/plugin-transform-modules-systemjs": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.8.3.tgz",
+ "integrity": "sha1-2LvyIsHb42YfRA8vAMFum7fQ1CA=",
+ "dev": true,
+ "requires": {
+ "@babel/helper-hoist-variables": "^7.8.3",
+ "@babel/helper-module-transforms": "^7.8.3",
+ "@babel/helper-plugin-utils": "^7.8.3",
+ "babel-plugin-dynamic-import-node": "^2.3.0"
+ }
},
- "delegates": {
- "version": "1.0.0",
- "resolved": "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz",
- "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o="
+ "@babel/plugin-transform-modules-umd": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.8.3.tgz",
+ "integrity": "sha1-WS1XjOBsUvW5iwL5E9ZT/+lyZho=",
+ "dev": true,
+ "requires": {
+ "@babel/helper-module-transforms": "^7.8.3",
+ "@babel/helper-plugin-utils": "^7.8.3"
+ }
},
- "detect-libc": {
- "version": "1.0.3",
- "resolved": "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz",
- "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups="
+ "@babel/plugin-transform-named-capturing-groups-regex": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.8.3.tgz",
+ "integrity": "sha1-oqcr/6ICrA4tBQav0JOcXsvEjGw=",
+ "dev": true,
+ "requires": {
+ "@babel/helper-create-regexp-features-plugin": "^7.8.3"
+ }
},
- "diff": {
- "version": "3.5.0",
- "resolved": "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz",
- "integrity": "sha1-gAwN0eCov7yVg1wgKtIg/jF+WhI="
+ "@babel/plugin-transform-new-target": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.8.3.tgz",
+ "integrity": "sha1-YMwq5m2FyVq1QOs0urtkNNTHDEM=",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.3"
+ }
},
- "dir-glob": {
- "version": "3.0.1",
- "resolved": "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz",
- "integrity": "sha1-Vtv3PZkqSpO6FYT0U0Bj/S5BcX8=",
+ "@babel/plugin-transform-object-super": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.8.3.tgz",
+ "integrity": "sha1-67ah56hv+paFi9asAQLWWUQmFyU=",
+ "dev": true,
"requires": {
- "path-type": "4.0.0"
+ "@babel/helper-plugin-utils": "^7.8.3",
+ "@babel/helper-replace-supers": "^7.8.3"
}
},
- "doctrine": {
- "version": "3.0.0",
- "resolved": "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz",
- "integrity": "sha1-rd6+rXKmV023g2OdyHoSF3OXOWE=",
+ "@babel/plugin-transform-parameters": {
+ "version": "7.8.8",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.8.8.tgz",
+ "integrity": "sha1-A4HeRmyF1UBFZSQ2YMRJZFlSXa8=",
+ "dev": true,
"requires": {
- "esutils": "2.0.3"
+ "@babel/helper-call-delegate": "^7.8.7",
+ "@babel/helper-get-function-arity": "^7.8.3",
+ "@babel/helper-plugin-utils": "^7.8.3"
}
},
- "domexception": {
- "version": "1.0.1",
- "resolved": "https://registry.yarnpkg.com/domexception/-/domexception-1.0.1.tgz",
- "integrity": "sha1-k3RCZEymoxJh7zbj7Gd/6AVYLJA=",
+ "@babel/plugin-transform-property-literals": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.8.3.tgz",
+ "integrity": "sha1-MxlDANhTnB7SjGKtUIe6OAe5gmM=",
+ "dev": true,
"requires": {
- "webidl-conversions": "4.0.2"
+ "@babel/helper-plugin-utils": "^7.8.3"
}
},
- "ecc-jsbn": {
- "version": "0.1.2",
- "resolved": "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
- "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=",
+ "@babel/plugin-transform-regenerator": {
+ "version": "7.8.7",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.8.7.tgz",
+ "integrity": "sha1-Xkag3KK+4a2ChesFJ+arycN2cvg=",
+ "dev": true,
"requires": {
- "jsbn": "0.1.1",
- "safer-buffer": "2.1.2"
+ "regenerator-transform": "^0.14.2"
}
},
- "electron-to-chromium": {
- "version": "1.3.376",
- "resolved": "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.376.tgz",
- "integrity": "sha1-fLe1IFVkoGyPjs++gyy9R6EiS7E="
+ "@babel/plugin-transform-reserved-words": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.8.3.tgz",
+ "integrity": "sha1-mgY1rE5mXSmxYoN908xQdF398fU=",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.3"
+ }
},
- "emoji-regex": {
- "version": "7.0.3",
- "resolved": "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz",
- "integrity": "sha1-kzoEBShgyF6DwSJHnEdIqOTHIVY="
+ "@babel/plugin-transform-shorthand-properties": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.8.3.tgz",
+ "integrity": "sha1-KFRSFuAjqDLU06EYXtSSvP6sCMg=",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.3"
+ }
},
- "es-abstract": {
- "version": "1.17.4",
- "resolved": "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.17.4.tgz",
- "integrity": "sha1-467fGXBrIOfCWUw1/A1XYFp54YQ=",
+ "@babel/plugin-transform-spread": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.8.3.tgz",
+ "integrity": "sha1-nI/+gXD9+4ixFOy5ILgvtulf5eg=",
+ "dev": true,
"requires": {
- "es-to-primitive": "1.2.1",
- "function-bind": "1.1.1",
- "has": "1.0.3",
- "has-symbols": "1.0.1",
- "is-callable": "1.1.5",
- "is-regex": "1.0.5",
- "object-inspect": "1.7.0",
- "object-keys": "1.1.1",
- "object.assign": "4.1.0",
- "string.prototype.trimleft": "2.1.1",
- "string.prototype.trimright": "2.1.1"
+ "@babel/helper-plugin-utils": "^7.8.3"
}
},
- "es-to-primitive": {
- "version": "1.2.1",
- "resolved": "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz",
- "integrity": "sha1-5VzUyc3BiLzvsDs2bHNjI/xciYo=",
+ "@babel/plugin-transform-sticky-regex": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.8.3.tgz",
+ "integrity": "sha1-vnoSkPgdrnZ0dUUhmeH3bWF1sQA=",
+ "dev": true,
"requires": {
- "is-callable": "1.1.5",
- "is-date-object": "1.0.2",
- "is-symbol": "1.0.3"
+ "@babel/helper-plugin-utils": "^7.8.3",
+ "@babel/helper-regex": "^7.8.3"
}
},
- "es6-error": {
- "version": "4.1.1",
- "resolved": "https://registry.yarnpkg.com/es6-error/-/es6-error-4.1.1.tgz",
- "integrity": "sha1-njr0B0Wd7tR+mpH5uIWoTrBcVh0="
+ "@babel/plugin-transform-template-literals": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.8.3.tgz",
+ "integrity": "sha1-e/pHMrRV6mpDEwrcC6dn7A5AKoA=",
+ "dev": true,
+ "requires": {
+ "@babel/helper-annotate-as-pure": "^7.8.3",
+ "@babel/helper-plugin-utils": "^7.8.3"
+ }
},
- "escape-string-regexp": {
- "version": "1.0.5",
- "resolved": "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
- "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ="
+ "@babel/plugin-transform-typeof-symbol": {
+ "version": "7.8.4",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.8.4.tgz",
+ "integrity": "sha1-7eQGIxXOCq+KZXqSCFjxovNfxBI=",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.3"
+ }
},
- "escodegen": {
- "version": "1.8.1",
- "resolved": "https://registry.yarnpkg.com/escodegen/-/escodegen-1.8.1.tgz",
- "integrity": "sha1-WltTr0aTEQvrsIZ6o0MN07cKEBg=",
+ "@babel/plugin-transform-unicode-regex": {
+ "version": "7.8.3",
+ "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.8.3.tgz",
+ "integrity": "sha1-DO8247pz5cVyc+/7GC9GuRoeyq0=",
+ "dev": true,
+ "requires": {
+ "@babel/helper-create-regexp-features-plugin": "^7.8.3",
+ "@babel/helper-plugin-utils": "^7.8.3"
+ }
+ },
+ "@babel/polyfill": {
+ "version": "7.8.7",
+ "resolved": "https://registry.yarnpkg.com/@babel/polyfill/-/polyfill-7.8.7.tgz",
+ "integrity": "sha1-FR7CTHE1SBM2Fow72Li/DPkcAy8=",
+ "dev": true,
"requires": {
- "estraverse": "1.9.3",
- "esutils": "2.0.3",
- "esprima": "2.7.3",
- "optionator": "0.8.3"
+ "core-js": "^2.6.5",
+ "regenerator-runtime": "^0.13.4"
+ }
+ },
+ "@babel/preset-env": {
+ "version": "7.8.7",
+ "resolved": "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.8.7.tgz",
+ "integrity": "sha1-H8fYnH910tcMK2do3mwuBJs8uds=",
+ "dev": true,
+ "requires": {
+ "@babel/compat-data": "^7.8.6",
+ "@babel/helper-compilation-targets": "^7.8.7",
+ "@babel/helper-module-imports": "^7.8.3",
+ "@babel/helper-plugin-utils": "^7.8.3",
+ "@babel/plugin-proposal-async-generator-functions": "^7.8.3",
+ "@babel/plugin-proposal-dynamic-import": "^7.8.3",
+ "@babel/plugin-proposal-json-strings": "^7.8.3",
+ "@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
+ "@babel/plugin-proposal-object-rest-spread": "^7.8.3",
+ "@babel/plugin-proposal-optional-catch-binding": "^7.8.3",
+ "@babel/plugin-proposal-optional-chaining": "^7.8.3",
+ "@babel/plugin-proposal-unicode-property-regex": "^7.8.3",
+ "@babel/plugin-syntax-async-generators": "^7.8.0",
+ "@babel/plugin-syntax-dynamic-import": "^7.8.0",
+ "@babel/plugin-syntax-json-strings": "^7.8.0",
+ "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.0",
+ "@babel/plugin-syntax-object-rest-spread": "^7.8.0",
+ "@babel/plugin-syntax-optional-catch-binding": "^7.8.0",
+ "@babel/plugin-syntax-optional-chaining": "^7.8.0",
+ "@babel/plugin-syntax-top-level-await": "^7.8.3",
+ "@babel/plugin-transform-arrow-functions": "^7.8.3",
+ "@babel/plugin-transform-async-to-generator": "^7.8.3",
+ "@babel/plugin-transform-block-scoped-functions": "^7.8.3",
+ "@babel/plugin-transform-block-scoping": "^7.8.3",
+ "@babel/plugin-transform-classes": "^7.8.6",
+ "@babel/plugin-transform-computed-properties": "^7.8.3",
+ "@babel/plugin-transform-destructuring": "^7.8.3",
+ "@babel/plugin-transform-dotall-regex": "^7.8.3",
+ "@babel/plugin-transform-duplicate-keys": "^7.8.3",
+ "@babel/plugin-transform-exponentiation-operator": "^7.8.3",
+ "@babel/plugin-transform-for-of": "^7.8.6",
+ "@babel/plugin-transform-function-name": "^7.8.3",
+ "@babel/plugin-transform-literals": "^7.8.3",
+ "@babel/plugin-transform-member-expression-literals": "^7.8.3",
+ "@babel/plugin-transform-modules-amd": "^7.8.3",
+ "@babel/plugin-transform-modules-commonjs": "^7.8.3",
+ "@babel/plugin-transform-modules-systemjs": "^7.8.3",
+ "@babel/plugin-transform-modules-umd": "^7.8.3",
+ "@babel/plugin-transform-named-capturing-groups-regex": "^7.8.3",
+ "@babel/plugin-transform-new-target": "^7.8.3",
+ "@babel/plugin-transform-object-super": "^7.8.3",
+ "@babel/plugin-transform-parameters": "^7.8.7",
+ "@babel/plugin-transform-property-literals": "^7.8.3",
+ "@babel/plugin-transform-regenerator": "^7.8.7",
+ "@babel/plugin-transform-reserved-words": "^7.8.3",
+ "@babel/plugin-transform-shorthand-properties": "^7.8.3",
+ "@babel/plugin-transform-spread": "^7.8.3",
+ "@babel/plugin-transform-sticky-regex": "^7.8.3",
+ "@babel/plugin-transform-template-literals": "^7.8.3",
+ "@babel/plugin-transform-typeof-symbol": "^7.8.4",
+ "@babel/plugin-transform-unicode-regex": "^7.8.3",
+ "@babel/types": "^7.8.7",
+ "browserslist": "^4.8.5",
+ "core-js-compat": "^3.6.2",
+ "invariant": "^2.2.2",
+ "levenary": "^1.1.1",
+ "semver": "^5.5.0"
+ }
+ },
+ "@babel/register": {
+ "version": "7.8.6",
+ "resolved": "https://registry.yarnpkg.com/@babel/register/-/register-7.8.6.tgz",
+ "integrity": "sha1-oQZqphaKc6cMNe8ozFhlzMCH6mk=",
+ "dev": true,
+ "requires": {
+ "find-cache-dir": "^2.0.0",
+ "lodash": "^4.17.13",
+ "make-dir": "^2.1.0",
+ "pirates": "^4.0.0",
+ "source-map-support": "^0.5.16"
},
"dependencies": {
- "estraverse": {
- "version": "1.9.3",
- "resolved": "https://registry.yarnpkg.com/estraverse/-/estraverse-1.9.3.tgz",
- "integrity": "sha1-r2fy3JIlgkFZUJJgkaQAXSnJu0Q="
- },
- "source-map": {
- "version": "0.2.0",
- "resolved": "https://registry.yarnpkg.com/source-map/-/source-map-0.2.0.tgz",
- "integrity": "sha1-2rc/vPwrqBm03gO9b26qSBZLP50=",
+ "make-dir": {
+ "version": "2.1.0",
+ "resolved": "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz",
+ "integrity": "sha1-XwMQ4YuL6JjMBwCSlaMK5B6R5vU=",
+ "dev": true,
"requires": {
- "amdefine": "1.0.1"
+ "pify": "^4.0.1",
+ "semver": "^5.6.0"
}
}
}
},
- "eslint": {
- "version": "6.8.0",
- "resolved": "https://registry.yarnpkg.com/eslint/-/eslint-6.8.0.tgz",
- "integrity": "sha1-YiYtZylzn5J1cjgkMC+yJ8jJP/s=",
+ "@babel/runtime": {
+ "version": "7.8.7",
+ "resolved": "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.8.7.tgz",
+ "integrity": "sha1-j+/OmALbVIgbpZ+Quyhxm0mWMk0=",
+ "dev": true,
"requires": {
- "@babel/code-frame": "7.8.3",
- "ajv": "6.12.0",
- "chalk": "2.4.2",
- "cross-spawn": "6.0.5",
- "debug": "4.1.1",
- "doctrine": "3.0.0",
- "eslint-scope": "5.0.0",
- "eslint-utils": "1.4.3",
- "eslint-visitor-keys": "1.1.0",
- "espree": "6.2.1",
- "esquery": "1.1.0",
- "esutils": "2.0.3",
- "file-entry-cache": "5.0.1",
- "functional-red-black-tree": "1.0.1",
- "glob-parent": "5.1.0",
- "globals": "12.4.0",
- "ignore": "4.0.6",
- "import-fresh": "3.2.1",
- "imurmurhash": "0.1.4",
- "inquirer": "7.1.0",
- "is-glob": "4.0.1",
- "js-yaml": "3.13.1",
- "json-stable-stringify-without-jsonify": "1.0.1",
- "levn": "0.3.0",
- "lodash": "4.17.15",
- "minimatch": "3.0.4",
- "mkdirp": "0.5.1",
- "natural-compare": "1.4.0",
- "optionator": "0.8.3",
- "progress": "2.0.3",
- "regexpp": "2.0.1",
- "semver": "6.3.0",
- "strip-ansi": "5.2.0",
- "strip-json-comments": "3.0.1",
- "table": "5.4.6",
- "text-table": "0.2.0",
- "v8-compile-cache": "2.1.0"
+ "regenerator-runtime": "^0.13.4"
+ }
+ },
+ "@babel/template": {
+ "version": "7.8.6",
+ "resolved": "https://registry.yarnpkg.com/@babel/template/-/template-7.8.6.tgz",
+ "integrity": "sha1-hrIq8V+CjfsIZHT5ZNzD45xDzis=",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.8.3",
+ "@babel/parser": "^7.8.6",
+ "@babel/types": "^7.8.6"
+ }
+ },
+ "@babel/traverse": {
+ "version": "7.8.6",
+ "resolved": "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.8.6.tgz",
+ "integrity": "sha1-rP4MZOHNmRs+MuroE6brVklUtf8=",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.8.3",
+ "@babel/generator": "^7.8.6",
+ "@babel/helper-function-name": "^7.8.3",
+ "@babel/helper-split-export-declaration": "^7.8.3",
+ "@babel/parser": "^7.8.6",
+ "@babel/types": "^7.8.6",
+ "debug": "^4.1.0",
+ "globals": "^11.1.0",
+ "lodash": "^4.17.13"
+ }
+ },
+ "@babel/types": {
+ "version": "7.8.7",
+ "resolved": "https://registry.yarnpkg.com/@babel/types/-/types-7.8.7.tgz",
+ "integrity": "sha1-H8lynhrLsjN9W2l3pjl5tIGfXR0=",
+ "dev": true,
+ "requires": {
+ "esutils": "^2.0.2",
+ "lodash": "^4.17.13",
+ "to-fast-properties": "^2.0.0"
+ }
+ },
+ "@istanbuljs/load-nyc-config": {
+ "version": "1.0.0",
+ "resolved": "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.0.0.tgz",
+ "integrity": "sha1-EGAt5VcLrqgvivv6JjCyTnqM/ls=",
+ "dev": true,
+ "requires": {
+ "camelcase": "^5.3.1",
+ "find-up": "^4.1.0",
+ "js-yaml": "^3.13.1",
+ "resolve-from": "^5.0.0"
},
"dependencies": {
- "cross-spawn": {
- "version": "6.0.5",
- "resolved": "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz",
- "integrity": "sha1-Sl7Hxk364iw6FBJNus3uhG2Ay8Q=",
+ "find-up": {
+ "version": "4.1.0",
+ "resolved": "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz",
+ "integrity": "sha1-l6/n1s3AvFkoWEt8jXsW6KmqXRk=",
+ "dev": true,
"requires": {
- "nice-try": "1.0.5",
- "path-key": "2.0.1",
- "semver": "5.7.1",
- "shebang-command": "1.2.0",
- "which": "1.3.1"
- },
- "dependencies": {
- "semver": {
- "version": "5.7.1",
- "resolved": "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz",
- "integrity": "sha1-qVT5Ma66UI0we78Gnv8MAclhFvc="
- }
+ "locate-path": "^5.0.0",
+ "path-exists": "^4.0.0"
}
},
- "globals": {
- "version": "12.4.0",
- "resolved": "https://registry.yarnpkg.com/globals/-/globals-12.4.0.tgz",
- "integrity": "sha1-oYgTV2pBsAokqX5/gVkYwuGZJfg=",
+ "locate-path": {
+ "version": "5.0.0",
+ "resolved": "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz",
+ "integrity": "sha1-Gvujlq/WdqbUJQTQpno6frn2KqA=",
+ "dev": true,
"requires": {
- "type-fest": "0.8.1"
+ "p-locate": "^4.1.0"
}
},
- "path-key": {
- "version": "2.0.1",
- "resolved": "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz",
- "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A="
- },
- "semver": {
- "version": "6.3.0",
- "resolved": "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz",
- "integrity": "sha1-7gpkyK9ejO6mdoexM3YeG+y9HT0="
- },
- "shebang-command": {
- "version": "1.2.0",
- "resolved": "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz",
- "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=",
+ "p-locate": {
+ "version": "4.1.0",
+ "resolved": "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz",
+ "integrity": "sha1-o0KLtwiLOmApL2aRkni3wpetTwc=",
+ "dev": true,
"requires": {
- "shebang-regex": "1.0.0"
+ "p-limit": "^2.2.0"
}
},
- "shebang-regex": {
- "version": "1.0.0",
- "resolved": "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz",
- "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM="
- },
- "strip-json-comments": {
- "version": "3.0.1",
- "resolved": "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.0.1.tgz",
- "integrity": "sha1-hXE5dakfuHvxswXMp3OV5A0qZKc="
+ "path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha1-UTvb4tO5XXdi6METfvoZXGxhtbM=",
+ "dev": true
}
}
},
- "eslint-scope": {
- "version": "5.0.0",
- "resolved": "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.0.0.tgz",
- "integrity": "sha1-6HyIh8c+jR7ITxylkWRcNYv8j7k=",
- "requires": {
- "esrecurse": "4.2.1",
- "estraverse": "4.3.0"
- }
+ "@istanbuljs/schema": {
+ "version": "0.1.2",
+ "resolved": "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.2.tgz",
+ "integrity": "sha1-JlIL8Jq+SlZEzVQU43ElqJVCQd0=",
+ "dev": true
},
- "eslint-utils": {
- "version": "1.4.3",
- "resolved": "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.4.3.tgz",
- "integrity": "sha1-dP7HxU0Hdrb2fgJRBAtYBlZOmB8=",
+ "@nodelib/fs.scandir": {
+ "version": "2.1.3",
+ "resolved": "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.3.tgz",
+ "integrity": "sha1-Olgr21OATGum0UZXnEblITDPSjs=",
+ "dev": true,
"requires": {
- "eslint-visitor-keys": "1.1.0"
+ "@nodelib/fs.stat": "2.0.3",
+ "run-parallel": "^1.1.9"
}
},
- "eslint-visitor-keys": {
- "version": "1.1.0",
- "resolved": "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz",
- "integrity": "sha1-4qgs6oT/JGrW+1f5veW0ZiFFnsI="
+ "@nodelib/fs.stat": {
+ "version": "2.0.3",
+ "resolved": "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.3.tgz",
+ "integrity": "sha1-NNxfTKu8cg9OYPdadH5+zWwXW9M=",
+ "dev": true
},
- "espree": {
- "version": "6.2.1",
- "resolved": "https://registry.yarnpkg.com/espree/-/espree-6.2.1.tgz",
- "integrity": "sha1-d/xy4f10SiBSwg84pbV1gy6Cc0o=",
+ "@nodelib/fs.walk": {
+ "version": "1.2.4",
+ "resolved": "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.4.tgz",
+ "integrity": "sha1-ARuSAqcKY2bkNspcBlhEUoqwSXY=",
+ "dev": true,
"requires": {
- "acorn": "7.1.1",
- "acorn-jsx": "5.2.0",
- "eslint-visitor-keys": "1.1.0"
+ "@nodelib/fs.scandir": "2.1.3",
+ "fastq": "^1.6.0"
}
},
- "esprima": {
- "version": "2.7.3",
- "resolved": "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz",
- "integrity": "sha1-luO3DVd59q1JzQMmc9HDEnZ7pYE="
+ "@types/color-name": {
+ "version": "1.1.1",
+ "resolved": "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz",
+ "integrity": "sha1-HBJhu+qhCoBVu8XYq4S3sq/IRqA=",
+ "dev": true
},
- "esquery": {
- "version": "1.1.0",
- "resolved": "https://registry.yarnpkg.com/esquery/-/esquery-1.1.0.tgz",
- "integrity": "sha1-xcC2bzg+dlZAT4azEzTXJSTt20g=",
+ "@types/events": {
+ "version": "3.0.0",
+ "resolved": "https://registry.yarnpkg.com/@types/events/-/events-3.0.0.tgz",
+ "integrity": "sha1-KGLz9Yqaf3w+eNefEw3U1xwlwqc=",
+ "dev": true
+ },
+ "@types/fs-extra": {
+ "version": "8.1.0",
+ "resolved": "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-8.1.0.tgz",
+ "integrity": "sha1-ERSDS1PDkUgGzQOzMEs3s70iGk0=",
+ "dev": true,
"requires": {
- "estraverse": "4.3.0"
+ "@types/node": "*"
}
},
- "esrecurse": {
- "version": "4.2.1",
- "resolved": "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.2.1.tgz",
- "integrity": "sha1-AHo7n9vCs7uH5IeeoZyS/b05Qs8=",
+ "@types/glob": {
+ "version": "7.1.1",
+ "resolved": "https://registry.yarnpkg.com/@types/glob/-/glob-7.1.1.tgz",
+ "integrity": "sha1-qlmhxuP7xCHgfM0xqUTDDrpSFXU=",
+ "dev": true,
"requires": {
- "estraverse": "4.3.0"
+ "@types/events": "*",
+ "@types/minimatch": "*",
+ "@types/node": "*"
}
},
- "estraverse": {
- "version": "4.3.0",
- "resolved": "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz",
- "integrity": "sha1-OYrT88WiSUi+dyXoPRGn3ijNvR0="
+ "@types/minimatch": {
+ "version": "3.0.3",
+ "resolved": "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz",
+ "integrity": "sha1-PcoOPzOyAPx9ETnAzZbBJoyt/Z0=",
+ "dev": true
},
- "estree-walker": {
- "version": "0.6.1",
- "resolved": "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.6.1.tgz",
- "integrity": "sha1-UwSRQ/QMbrkYsjZx0f4yGfOhs2I="
+ "@types/node": {
+ "version": "13.9.1",
+ "resolved": "https://registry.yarnpkg.com/@types/node/-/node-13.9.1.tgz",
+ "integrity": "sha1-lvYG+M1n+wGIR9m2HpOZfave/HI=",
+ "dev": true
},
- "esutils": {
+ "abab": {
"version": "2.0.3",
- "resolved": "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz",
- "integrity": "sha1-dNLrTeC42hKTcRkQ1Qd1ubcQ72Q="
+ "resolved": "https://registry.yarnpkg.com/abab/-/abab-2.0.3.tgz",
+ "integrity": "sha1-Yj4gdeAustPyR15J+ZyRhGRnkHo=",
+ "dev": true
},
- "extend": {
- "version": "3.0.2",
- "resolved": "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz",
- "integrity": "sha1-+LETa0Bx+9jrFAr/hYsQGewpFfo="
+ "abbrev": {
+ "version": "1.1.1",
+ "resolved": "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz",
+ "integrity": "sha1-+PLIh60Qv2f2NPAFtph/7TF5qsg=",
+ "dev": true
},
- "external-editor": {
- "version": "3.1.0",
- "resolved": "https://registry.yarnpkg.com/external-editor/-/external-editor-3.1.0.tgz",
- "integrity": "sha1-ywP3QL764D6k0oPK7SdBqD8zVJU=",
+ "acorn": {
+ "version": "7.1.1",
+ "resolved": "https://registry.yarnpkg.com/acorn/-/acorn-7.1.1.tgz",
+ "integrity": "sha1-41Zo3gtALzWd5RXFSCoaufiaab8=",
+ "dev": true
+ },
+ "acorn-dynamic-import": {
+ "version": "3.0.0",
+ "resolved": "https://registry.yarnpkg.com/acorn-dynamic-import/-/acorn-dynamic-import-3.0.0.tgz",
+ "integrity": "sha1-kBzu5Mf6rvfgetKkfokGddpQong=",
+ "dev": true,
"requires": {
- "chardet": "0.7.0",
- "iconv-lite": "0.4.24",
- "tmp": "0.0.33"
+ "acorn": "^5.0.0"
+ },
+ "dependencies": {
+ "acorn": {
+ "version": "5.7.4",
+ "resolved": "https://registry.yarnpkg.com/acorn/-/acorn-5.7.4.tgz",
+ "integrity": "sha1-Po2KmUfQWZoXltECJddDL0pKz14=",
+ "dev": true
+ }
}
},
- "extsprintf": {
- "version": "1.3.0",
- "resolved": "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz",
- "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU="
- },
- "fast-deep-equal": {
- "version": "3.1.1",
- "resolved": "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz",
- "integrity": "sha1-VFFFB3xQFJHjOxXsQIwpQ3bpSuQ="
+ "acorn-es7-plugin": {
+ "version": "1.1.7",
+ "resolved": "https://registry.yarnpkg.com/acorn-es7-plugin/-/acorn-es7-plugin-1.1.7.tgz",
+ "integrity": "sha1-8u4fMiipDurRJF+asZIusucdM2s=",
+ "dev": true
},
- "fast-glob": {
- "version": "3.2.2",
- "resolved": "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.2.tgz",
- "integrity": "sha1-reGp2RFIll1L98UfcuHKZi0y5j0=",
+ "acorn-globals": {
+ "version": "4.3.4",
+ "resolved": "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-4.3.4.tgz",
+ "integrity": "sha1-n6GSat3BHJcwjE5m163Q1Awycuc=",
+ "dev": true,
"requires": {
- "@nodelib/fs.stat": "2.0.3",
- "@nodelib/fs.walk": "1.2.4",
- "glob-parent": "5.1.0",
- "merge2": "1.3.0",
- "micromatch": "4.0.2",
- "picomatch": "2.2.1"
+ "acorn": "^6.0.1",
+ "acorn-walk": "^6.0.1"
+ },
+ "dependencies": {
+ "acorn": {
+ "version": "6.4.1",
+ "resolved": "https://registry.yarnpkg.com/acorn/-/acorn-6.4.1.tgz",
+ "integrity": "sha1-Ux5Yuj9RudrLmmZGyk3r9bFMpHQ=",
+ "dev": true
+ }
}
},
- "fast-json-stable-stringify": {
- "version": "2.1.0",
- "resolved": "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
- "integrity": "sha1-h0v2nG9ATCtdmcSBNBOZ/VWJJjM="
- },
- "fast-levenshtein": {
- "version": "2.0.6",
- "resolved": "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
- "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc="
+ "acorn-jsx": {
+ "version": "5.2.0",
+ "resolved": "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.2.0.tgz",
+ "integrity": "sha1-TGYGkXPW/daO2FI5/CViJhgrLr4=",
+ "dev": true
},
- "fastq": {
- "version": "1.6.1",
- "resolved": "https://registry.yarnpkg.com/fastq/-/fastq-1.6.1.tgz",
- "integrity": "sha1-RXDHTy3tFz5xzwvrCKxwu4WCZ5E=",
- "requires": {
- "reusify": "1.0.4"
- }
+ "acorn-walk": {
+ "version": "6.2.0",
+ "resolved": "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-6.2.0.tgz",
+ "integrity": "sha1-Ejy487hMIXHx9/slJhWxx4prGow=",
+ "dev": true
},
- "figures": {
- "version": "3.2.0",
- "resolved": "https://registry.yarnpkg.com/figures/-/figures-3.2.0.tgz",
- "integrity": "sha1-YlwYvSk8YE3EqN2y/r8MiDQXRq8=",
+ "aggregate-error": {
+ "version": "3.0.1",
+ "resolved": "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.0.1.tgz",
+ "integrity": "sha1-2y/nJG5Tb0DZtUQqOeEX191qJOA=",
+ "dev": true,
"requires": {
- "escape-string-regexp": "1.0.5"
+ "clean-stack": "^2.0.0",
+ "indent-string": "^4.0.0"
}
},
- "file-entry-cache": {
- "version": "5.0.1",
- "resolved": "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-5.0.1.tgz",
- "integrity": "sha1-yg9u+m3T1WEzP7FFFQZcL6/fQ5w=",
+ "ajv": {
+ "version": "6.12.0",
+ "resolved": "https://registry.yarnpkg.com/ajv/-/ajv-6.12.0.tgz",
+ "integrity": "sha1-BtYLlth7hFSlrauobnhU2mKdtLc=",
+ "dev": true,
"requires": {
- "flat-cache": "2.0.1"
+ "fast-deep-equal": "^3.1.1",
+ "fast-json-stable-stringify": "^2.0.0",
+ "json-schema-traverse": "^0.4.1",
+ "uri-js": "^4.2.2"
}
},
- "fill-range": {
- "version": "7.0.1",
- "resolved": "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz",
- "integrity": "sha1-GRmmp8df44ssfHflGYU12prN2kA=",
- "requires": {
- "to-regex-range": "5.0.1"
- }
+ "ansi-colors": {
+ "version": "3.2.3",
+ "resolved": "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-3.2.3.tgz",
+ "integrity": "sha1-V9NbhoboUeLMBMQD8cACA5dqGBM=",
+ "dev": true
},
- "find-cache-dir": {
- "version": "2.1.0",
- "resolved": "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-2.1.0.tgz",
- "integrity": "sha1-jQ+UzRP+Q8bHwmGg2GEVypGMBfc=",
+ "ansi-escapes": {
+ "version": "4.3.1",
+ "resolved": "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.1.tgz",
+ "integrity": "sha1-pcR8xDGB8fOP/XB2g3cA05VSKmE=",
+ "dev": true,
"requires": {
- "commondir": "1.0.1",
- "make-dir": "2.1.0",
- "pkg-dir": "3.0.0"
+ "type-fest": "^0.11.0"
},
"dependencies": {
- "make-dir": {
- "version": "2.1.0",
- "resolved": "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz",
- "integrity": "sha1-XwMQ4YuL6JjMBwCSlaMK5B6R5vU=",
- "requires": {
- "pify": "4.0.1",
- "semver": "5.7.1"
- }
+ "type-fest": {
+ "version": "0.11.0",
+ "resolved": "https://registry.yarnpkg.com/type-fest/-/type-fest-0.11.0.tgz",
+ "integrity": "sha1-l6vwhyMQ/tiKXEZrJWgVdhReM/E=",
+ "dev": true
}
}
},
- "find-up": {
- "version": "3.0.0",
- "resolved": "https://registry.yarnpkg.com/find-up/-/find-up-3.0.0.tgz",
- "integrity": "sha1-SRafHXmTQwZG2mHsxa41XCHJe3M=",
- "requires": {
- "locate-path": "3.0.0"
- }
- },
- "flat": {
+ "ansi-regex": {
"version": "4.1.0",
- "resolved": "https://registry.yarnpkg.com/flat/-/flat-4.1.0.tgz",
- "integrity": "sha1-CQvsiwXjnLowl0fx1YjwTbr5jbI=",
- "requires": {
- "is-buffer": "2.0.4"
- }
+ "resolved": "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz",
+ "integrity": "sha1-i5+PCM8ay4Q3Vqg5yox+MWjFGZc=",
+ "dev": true
},
- "flat-cache": {
- "version": "2.0.1",
- "resolved": "https://registry.yarnpkg.com/flat-cache/-/flat-cache-2.0.1.tgz",
- "integrity": "sha1-XSltbwS9pEpGMKMBQTvbwuwIXsA=",
+ "ansi-styles": {
+ "version": "3.2.1",
+ "resolved": "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz",
+ "integrity": "sha1-QfuyAkPlCxK+DwS43tvwdSDOhB0=",
+ "dev": true,
"requires": {
- "flatted": "2.0.1",
- "rimraf": "2.6.3",
- "write": "1.0.3"
- },
- "dependencies": {
- "rimraf": {
- "version": "2.6.3",
- "resolved": "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz",
- "integrity": "sha1-stEE/g2Psnz54KHNqCYt04M8bKs=",
- "requires": {
- "glob": "7.1.6"
- }
- }
+ "color-convert": "^1.9.0"
}
},
- "flatted": {
- "version": "2.0.1",
- "resolved": "https://registry.yarnpkg.com/flatted/-/flatted-2.0.1.tgz",
- "integrity": "sha1-aeV8qo8OrLwoHS4stFjUb9tEngg="
- },
- "foreground-child": {
- "version": "2.0.0",
- "resolved": "https://registry.yarnpkg.com/foreground-child/-/foreground-child-2.0.0.tgz",
- "integrity": "sha1-cbMoAMnxWqjy+D9Ka9m/812GGlM=",
+ "anymatch": {
+ "version": "3.1.1",
+ "resolved": "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.1.tgz",
+ "integrity": "sha1-xV7PAhheJGklk5kxDBc84xIzsUI=",
+ "dev": true,
"requires": {
- "cross-spawn": "7.0.1",
- "signal-exit": "3.0.2"
+ "normalize-path": "^3.0.0",
+ "picomatch": "^2.0.4"
}
},
- "forever-agent": {
- "version": "0.6.1",
- "resolved": "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz",
- "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE="
- },
- "form-data": {
- "version": "2.3.3",
- "resolved": "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz",
- "integrity": "sha1-3M5SwF9kTymManq5Nr1yTO/786Y=",
+ "append-transform": {
+ "version": "2.0.0",
+ "resolved": "https://registry.yarnpkg.com/append-transform/-/append-transform-2.0.0.tgz",
+ "integrity": "sha1-mdnSnHs4OR5vQo0ozhNlUfC3fhI=",
+ "dev": true,
"requires": {
- "asynckit": "0.4.0",
- "combined-stream": "1.0.8",
- "mime-types": "2.1.26"
+ "default-require-extensions": "^3.0.0"
}
},
- "fromentries": {
+ "aproba": {
"version": "1.2.0",
- "resolved": "https://registry.yarnpkg.com/fromentries/-/fromentries-1.2.0.tgz",
- "integrity": "sha1-5qoG8kDWJn+RPOpCIHXviLY+eJc="
+ "resolved": "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz",
+ "integrity": "sha1-aALmJk79GMeQobDVF/DyYnvyyUo=",
+ "dev": true
},
- "fs-extra": {
- "version": "8.1.0",
- "resolved": "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz",
- "integrity": "sha1-SdQ8RaiM2Wd2aMt74bRu/bjS4cA=",
+ "archy": {
+ "version": "1.0.0",
+ "resolved": "https://registry.yarnpkg.com/archy/-/archy-1.0.0.tgz",
+ "integrity": "sha1-+cjBN1fMHde8N5rHeyxipcKGjEA=",
+ "dev": true
+ },
+ "are-we-there-yet": {
+ "version": "1.1.5",
+ "resolved": "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz",
+ "integrity": "sha1-SzXClE8GKov82mZBB2A1D+nd/CE=",
+ "dev": true,
"requires": {
- "graceful-fs": "4.2.3",
- "jsonfile": "4.0.0",
- "universalify": "0.1.2"
+ "delegates": "^1.0.0",
+ "readable-stream": "^2.0.6"
}
},
- "fs-minipass": {
- "version": "1.2.7",
- "resolved": "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.7.tgz",
- "integrity": "sha1-zP+FcIQef+QmVpPaiJNsVa7X98c=",
+ "argparse": {
+ "version": "1.0.10",
+ "resolved": "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz",
+ "integrity": "sha1-vNZ5HqWuCXJeF+WtmIE0zUCz2RE=",
+ "dev": true,
"requires": {
- "minipass": "2.9.0"
+ "sprintf-js": "~1.0.2"
}
},
- "fs.realpath": {
+ "array-equal": {
"version": "1.0.0",
- "resolved": "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz",
- "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8="
- },
- "fsevents": {
- "version": "2.1.2",
- "resolved": "https://registry.yarnpkg.com/fsevents/-/fsevents-2.1.2.tgz",
- "integrity": "sha1-TAofs0vGjlQ7S4Kp7Dkr+9qECAU="
+ "resolved": "https://registry.yarnpkg.com/array-equal/-/array-equal-1.0.0.tgz",
+ "integrity": "sha1-jCpe8kcv2ep0KwTHenUJO6J1fJM=",
+ "dev": true
},
- "function-bind": {
- "version": "1.1.1",
- "resolved": "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz",
- "integrity": "sha1-pWiZ0+o8m6uHS7l3O3xe3pL0iV0="
+ "array-find-index": {
+ "version": "1.0.2",
+ "resolved": "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz",
+ "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=",
+ "dev": true
},
- "functional-red-black-tree": {
- "version": "1.0.1",
- "resolved": "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz",
- "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc="
+ "array-union": {
+ "version": "2.1.0",
+ "resolved": "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz",
+ "integrity": "sha1-t5hCCtvrHego2ErNii4j0+/oXo0=",
+ "dev": true
},
- "gauge": {
- "version": "2.7.4",
- "resolved": "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz",
- "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=",
+ "asn1": {
+ "version": "0.2.4",
+ "resolved": "https://registry.yarnpkg.com/asn1/-/asn1-0.2.4.tgz",
+ "integrity": "sha1-jSR136tVO7M+d7VOWeiAu4ziMTY=",
+ "dev": true,
"requires": {
- "aproba": "1.2.0",
- "console-control-strings": "1.1.0",
- "has-unicode": "2.0.1",
- "object-assign": "4.1.1",
- "signal-exit": "3.0.2",
- "string-width": "1.0.2",
- "strip-ansi": "3.0.1",
- "wide-align": "1.1.3"
- },
- "dependencies": {
- "ansi-regex": {
- "version": "2.1.1",
- "resolved": "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz",
- "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8="
- },
- "is-fullwidth-code-point": {
- "version": "1.0.0",
- "resolved": "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
- "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
- "requires": {
- "number-is-nan": "1.0.1"
- }
- },
- "string-width": {
- "version": "1.0.2",
- "resolved": "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz",
- "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
- "requires": {
- "code-point-at": "1.1.0",
- "is-fullwidth-code-point": "1.0.0",
- "strip-ansi": "3.0.1"
- }
- },
- "strip-ansi": {
- "version": "3.0.1",
- "resolved": "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz",
- "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
- "requires": {
- "ansi-regex": "2.1.1"
- }
- }
+ "safer-buffer": "~2.1.0"
}
},
- "gensync": {
- "version": "1.0.0-beta.1",
- "resolved": "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.1.tgz",
- "integrity": "sha1-WPQ2H/mH5f9uHnohCCeqNx6qwmk="
+ "assert-plus": {
+ "version": "1.0.0",
+ "resolved": "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz",
+ "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=",
+ "dev": true
},
- "get-caller-file": {
- "version": "2.0.5",
- "resolved": "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz",
- "integrity": "sha1-T5RBKoLbMvNuOwuXQfipf+sDH34="
+ "assertion-error": {
+ "version": "1.1.0",
+ "resolved": "https://registry.yarnpkg.com/assertion-error/-/assertion-error-1.1.0.tgz",
+ "integrity": "sha1-5gtrDo8wG9l+U3UhW9pAbIURjAs=",
+ "dev": true
},
- "get-func-name": {
- "version": "2.0.0",
- "resolved": "https://registry.yarnpkg.com/get-func-name/-/get-func-name-2.0.0.tgz",
- "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE="
+ "astral-regex": {
+ "version": "1.0.0",
+ "resolved": "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz",
+ "integrity": "sha1-bIw/uCfdQ+45GPJ7gngqt2WKb9k=",
+ "dev": true
},
- "getpass": {
- "version": "0.1.7",
- "resolved": "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz",
- "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
- "requires": {
- "assert-plus": "1.0.0"
- }
+ "async": {
+ "version": "1.5.2",
+ "resolved": "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz",
+ "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=",
+ "dev": true
},
- "glob": {
- "version": "7.1.6",
- "resolved": "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz",
- "integrity": "sha1-FB8zuBp8JJLhJVlDB0gMRmeSeKY=",
+ "asynckit": {
+ "version": "0.4.0",
+ "resolved": "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz",
+ "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=",
+ "dev": true
+ },
+ "aws-sign2": {
+ "version": "0.7.0",
+ "resolved": "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz",
+ "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=",
+ "dev": true
+ },
+ "aws4": {
+ "version": "1.9.1",
+ "resolved": "https://registry.yarnpkg.com/aws4/-/aws4-1.9.1.tgz",
+ "integrity": "sha1-fjPY99RJs/ZzzXLeuavcVS2+Uo4=",
+ "dev": true
+ },
+ "babel-eslint": {
+ "version": "10.1.0",
+ "resolved": "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.1.0.tgz",
+ "integrity": "sha1-aWjlaKkQt4+zd5zdi2rC9HmUMjI=",
+ "dev": true,
"requires": {
- "fs.realpath": "1.0.0",
- "inflight": "1.0.6",
- "inherits": "2.0.4",
- "minimatch": "3.0.4",
- "once": "1.4.0",
- "path-is-absolute": "1.0.1"
+ "@babel/code-frame": "^7.0.0",
+ "@babel/parser": "^7.7.0",
+ "@babel/traverse": "^7.7.0",
+ "@babel/types": "^7.7.0",
+ "eslint-visitor-keys": "^1.0.0",
+ "resolve": "^1.12.0"
}
},
- "glob-parent": {
- "version": "5.1.0",
- "resolved": "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.0.tgz",
- "integrity": "sha1-X0wdHnSNMM1zrSlEs1d6gbCB6MI=",
+ "babel-plugin-dynamic-import-node": {
+ "version": "2.3.0",
+ "resolved": "https://registry.yarnpkg.com/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.0.tgz",
+ "integrity": "sha1-8A9Qe9qjw+P/bn5emNkKesq5b38=",
+ "dev": true,
"requires": {
- "is-glob": "4.0.1"
+ "object.assign": "^4.1.0"
}
},
- "globals": {
- "version": "11.12.0",
- "resolved": "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz",
- "integrity": "sha1-q4eVM4hooLq9hSV1gBjCp+uVxC4="
- },
- "globby": {
- "version": "10.0.1",
- "resolved": "https://registry.yarnpkg.com/globby/-/globby-10.0.1.tgz",
- "integrity": "sha1-R4LDTLdd1oM1EzXFgpzDQg5gayI=",
+ "babel-plugin-istanbul": {
+ "version": "6.0.0",
+ "resolved": "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-6.0.0.tgz",
+ "integrity": "sha1-4VnM3Jr5XgtXDHW0Vzt8NNZx12U=",
+ "dev": true,
"requires": {
- "@types/glob": "7.1.1",
- "array-union": "2.1.0",
- "dir-glob": "3.0.1",
- "fast-glob": "3.2.2",
- "glob": "7.1.6",
- "ignore": "5.1.4",
- "merge2": "1.3.0",
- "slash": "3.0.0"
- },
- "dependencies": {
- "ignore": {
- "version": "5.1.4",
- "resolved": "https://registry.yarnpkg.com/ignore/-/ignore-5.1.4.tgz",
- "integrity": "sha1-hLez2+ZFUrbvDsqZ9nQ9vsbZet8="
- }
+ "@babel/helper-plugin-utils": "^7.0.0",
+ "@istanbuljs/load-nyc-config": "^1.0.0",
+ "@istanbuljs/schema": "^0.1.2",
+ "istanbul-lib-instrument": "^4.0.0",
+ "test-exclude": "^6.0.0"
}
},
- "graceful-fs": {
- "version": "4.2.3",
- "resolved": "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.3.tgz",
- "integrity": "sha1-ShL/G2A3bvCYYsIJPt2Qgyi+hCM="
- },
- "growl": {
- "version": "1.10.5",
- "resolved": "https://registry.yarnpkg.com/growl/-/growl-1.10.5.tgz",
- "integrity": "sha1-8nNdwig2dPpnR4sQGBBZNVw2nl4="
+ "balanced-match": {
+ "version": "1.0.0",
+ "resolved": "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz",
+ "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
+ "dev": true
},
- "handlebars": {
- "version": "4.7.3",
- "resolved": "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.3.tgz",
- "integrity": "sha1-js4nl4Johs+AgtFyb/IdKgIlUO4=",
+ "bcrypt-pbkdf": {
+ "version": "1.0.2",
+ "resolved": "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",
+ "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=",
+ "dev": true,
"requires": {
- "neo-async": "2.6.1",
- "optimist": "0.6.1",
- "source-map": "0.6.1"
+ "tweetnacl": "^0.14.3"
}
},
- "har-schema": {
+ "binary-extensions": {
"version": "2.0.0",
- "resolved": "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz",
- "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI="
+ "resolved": "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.0.0.tgz",
+ "integrity": "sha1-I8DfFPaogHf1+YbA0WfsA8PVU3w=",
+ "dev": true
},
- "har-validator": {
- "version": "5.1.3",
- "resolved": "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.3.tgz",
- "integrity": "sha1-HvievT5JllV2de7ZiTEQ3DUPoIA=",
+ "brace-expansion": {
+ "version": "1.1.11",
+ "resolved": "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz",
+ "integrity": "sha1-PH/L9SnYcibz0vUrlm/1Jx60Qd0=",
+ "dev": true,
"requires": {
- "ajv": "6.12.0",
- "har-schema": "2.0.0"
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
}
},
- "has": {
- "version": "1.0.3",
- "resolved": "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz",
- "integrity": "sha1-ci18v8H2qoJB8W3YFOAR4fQeh5Y=",
+ "braces": {
+ "version": "3.0.2",
+ "resolved": "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz",
+ "integrity": "sha1-NFThpGLujVmeI23zNs2epPiv4Qc=",
+ "dev": true,
"requires": {
- "function-bind": "1.1.1"
+ "fill-range": "^7.0.1"
}
},
- "has-flag": {
- "version": "3.0.0",
- "resolved": "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz",
- "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0="
- },
- "has-symbols": {
- "version": "1.0.1",
- "resolved": "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.1.tgz",
- "integrity": "sha1-n1IUdYpEGWxAbZvXbOv4HsLdMeg="
+ "browser-process-hrtime": {
+ "version": "1.0.0",
+ "resolved": "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz",
+ "integrity": "sha1-PJtLfXgsgSHlbxAQbYTA0P/JRiY=",
+ "dev": true
},
- "has-unicode": {
- "version": "2.0.1",
- "resolved": "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz",
- "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk="
+ "browser-stdout": {
+ "version": "1.3.1",
+ "resolved": "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.1.tgz",
+ "integrity": "sha1-uqVZ7hTO1zRSIputcyZGfGH6vWA=",
+ "dev": true
},
- "hasha": {
- "version": "5.2.0",
- "resolved": "https://registry.yarnpkg.com/hasha/-/hasha-5.2.0.tgz",
- "integrity": "sha1-MwlNH2nECkpqx75T1f4/+Vomngw=",
+ "browserslist": {
+ "version": "4.9.1",
+ "resolved": "https://registry.yarnpkg.com/browserslist/-/browserslist-4.9.1.tgz",
+ "integrity": "sha1-Af+5yjGhrvdngSj8aiJTMWqnKHw=",
+ "dev": true,
"requires": {
- "is-stream": "2.0.0",
- "type-fest": "0.8.1"
+ "caniuse-lite": "^1.0.30001030",
+ "electron-to-chromium": "^1.3.363",
+ "node-releases": "^1.1.50"
}
},
- "he": {
- "version": "1.2.0",
- "resolved": "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz",
- "integrity": "sha1-hK5l+n6vsWX922FWauFLrwVmTw8="
+ "buffer-from": {
+ "version": "1.1.1",
+ "resolved": "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz",
+ "integrity": "sha1-MnE7wCj3XAL9txDXx7zsHyxgcO8=",
+ "dev": true
},
- "html-encoding-sniffer": {
- "version": "1.0.2",
- "resolved": "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz",
- "integrity": "sha1-5w2EuU2lOqN14R/jo1G+ZkLKRvg=",
+ "caching-transform": {
+ "version": "4.0.0",
+ "resolved": "https://registry.yarnpkg.com/caching-transform/-/caching-transform-4.0.0.tgz",
+ "integrity": "sha1-ANKXpCBtceIWPDnq/6gVesBlHw8=",
+ "dev": true,
"requires": {
- "whatwg-encoding": "1.0.5"
+ "hasha": "^5.0.0",
+ "make-dir": "^3.0.0",
+ "package-hash": "^4.0.0",
+ "write-file-atomic": "^3.0.0"
}
},
- "html-escaper": {
- "version": "2.0.0",
- "resolved": "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.0.tgz",
- "integrity": "sha1-ceh/kx3j/gnlZmGrmimq3scHtJE="
+ "callsites": {
+ "version": "3.1.0",
+ "resolved": "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz",
+ "integrity": "sha1-s2MKvYlDQy9Us/BRkjjjPNffL3M=",
+ "dev": true
},
- "http-signature": {
- "version": "1.2.0",
- "resolved": "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz",
- "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=",
+ "camelcase": {
+ "version": "5.3.1",
+ "resolved": "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz",
+ "integrity": "sha1-48mzFWnhBoEd8kL3FXJaH0xJQyA=",
+ "dev": true
+ },
+ "caniuse-lite": {
+ "version": "1.0.30001035",
+ "resolved": "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001035.tgz",
+ "integrity": "sha1-K7U7iqRxay7QjgiNTcgWpf4Imh4=",
+ "dev": true
+ },
+ "canvas": {
+ "version": "2.6.1",
+ "resolved": "https://registry.yarnpkg.com/canvas/-/canvas-2.6.1.tgz",
+ "integrity": "sha1-DQh91NYPWlqe+iAnVycKvqi++J4=",
+ "dev": true,
"requires": {
- "assert-plus": "1.0.0",
- "jsprim": "1.4.1",
- "sshpk": "1.16.1"
+ "nan": "^2.14.0",
+ "node-pre-gyp": "^0.11.0",
+ "simple-get": "^3.0.3"
}
},
- "iconv-lite": {
- "version": "0.4.24",
- "resolved": "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz",
- "integrity": "sha1-ICK0sl+93CHS9SSXSkdKr+czkIs=",
+ "caseless": {
+ "version": "0.12.0",
+ "resolved": "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz",
+ "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=",
+ "dev": true
+ },
+ "chai": {
+ "version": "4.2.0",
+ "resolved": "https://registry.yarnpkg.com/chai/-/chai-4.2.0.tgz",
+ "integrity": "sha1-dgqnLPION5XoSxKHfODoNzeqKeU=",
+ "dev": true,
"requires": {
- "safer-buffer": "2.1.2"
+ "assertion-error": "^1.1.0",
+ "check-error": "^1.0.2",
+ "deep-eql": "^3.0.1",
+ "get-func-name": "^2.0.0",
+ "pathval": "^1.1.0",
+ "type-detect": "^4.0.5"
}
},
- "ignore": {
- "version": "4.0.6",
- "resolved": "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz",
- "integrity": "sha1-dQ49tYYgh7RzfrrIIH/9HvJ7Jfw="
- },
- "ignore-walk": {
- "version": "3.0.3",
- "resolved": "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.3.tgz",
- "integrity": "sha1-AX4kRxhL/q3nwjjkrv3R6PlbHjc=",
+ "chai-as-promised": {
+ "version": "7.1.1",
+ "resolved": "https://registry.yarnpkg.com/chai-as-promised/-/chai-as-promised-7.1.1.tgz",
+ "integrity": "sha1-CGRdgl3rhpbuYXJdv1kMAS6wDKA=",
+ "dev": true,
"requires": {
- "minimatch": "3.0.4"
+ "check-error": "^1.0.2"
}
},
- "import-fresh": {
- "version": "3.2.1",
- "resolved": "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.2.1.tgz",
- "integrity": "sha1-Yz/2GFBueTr1rJG/SLcmd+FcvmY=",
+ "chalk": {
+ "version": "2.4.2",
+ "resolved": "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz",
+ "integrity": "sha1-zUJUFnelQzPPVBpJEIwUMrRMlCQ=",
+ "dev": true,
"requires": {
- "parent-module": "1.0.1",
- "resolve-from": "4.0.0"
+ "ansi-styles": "^3.2.1",
+ "escape-string-regexp": "^1.0.5",
+ "supports-color": "^5.3.0"
},
"dependencies": {
- "resolve-from": {
- "version": "4.0.0",
- "resolved": "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz",
- "integrity": "sha1-SrzYUq0y3Xuqv+m0DgCjbbXzkuY="
+ "supports-color": {
+ "version": "5.5.0",
+ "resolved": "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz",
+ "integrity": "sha1-4uaaRKyHcveKHsCzW2id9lMO/I8=",
+ "dev": true,
+ "requires": {
+ "has-flag": "^3.0.0"
+ }
}
}
},
- "imurmurhash": {
- "version": "0.1.4",
- "resolved": "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz",
- "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o="
+ "chardet": {
+ "version": "0.7.0",
+ "resolved": "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz",
+ "integrity": "sha1-kAlISfCTfy7twkJdDSip5fDLrZ4=",
+ "dev": true
},
- "indent-string": {
- "version": "4.0.0",
- "resolved": "https://registry.yarnpkg.com/indent-string/-/indent-string-4.0.0.tgz",
- "integrity": "sha1-Yk+PRJfWGbLZdoUx1Y9BIoVNclE="
+ "check-error": {
+ "version": "1.0.2",
+ "resolved": "https://registry.yarnpkg.com/check-error/-/check-error-1.0.2.tgz",
+ "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=",
+ "dev": true
},
- "inflight": {
- "version": "1.0.6",
- "resolved": "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz",
- "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
+ "chokidar": {
+ "version": "3.3.0",
+ "resolved": "https://registry.yarnpkg.com/chokidar/-/chokidar-3.3.0.tgz",
+ "integrity": "sha1-EsBxRmjFWAD2WeJi1JYql/r1VKY=",
+ "dev": true,
"requires": {
- "once": "1.4.0",
- "wrappy": "1.0.2"
+ "anymatch": "~3.1.1",
+ "braces": "~3.0.2",
+ "glob-parent": "~5.1.0",
+ "is-binary-path": "~2.1.0",
+ "is-glob": "~4.0.1",
+ "normalize-path": "~3.0.0",
+ "readdirp": "~3.2.0"
}
},
- "inherits": {
- "version": "2.0.4",
- "resolved": "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz",
- "integrity": "sha1-D6LGT5MpF8NDOg3tVTY6rjdBa3w="
+ "chownr": {
+ "version": "1.1.4",
+ "resolved": "https://registry.yarnpkg.com/chownr/-/chownr-1.1.4.tgz",
+ "integrity": "sha1-b8nXtC0ypYNZYzdmbn0ICE2izGs=",
+ "dev": true
},
- "ini": {
- "version": "1.3.5",
- "resolved": "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz",
- "integrity": "sha1-7uJfVtscnsYIXgwid4CD9Zar+Sc="
+ "clean-stack": {
+ "version": "2.2.0",
+ "resolved": "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz",
+ "integrity": "sha1-7oRy27Ep5yezHooQpCfe6d/kAIs=",
+ "dev": true
},
- "inquirer": {
- "version": "7.1.0",
- "resolved": "https://registry.yarnpkg.com/inquirer/-/inquirer-7.1.0.tgz",
- "integrity": "sha1-EpigGFmIPhfHJkuChwrhA0+S3Sk=",
+ "cli-cursor": {
+ "version": "3.1.0",
+ "resolved": "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-3.1.0.tgz",
+ "integrity": "sha1-JkMFp65JDR0Dvwybp8kl0XU68wc=",
+ "dev": true,
"requires": {
- "ansi-escapes": "4.3.1",
- "chalk": "3.0.0",
- "cli-cursor": "3.1.0",
- "cli-width": "2.2.0",
- "external-editor": "3.1.0",
- "figures": "3.2.0",
- "lodash": "4.17.15",
- "mute-stream": "0.0.8",
- "run-async": "2.4.0",
- "rxjs": "6.5.4",
- "string-width": "4.2.0",
- "strip-ansi": "6.0.0",
- "through": "2.3.8"
- },
- "dependencies": {
- "ansi-regex": {
- "version": "5.0.0",
- "resolved": "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz",
- "integrity": "sha1-OIU59VF5vzkznIGvMKZU1p+Hy3U="
- },
- "ansi-styles": {
- "version": "4.2.1",
- "resolved": "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.2.1.tgz",
- "integrity": "sha1-kK51xCTQCNJiTFvynq0xd+v881k=",
- "requires": {
- "@types/color-name": "1.1.1",
- "color-convert": "2.0.1"
- }
- },
- "chalk": {
- "version": "3.0.0",
- "resolved": "https://registry.yarnpkg.com/chalk/-/chalk-3.0.0.tgz",
- "integrity": "sha1-P3PCv1JlkfV0zEksUeJFY0n4ROQ=",
- "requires": {
- "ansi-styles": "4.2.1",
- "supports-color": "7.1.0"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM=",
- "requires": {
- "color-name": "1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha1-wqCah6y95pVD3m9j+jmVyCbFNqI="
- },
- "emoji-regex": {
- "version": "8.0.0",
- "resolved": "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz",
- "integrity": "sha1-6Bj9ac5cz8tARZT4QpY79TFkzDc="
- },
- "is-fullwidth-code-point": {
- "version": "3.0.0",
- "resolved": "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
- "integrity": "sha1-8Rb4Bk/pCz94RKOJl8C3UFEmnx0="
- },
- "string-width": {
- "version": "4.2.0",
- "resolved": "https://registry.yarnpkg.com/string-width/-/string-width-4.2.0.tgz",
- "integrity": "sha1-lSGCxGzHssMT0VluYjmSvRY7crU=",
- "requires": {
- "emoji-regex": "8.0.0",
- "is-fullwidth-code-point": "3.0.0",
- "strip-ansi": "6.0.0"
- }
- },
- "strip-ansi": {
- "version": "6.0.0",
- "resolved": "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.0.tgz",
- "integrity": "sha1-CxVx3XZpzNTz4G4U7x7tJiJa5TI=",
- "requires": {
- "ansi-regex": "5.0.0"
- }
- }
+ "restore-cursor": "^3.1.0"
}
},
- "invariant": {
- "version": "2.2.4",
- "resolved": "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz",
- "integrity": "sha1-YQ88ksk1nOHbYW5TgAjSP/NRWOY=",
+ "cli-width": {
+ "version": "2.2.0",
+ "resolved": "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.0.tgz",
+ "integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=",
+ "dev": true
+ },
+ "cliui": {
+ "version": "5.0.0",
+ "resolved": "https://registry.yarnpkg.com/cliui/-/cliui-5.0.0.tgz",
+ "integrity": "sha1-3u/P2y6AB4SqNPRvoI4GhRx7u8U=",
+ "dev": true,
"requires": {
- "loose-envify": "1.4.0"
+ "string-width": "^3.1.0",
+ "strip-ansi": "^5.2.0",
+ "wrap-ansi": "^5.1.0"
}
},
- "ip-regex": {
- "version": "2.1.0",
- "resolved": "https://registry.yarnpkg.com/ip-regex/-/ip-regex-2.1.0.tgz",
- "integrity": "sha1-+ni/XS5pE8kRzp+BnuUUa7bYROk="
+ "code-point-at": {
+ "version": "1.1.0",
+ "resolved": "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz",
+ "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=",
+ "dev": true
},
- "is-binary-path": {
- "version": "2.1.0",
- "resolved": "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz",
- "integrity": "sha1-6h9/O4DwZCNug0cPhsCcJU+0Wwk=",
+ "color-convert": {
+ "version": "1.9.3",
+ "resolved": "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz",
+ "integrity": "sha1-u3GFBpDh8TZWfeYp0tVHHe2kweg=",
+ "dev": true,
"requires": {
- "binary-extensions": "2.0.0"
+ "color-name": "1.1.3"
}
},
- "is-buffer": {
- "version": "2.0.4",
- "resolved": "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.4.tgz",
- "integrity": "sha1-PlcvI8hBGlz9lVfISeNmXgspBiM="
- },
- "is-callable": {
- "version": "1.1.5",
- "resolved": "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.5.tgz",
- "integrity": "sha1-9+RrWWiQRW23Tn9ul2yzJz0G+qs="
- },
- "is-date-object": {
- "version": "1.0.2",
- "resolved": "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.2.tgz",
- "integrity": "sha1-vac28s2P0G0yhE53Q7+nSUw7/X4="
- },
- "is-extglob": {
- "version": "2.1.1",
- "resolved": "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz",
- "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI="
+ "color-name": {
+ "version": "1.1.3",
+ "resolved": "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz",
+ "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=",
+ "dev": true
},
- "is-fullwidth-code-point": {
- "version": "2.0.0",
- "resolved": "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
- "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8="
+ "colorette": {
+ "version": "1.1.0",
+ "resolved": "https://registry.yarnpkg.com/colorette/-/colorette-1.1.0.tgz",
+ "integrity": "sha1-H5Q+WjV/rBC04PWq7zsUzcGvbsc=",
+ "dev": true
},
- "is-glob": {
- "version": "4.0.1",
- "resolved": "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz",
- "integrity": "sha1-dWfb6fL14kZ7x3q4PEopSCQHpdw=",
+ "combined-stream": {
+ "version": "1.0.8",
+ "resolved": "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz",
+ "integrity": "sha1-w9RaizT9cwYxoRCoolIGgrMdWn8=",
+ "dev": true,
"requires": {
- "is-extglob": "2.1.1"
+ "delayed-stream": "~1.0.0"
}
},
- "is-number": {
- "version": "7.0.0",
- "resolved": "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz",
- "integrity": "sha1-dTU0W4lnNNX4DE0GxQlVUnoU8Ss="
+ "commander": {
+ "version": "2.20.3",
+ "resolved": "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz",
+ "integrity": "sha1-/UhehMA+tIgcIHIrpIA16FMa6zM=",
+ "dev": true
},
- "is-plain-object": {
- "version": "3.0.0",
- "resolved": "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-3.0.0.tgz",
- "integrity": "sha1-R7/F2htdUNZBEIBsGZNZSC51qSg=",
- "requires": {
- "isobject": "4.0.0"
- }
+ "commenting": {
+ "version": "1.1.0",
+ "resolved": "https://registry.yarnpkg.com/commenting/-/commenting-1.1.0.tgz",
+ "integrity": "sha1-+uFDRcZDe4VU8wvGqmweFjMDNZA=",
+ "dev": true
},
- "is-promise": {
- "version": "2.1.0",
- "resolved": "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz",
- "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o="
+ "commondir": {
+ "version": "1.0.1",
+ "resolved": "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz",
+ "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=",
+ "dev": true
},
- "is-regex": {
- "version": "1.0.5",
- "resolved": "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.5.tgz",
- "integrity": "sha1-OdWJo1i/GJZ/cmlnEguPwa7XTq4=",
+ "concat-map": {
+ "version": "0.0.1",
+ "resolved": "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz",
+ "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
+ "dev": true
+ },
+ "console-control-strings": {
+ "version": "1.1.0",
+ "resolved": "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz",
+ "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=",
+ "dev": true
+ },
+ "convert-source-map": {
+ "version": "1.7.0",
+ "resolved": "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.7.0.tgz",
+ "integrity": "sha1-F6LLiC1/d9NJBYXizmxSRCSjpEI=",
+ "dev": true,
"requires": {
- "has": "1.0.3"
+ "safe-buffer": "~5.1.1"
+ },
+ "dependencies": {
+ "safe-buffer": {
+ "version": "5.1.2",
+ "resolved": "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz",
+ "integrity": "sha1-mR7GnSluAxN0fVm9/St0XDX4go0=",
+ "dev": true
+ }
}
},
- "is-stream": {
- "version": "2.0.0",
- "resolved": "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.0.tgz",
- "integrity": "sha1-venDJoDW+uBBKdasnZIc54FfeOM="
+ "core-js": {
+ "version": "2.6.11",
+ "resolved": "https://registry.yarnpkg.com/core-js/-/core-js-2.6.11.tgz",
+ "integrity": "sha1-OIMUafmSK97Y7iHJ3EaYXgOZMIw=",
+ "dev": true
},
- "is-symbol": {
- "version": "1.0.3",
- "resolved": "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.3.tgz",
- "integrity": "sha1-OOEBS55jKb4N6dJKQU/XRB7GGTc=",
+ "core-js-compat": {
+ "version": "3.6.4",
+ "resolved": "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.6.4.tgz",
+ "integrity": "sha1-k4R2Vp67bNqA0zm88Zn65PFv/xc=",
+ "dev": true,
"requires": {
- "has-symbols": "1.0.1"
+ "browserslist": "^4.8.3",
+ "semver": "7.0.0"
+ },
+ "dependencies": {
+ "semver": {
+ "version": "7.0.0",
+ "resolved": "https://registry.yarnpkg.com/semver/-/semver-7.0.0.tgz",
+ "integrity": "sha1-XzyjV2HkfgWyBsba/yz4FPAxa44=",
+ "dev": true
+ }
}
},
- "is-typedarray": {
- "version": "1.0.0",
- "resolved": "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz",
- "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo="
- },
- "is-windows": {
+ "core-util-is": {
"version": "1.0.2",
- "resolved": "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz",
- "integrity": "sha1-0YUOuXkezRjmGCzhKjDzlmNLsZ0="
- },
- "isarray": {
- "version": "1.0.0",
- "resolved": "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz",
- "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE="
- },
- "isexe": {
- "version": "2.0.0",
- "resolved": "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz",
- "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA="
- },
- "isobject": {
- "version": "4.0.0",
- "resolved": "https://registry.yarnpkg.com/isobject/-/isobject-4.0.0.tgz",
- "integrity": "sha1-PxyRVec7GSAiqAgZus0DQ3EWl7A="
- },
- "isstream": {
- "version": "0.1.2",
- "resolved": "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz",
- "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo="
+ "resolved": "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz",
+ "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=",
+ "dev": true
},
- "istanbul": {
- "version": "0.4.5",
- "resolved": "https://registry.yarnpkg.com/istanbul/-/istanbul-0.4.5.tgz",
- "integrity": "sha1-ZcfXPUxNqE1POsMQuRj7C4Azczs=",
+ "cross-spawn": {
+ "version": "7.0.1",
+ "resolved": "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.1.tgz",
+ "integrity": "sha1-CrVihuD3wk4VPQTMKqAn5DqaXRQ=",
+ "dev": true,
"requires": {
- "abbrev": "1.0.9",
- "async": "1.5.2",
- "escodegen": "1.8.1",
- "esprima": "2.7.3",
- "glob": "5.0.15",
- "handlebars": "4.7.3",
- "js-yaml": "3.13.1",
- "mkdirp": "0.5.1",
- "nopt": "3.0.6",
- "once": "1.4.0",
- "resolve": "1.1.7",
- "supports-color": "3.2.3",
- "which": "1.3.1",
- "wordwrap": "1.0.0"
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
},
"dependencies": {
- "abbrev": {
- "version": "1.0.9",
- "resolved": "https://registry.yarnpkg.com/abbrev/-/abbrev-1.0.9.tgz",
- "integrity": "sha1-kbR5JYinc4wl813W9jdSovh3YTU="
- },
- "glob": {
- "version": "5.0.15",
- "resolved": "https://registry.yarnpkg.com/glob/-/glob-5.0.15.tgz",
- "integrity": "sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E=",
- "requires": {
- "inflight": "1.0.6",
- "inherits": "2.0.4",
- "minimatch": "3.0.4",
- "once": "1.4.0",
- "path-is-absolute": "1.0.1"
- }
- },
- "has-flag": {
- "version": "1.0.0",
- "resolved": "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz",
- "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo="
- },
- "resolve": {
- "version": "1.1.7",
- "resolved": "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz",
- "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs="
- },
- "supports-color": {
- "version": "3.2.3",
- "resolved": "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz",
- "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=",
+ "which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz",
+ "integrity": "sha1-fGqN0KY2oDJ+ELWckobu6T8/UbE=",
+ "dev": true,
"requires": {
- "has-flag": "1.0.0"
+ "isexe": "^2.0.0"
}
}
}
},
- "istanbul-lib-coverage": {
- "version": "3.0.0",
- "resolved": "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz",
- "integrity": "sha1-9ZRKN8cLVQsCp4pcOyBVsoDOyOw="
- },
- "istanbul-lib-hook": {
- "version": "3.0.0",
- "resolved": "https://registry.yarnpkg.com/istanbul-lib-hook/-/istanbul-lib-hook-3.0.0.tgz",
- "integrity": "sha1-j4TJQ0iIzGsdCp1wkqdtI56/DMY=",
- "requires": {
- "append-transform": "2.0.0"
- }
+ "cssom": {
+ "version": "0.4.4",
+ "resolved": "https://registry.yarnpkg.com/cssom/-/cssom-0.4.4.tgz",
+ "integrity": "sha1-WmbPk9LQtmHYC/akT7ZfXC5OChA=",
+ "dev": true
},
- "istanbul-lib-instrument": {
- "version": "4.0.1",
- "resolved": "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.1.tgz",
- "integrity": "sha1-YfE6wsls/vsHb+cTEVbMBZB4dOY=",
+ "cssstyle": {
+ "version": "2.2.0",
+ "resolved": "https://registry.yarnpkg.com/cssstyle/-/cssstyle-2.2.0.tgz",
+ "integrity": "sha1-5MRN68zWt5Ee1hekOV5XVLulmZI=",
+ "dev": true,
"requires": {
- "@babel/core": "7.8.7",
- "@babel/parser": "7.8.8",
- "@babel/template": "7.8.6",
- "@babel/traverse": "7.8.6",
- "@istanbuljs/schema": "0.1.2",
- "istanbul-lib-coverage": "3.0.0",
- "semver": "6.3.0"
+ "cssom": "~0.3.6"
},
"dependencies": {
- "semver": {
- "version": "6.3.0",
- "resolved": "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz",
- "integrity": "sha1-7gpkyK9ejO6mdoexM3YeG+y9HT0="
+ "cssom": {
+ "version": "0.3.8",
+ "resolved": "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz",
+ "integrity": "sha1-nxJ29bK0Y/IRTT8sdSUK+MGjb0o=",
+ "dev": true
}
}
},
- "istanbul-lib-processinfo": {
- "version": "2.0.2",
- "resolved": "https://registry.yarnpkg.com/istanbul-lib-processinfo/-/istanbul-lib-processinfo-2.0.2.tgz",
- "integrity": "sha1-4UJlFGYiRLLyXfco6P0bo1/lO5w=",
+ "dashdash": {
+ "version": "1.14.1",
+ "resolved": "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz",
+ "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",
+ "dev": true,
"requires": {
- "archy": "1.0.0",
- "cross-spawn": "7.0.1",
- "istanbul-lib-coverage": "3.0.0",
- "make-dir": "3.0.2",
- "p-map": "3.0.0",
- "rimraf": "3.0.2",
- "uuid": "3.4.0"
+ "assert-plus": "^1.0.0"
}
},
- "istanbul-lib-report": {
- "version": "3.0.0",
- "resolved": "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz",
- "integrity": "sha1-dRj+UupE3jcvRgp2tezan/tz2KY=",
+ "data-urls": {
+ "version": "1.1.0",
+ "resolved": "https://registry.yarnpkg.com/data-urls/-/data-urls-1.1.0.tgz",
+ "integrity": "sha1-Fe4Fgrql4iu1nHcUDaj5x2lju/4=",
+ "dev": true,
"requires": {
- "istanbul-lib-coverage": "3.0.0",
- "make-dir": "3.0.2",
- "supports-color": "7.1.0"
+ "abab": "^2.0.0",
+ "whatwg-mimetype": "^2.2.0",
+ "whatwg-url": "^7.0.0"
}
},
- "istanbul-lib-source-maps": {
- "version": "4.0.0",
- "resolved": "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.0.tgz",
- "integrity": "sha1-dXQ85tlruG3H7kNSz2Nmoj8LGtk=",
+ "debug": {
+ "version": "4.1.1",
+ "resolved": "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz",
+ "integrity": "sha1-O3ImAlUQnGtYnO4FDx1RYTlmR5E=",
+ "dev": true,
"requires": {
- "debug": "4.1.1",
- "istanbul-lib-coverage": "3.0.0",
- "source-map": "0.6.1"
+ "ms": "^2.1.1"
}
},
- "istanbul-reports": {
- "version": "3.0.0",
- "resolved": "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.0.0.tgz",
- "integrity": "sha1-1NFtA125lYG2GU4Rm782yWPF63A=",
+ "decamelize": {
+ "version": "1.2.0",
+ "resolved": "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz",
+ "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=",
+ "dev": true
+ },
+ "decompress-response": {
+ "version": "4.2.1",
+ "resolved": "https://registry.yarnpkg.com/decompress-response/-/decompress-response-4.2.1.tgz",
+ "integrity": "sha1-QUAjzHowLaJc4uyC0NUjjMr9iYY=",
+ "dev": true,
"requires": {
- "html-escaper": "2.0.0",
- "istanbul-lib-report": "3.0.0"
+ "mimic-response": "^2.0.0"
}
},
- "jest-worker": {
- "version": "24.9.0",
- "resolved": "https://registry.yarnpkg.com/jest-worker/-/jest-worker-24.9.0.tgz",
- "integrity": "sha1-Xb/bWy0yLphWeJgjipaXvM5ns+U=",
+ "deep-eql": {
+ "version": "3.0.1",
+ "resolved": "https://registry.yarnpkg.com/deep-eql/-/deep-eql-3.0.1.tgz",
+ "integrity": "sha1-38lARACtHI/gI+faHfHBR8S0RN8=",
+ "dev": true,
"requires": {
- "merge-stream": "2.0.0",
- "supports-color": "6.1.0"
- },
- "dependencies": {
- "supports-color": {
- "version": "6.1.0",
- "resolved": "https://registry.yarnpkg.com/supports-color/-/supports-color-6.1.0.tgz",
- "integrity": "sha1-B2Srxpxj1ayELdSGfo0CXogN+PM=",
- "requires": {
- "has-flag": "3.0.0"
- }
- }
+ "type-detect": "^4.0.0"
}
},
- "js-tokens": {
- "version": "4.0.0",
- "resolved": "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz",
- "integrity": "sha1-GSA/tZmR35jjoocFDUZHzerzJJk="
+ "deep-extend": {
+ "version": "0.6.0",
+ "resolved": "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz",
+ "integrity": "sha1-xPp8lUBKF6nD6Mp+FTcxK3NjMKw=",
+ "dev": true
},
- "js-yaml": {
- "version": "3.13.1",
- "resolved": "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.13.1.tgz",
- "integrity": "sha1-r/FRswv9+o5J4F2iLnQV6d+jeEc=",
+ "deep-is": {
+ "version": "0.1.3",
+ "resolved": "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz",
+ "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=",
+ "dev": true
+ },
+ "default-require-extensions": {
+ "version": "3.0.0",
+ "resolved": "https://registry.yarnpkg.com/default-require-extensions/-/default-require-extensions-3.0.0.tgz",
+ "integrity": "sha1-4D+TqsmytkQ/xS5eSjezrZrY35Y=",
+ "dev": true,
"requires": {
- "argparse": "1.0.10",
- "esprima": "4.0.1"
- },
- "dependencies": {
- "esprima": {
- "version": "4.0.1",
- "resolved": "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz",
- "integrity": "sha1-E7BM2z5sXRnfkatph6hpVhmwqnE="
- }
+ "strip-bom": "^4.0.0"
}
},
- "jsbn": {
- "version": "0.1.1",
- "resolved": "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz",
- "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM="
- },
- "jsdom": {
- "version": "15.2.1",
- "resolved": "https://registry.yarnpkg.com/jsdom/-/jsdom-15.2.1.tgz",
- "integrity": "sha1-0v6xrvcYP4a+UhuMaDP/UpbQfsU=",
+ "define-properties": {
+ "version": "1.1.3",
+ "resolved": "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz",
+ "integrity": "sha1-z4jabL7ib+bbcJT2HYcMvYTO6fE=",
+ "dev": true,
"requires": {
- "abab": "2.0.3",
- "acorn": "7.1.1",
- "acorn-globals": "4.3.4",
- "array-equal": "1.0.0",
- "cssom": "0.4.4",
- "cssstyle": "2.2.0",
- "data-urls": "1.1.0",
- "domexception": "1.0.1",
- "escodegen": "1.14.1",
- "html-encoding-sniffer": "1.0.2",
- "nwsapi": "2.2.0",
- "parse5": "5.1.0",
- "pn": "1.1.0",
- "request": "2.88.2",
- "request-promise-native": "1.0.8",
- "saxes": "3.1.11",
- "symbol-tree": "3.2.4",
- "tough-cookie": "3.0.1",
- "w3c-hr-time": "1.0.2",
- "w3c-xmlserializer": "1.1.2",
- "webidl-conversions": "4.0.2",
- "whatwg-encoding": "1.0.5",
- "whatwg-mimetype": "2.3.0",
- "whatwg-url": "7.1.0",
- "ws": "7.2.3",
- "xml-name-validator": "3.0.0"
- },
- "dependencies": {
- "escodegen": {
- "version": "1.14.1",
- "resolved": "https://registry.yarnpkg.com/escodegen/-/escodegen-1.14.1.tgz",
- "integrity": "sha1-ugHQyCeLXpWppFNQFCAmZZAnpFc=",
- "requires": {
- "estraverse": "4.3.0",
- "esutils": "2.0.3",
- "esprima": "4.0.1",
- "optionator": "0.8.3"
- }
- },
- "esprima": {
- "version": "4.0.1",
- "resolved": "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz",
- "integrity": "sha1-E7BM2z5sXRnfkatph6hpVhmwqnE="
- },
- "tough-cookie": {
- "version": "3.0.1",
- "resolved": "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-3.0.1.tgz",
- "integrity": "sha1-nfT1fnOcJpMKAYGEiH9K233Kc7I=",
- "requires": {
- "ip-regex": "2.1.0",
- "psl": "1.7.0",
- "punycode": "2.1.1"
- }
- }
+ "object-keys": "^1.0.12"
}
},
- "jsesc": {
- "version": "2.5.2",
- "resolved": "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz",
- "integrity": "sha1-gFZNLkg9rPbo7yCWUKZ98/DCg6Q="
- },
- "json-schema": {
- "version": "0.2.3",
- "resolved": "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz",
- "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM="
- },
- "json-schema-traverse": {
- "version": "0.4.1",
- "resolved": "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
- "integrity": "sha1-afaofZUTq4u4/mO9sJecRI5oRmA="
- },
- "json-stable-stringify-without-jsonify": {
- "version": "1.0.1",
- "resolved": "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
- "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE="
+ "delayed-stream": {
+ "version": "1.0.0",
+ "resolved": "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz",
+ "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=",
+ "dev": true
},
- "json-stringify-safe": {
- "version": "5.0.1",
- "resolved": "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
- "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus="
+ "delegates": {
+ "version": "1.0.0",
+ "resolved": "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz",
+ "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=",
+ "dev": true
},
- "json5": {
- "version": "2.1.1",
- "resolved": "https://registry.yarnpkg.com/json5/-/json5-2.1.1.tgz",
- "integrity": "sha1-gbbLBOm6SW8ccAXQe0NoomOPkLY=",
- "requires": {
- "minimist": "1.2.5"
- }
+ "detect-libc": {
+ "version": "1.0.3",
+ "resolved": "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz",
+ "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=",
+ "dev": true
},
- "jsonfile": {
- "version": "4.0.0",
- "resolved": "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz",
- "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss="
+ "diff": {
+ "version": "3.5.0",
+ "resolved": "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz",
+ "integrity": "sha1-gAwN0eCov7yVg1wgKtIg/jF+WhI=",
+ "dev": true
},
- "jsprim": {
- "version": "1.4.1",
- "resolved": "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz",
- "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=",
+ "dir-glob": {
+ "version": "3.0.1",
+ "resolved": "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz",
+ "integrity": "sha1-Vtv3PZkqSpO6FYT0U0Bj/S5BcX8=",
+ "dev": true,
"requires": {
- "assert-plus": "1.0.0",
- "extsprintf": "1.3.0",
- "json-schema": "0.2.3",
- "verror": "1.10.0"
+ "path-type": "^4.0.0"
}
},
- "leven": {
- "version": "3.1.0",
- "resolved": "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz",
- "integrity": "sha1-d4kd6DQGTMy6gq54QrtrFKE+1/I="
- },
- "levenary": {
- "version": "1.1.1",
- "resolved": "https://registry.yarnpkg.com/levenary/-/levenary-1.1.1.tgz",
- "integrity": "sha1-hCqe6Y0gdap/ru2+MmeekgX0b3c=",
+ "doctrine": {
+ "version": "3.0.0",
+ "resolved": "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz",
+ "integrity": "sha1-rd6+rXKmV023g2OdyHoSF3OXOWE=",
+ "dev": true,
"requires": {
- "leven": "3.1.0"
+ "esutils": "^2.0.2"
}
},
- "levn": {
- "version": "0.3.0",
- "resolved": "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz",
- "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=",
+ "domexception": {
+ "version": "1.0.1",
+ "resolved": "https://registry.yarnpkg.com/domexception/-/domexception-1.0.1.tgz",
+ "integrity": "sha1-k3RCZEymoxJh7zbj7Gd/6AVYLJA=",
+ "dev": true,
"requires": {
- "prelude-ls": "1.1.2",
- "type-check": "0.3.2"
+ "webidl-conversions": "^4.0.2"
}
},
- "locate-path": {
- "version": "3.0.0",
- "resolved": "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz",
- "integrity": "sha1-2+w7OrdZdYBxtY/ln8QYca8hQA4=",
+ "ecc-jsbn": {
+ "version": "0.1.2",
+ "resolved": "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
+ "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=",
+ "dev": true,
"requires": {
- "p-locate": "3.0.0",
- "path-exists": "3.0.0"
+ "jsbn": "~0.1.0",
+ "safer-buffer": "^2.1.0"
}
},
- "lodash": {
- "version": "4.17.15",
- "resolved": "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz",
- "integrity": "sha1-tEf2ZwoEVbv+7dETku/zMOoJdUg="
- },
- "lodash.flattendeep": {
- "version": "4.4.0",
- "resolved": "https://registry.yarnpkg.com/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz",
- "integrity": "sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI="
+ "electron-to-chromium": {
+ "version": "1.3.376",
+ "resolved": "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.376.tgz",
+ "integrity": "sha1-fLe1IFVkoGyPjs++gyy9R6EiS7E=",
+ "dev": true
},
- "lodash.sortby": {
- "version": "4.7.0",
- "resolved": "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz",
- "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg="
+ "emoji-regex": {
+ "version": "7.0.3",
+ "resolved": "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz",
+ "integrity": "sha1-kzoEBShgyF6DwSJHnEdIqOTHIVY=",
+ "dev": true
},
- "log-symbols": {
- "version": "3.0.0",
- "resolved": "https://registry.yarnpkg.com/log-symbols/-/log-symbols-3.0.0.tgz",
- "integrity": "sha1-86CFFqXeqJMzan3uFNGKHP2rd8Q=",
+ "es-abstract": {
+ "version": "1.17.4",
+ "resolved": "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.17.4.tgz",
+ "integrity": "sha1-467fGXBrIOfCWUw1/A1XYFp54YQ=",
+ "dev": true,
"requires": {
- "chalk": "2.4.2"
+ "es-to-primitive": "^1.2.1",
+ "function-bind": "^1.1.1",
+ "has": "^1.0.3",
+ "has-symbols": "^1.0.1",
+ "is-callable": "^1.1.5",
+ "is-regex": "^1.0.5",
+ "object-inspect": "^1.7.0",
+ "object-keys": "^1.1.1",
+ "object.assign": "^4.1.0",
+ "string.prototype.trimleft": "^2.1.1",
+ "string.prototype.trimright": "^2.1.1"
}
},
- "loose-envify": {
- "version": "1.4.0",
- "resolved": "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz",
- "integrity": "sha1-ce5R+nvkyuwaY4OffmgtgTLTDK8=",
+ "es-to-primitive": {
+ "version": "1.2.1",
+ "resolved": "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz",
+ "integrity": "sha1-5VzUyc3BiLzvsDs2bHNjI/xciYo=",
+ "dev": true,
"requires": {
- "js-tokens": "4.0.0"
+ "is-callable": "^1.1.4",
+ "is-date-object": "^1.0.1",
+ "is-symbol": "^1.0.2"
}
},
- "magic-string": {
- "version": "0.25.4",
- "resolved": "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.4.tgz",
- "integrity": "sha1-MluKCnn8Qj2xCbd/1aGRg7e6UUM=",
- "requires": {
- "sourcemap-codec": "1.4.8"
- }
+ "es6-error": {
+ "version": "4.1.1",
+ "resolved": "https://registry.yarnpkg.com/es6-error/-/es6-error-4.1.1.tgz",
+ "integrity": "sha1-njr0B0Wd7tR+mpH5uIWoTrBcVh0=",
+ "dev": true
},
- "make-coverage-badge": {
- "version": "1.2.0",
- "resolved": "https://registry.yarnpkg.com/make-coverage-badge/-/make-coverage-badge-1.2.0.tgz",
- "integrity": "sha1-ElwzdTHOfgNsZPqWqLQs5g4ztDc=",
+ "escape-string-regexp": {
+ "version": "1.0.5",
+ "resolved": "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
+ "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=",
+ "dev": true
+ },
+ "escodegen": {
+ "version": "1.8.1",
+ "resolved": "https://registry.yarnpkg.com/escodegen/-/escodegen-1.8.1.tgz",
+ "integrity": "sha1-WltTr0aTEQvrsIZ6o0MN07cKEBg=",
+ "dev": true,
"requires": {
- "mri": "1.1.4"
+ "esprima": "^2.7.1",
+ "estraverse": "^1.9.1",
+ "esutils": "^2.0.2",
+ "optionator": "^0.8.1",
+ "source-map": "~0.2.0"
+ },
+ "dependencies": {
+ "estraverse": {
+ "version": "1.9.3",
+ "resolved": "https://registry.yarnpkg.com/estraverse/-/estraverse-1.9.3.tgz",
+ "integrity": "sha1-r2fy3JIlgkFZUJJgkaQAXSnJu0Q=",
+ "dev": true
+ },
+ "source-map": {
+ "version": "0.2.0",
+ "resolved": "https://registry.yarnpkg.com/source-map/-/source-map-0.2.0.tgz",
+ "integrity": "sha1-2rc/vPwrqBm03gO9b26qSBZLP50=",
+ "dev": true,
+ "optional": true
+ }
}
},
- "make-dir": {
- "version": "3.0.2",
- "resolved": "https://registry.yarnpkg.com/make-dir/-/make-dir-3.0.2.tgz",
- "integrity": "sha1-BKGsvyIiHh1u9DVZ9D4FqQ27Q5I=",
- "requires": {
- "semver": "6.3.0"
+ "eslint": {
+ "version": "6.8.0",
+ "resolved": "https://registry.yarnpkg.com/eslint/-/eslint-6.8.0.tgz",
+ "integrity": "sha1-YiYtZylzn5J1cjgkMC+yJ8jJP/s=",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.0.0",
+ "ajv": "^6.10.0",
+ "chalk": "^2.1.0",
+ "cross-spawn": "^6.0.5",
+ "debug": "^4.0.1",
+ "doctrine": "^3.0.0",
+ "eslint-scope": "^5.0.0",
+ "eslint-utils": "^1.4.3",
+ "eslint-visitor-keys": "^1.1.0",
+ "espree": "^6.1.2",
+ "esquery": "^1.0.1",
+ "esutils": "^2.0.2",
+ "file-entry-cache": "^5.0.1",
+ "functional-red-black-tree": "^1.0.1",
+ "glob-parent": "^5.0.0",
+ "globals": "^12.1.0",
+ "ignore": "^4.0.6",
+ "import-fresh": "^3.0.0",
+ "imurmurhash": "^0.1.4",
+ "inquirer": "^7.0.0",
+ "is-glob": "^4.0.0",
+ "js-yaml": "^3.13.1",
+ "json-stable-stringify-without-jsonify": "^1.0.1",
+ "levn": "^0.3.0",
+ "lodash": "^4.17.14",
+ "minimatch": "^3.0.4",
+ "mkdirp": "^0.5.1",
+ "natural-compare": "^1.4.0",
+ "optionator": "^0.8.3",
+ "progress": "^2.0.0",
+ "regexpp": "^2.0.1",
+ "semver": "^6.1.2",
+ "strip-ansi": "^5.2.0",
+ "strip-json-comments": "^3.0.1",
+ "table": "^5.2.3",
+ "text-table": "^0.2.0",
+ "v8-compile-cache": "^2.0.3"
},
"dependencies": {
+ "cross-spawn": {
+ "version": "6.0.5",
+ "resolved": "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz",
+ "integrity": "sha1-Sl7Hxk364iw6FBJNus3uhG2Ay8Q=",
+ "dev": true,
+ "requires": {
+ "nice-try": "^1.0.4",
+ "path-key": "^2.0.1",
+ "semver": "^5.5.0",
+ "shebang-command": "^1.2.0",
+ "which": "^1.2.9"
+ },
+ "dependencies": {
+ "semver": {
+ "version": "5.7.1",
+ "resolved": "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz",
+ "integrity": "sha1-qVT5Ma66UI0we78Gnv8MAclhFvc=",
+ "dev": true
+ }
+ }
+ },
+ "globals": {
+ "version": "12.4.0",
+ "resolved": "https://registry.yarnpkg.com/globals/-/globals-12.4.0.tgz",
+ "integrity": "sha1-oYgTV2pBsAokqX5/gVkYwuGZJfg=",
+ "dev": true,
+ "requires": {
+ "type-fest": "^0.8.1"
+ }
+ },
+ "path-key": {
+ "version": "2.0.1",
+ "resolved": "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz",
+ "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=",
+ "dev": true
+ },
"semver": {
"version": "6.3.0",
"resolved": "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz",
- "integrity": "sha1-7gpkyK9ejO6mdoexM3YeG+y9HT0="
- }
- }
- },
- "merge-stream": {
- "version": "2.0.0",
- "resolved": "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz",
- "integrity": "sha1-UoI2KaFN0AyXcPtq1H3GMQ8sH2A="
- },
- "merge2": {
- "version": "1.3.0",
- "resolved": "https://registry.yarnpkg.com/merge2/-/merge2-1.3.0.tgz",
- "integrity": "sha1-WzZu6DsvFYLEj4fkfPGpNSEDyoE="
+ "integrity": "sha1-7gpkyK9ejO6mdoexM3YeG+y9HT0=",
+ "dev": true
+ },
+ "shebang-command": {
+ "version": "1.2.0",
+ "resolved": "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz",
+ "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=",
+ "dev": true,
+ "requires": {
+ "shebang-regex": "^1.0.0"
+ }
+ },
+ "shebang-regex": {
+ "version": "1.0.0",
+ "resolved": "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz",
+ "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=",
+ "dev": true
+ },
+ "strip-json-comments": {
+ "version": "3.0.1",
+ "resolved": "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.0.1.tgz",
+ "integrity": "sha1-hXE5dakfuHvxswXMp3OV5A0qZKc=",
+ "dev": true
+ }
+ }
},
- "micromatch": {
- "version": "4.0.2",
- "resolved": "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.2.tgz",
- "integrity": "sha1-T8sJmb+fvC/L3SEvbWKbmlbDklk=",
+ "eslint-scope": {
+ "version": "5.0.0",
+ "resolved": "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.0.0.tgz",
+ "integrity": "sha1-6HyIh8c+jR7ITxylkWRcNYv8j7k=",
+ "dev": true,
"requires": {
- "braces": "3.0.2",
- "picomatch": "2.2.1"
+ "esrecurse": "^4.1.0",
+ "estraverse": "^4.1.1"
}
},
- "mime-db": {
- "version": "1.43.0",
- "resolved": "https://registry.yarnpkg.com/mime-db/-/mime-db-1.43.0.tgz",
- "integrity": "sha1-ChLgUCZQ5HPXNVNQUOfI9OtPrlg="
- },
- "mime-types": {
- "version": "2.1.26",
- "resolved": "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.26.tgz",
- "integrity": "sha1-nJIfwJt+FJpl39wNpNIJlyALCgY=",
+ "eslint-utils": {
+ "version": "1.4.3",
+ "resolved": "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.4.3.tgz",
+ "integrity": "sha1-dP7HxU0Hdrb2fgJRBAtYBlZOmB8=",
+ "dev": true,
"requires": {
- "mime-db": "1.43.0"
+ "eslint-visitor-keys": "^1.1.0"
}
},
- "mimic-fn": {
- "version": "2.1.0",
- "resolved": "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz",
- "integrity": "sha1-ftLCzMyvhNP/y3pptXcR/CCDQBs="
- },
- "mimic-response": {
- "version": "2.1.0",
- "resolved": "https://registry.yarnpkg.com/mimic-response/-/mimic-response-2.1.0.tgz",
- "integrity": "sha1-0Tdj019hPQnsN+uzC6wEacDuj0M="
+ "eslint-visitor-keys": {
+ "version": "1.1.0",
+ "resolved": "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz",
+ "integrity": "sha1-4qgs6oT/JGrW+1f5veW0ZiFFnsI=",
+ "dev": true
},
- "minimatch": {
- "version": "3.0.4",
- "resolved": "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz",
- "integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=",
+ "espree": {
+ "version": "6.2.1",
+ "resolved": "https://registry.yarnpkg.com/espree/-/espree-6.2.1.tgz",
+ "integrity": "sha1-d/xy4f10SiBSwg84pbV1gy6Cc0o=",
+ "dev": true,
"requires": {
- "brace-expansion": "1.1.11"
+ "acorn": "^7.1.1",
+ "acorn-jsx": "^5.2.0",
+ "eslint-visitor-keys": "^1.1.0"
}
},
- "minimist": {
- "version": "1.2.5",
- "resolved": "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz",
- "integrity": "sha1-Z9ZgFLZqaoqqDAg8X9WN9OTpdgI="
+ "esprima": {
+ "version": "2.7.3",
+ "resolved": "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz",
+ "integrity": "sha1-luO3DVd59q1JzQMmc9HDEnZ7pYE=",
+ "dev": true
},
- "minipass": {
- "version": "2.9.0",
- "resolved": "https://registry.yarnpkg.com/minipass/-/minipass-2.9.0.tgz",
- "integrity": "sha1-5xN2Ln0+Mv7YAxFc+T4EvKn8yaY=",
+ "esquery": {
+ "version": "1.1.0",
+ "resolved": "https://registry.yarnpkg.com/esquery/-/esquery-1.1.0.tgz",
+ "integrity": "sha1-xcC2bzg+dlZAT4azEzTXJSTt20g=",
+ "dev": true,
"requires": {
- "safe-buffer": "5.2.0",
- "yallist": "3.1.1"
+ "estraverse": "^4.0.0"
}
},
- "minizlib": {
- "version": "1.3.3",
- "resolved": "https://registry.yarnpkg.com/minizlib/-/minizlib-1.3.3.tgz",
- "integrity": "sha1-IpDeloGKNMKVUcio0wEha9Zahh0=",
+ "esrecurse": {
+ "version": "4.2.1",
+ "resolved": "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.2.1.tgz",
+ "integrity": "sha1-AHo7n9vCs7uH5IeeoZyS/b05Qs8=",
+ "dev": true,
"requires": {
- "minipass": "2.9.0"
+ "estraverse": "^4.1.0"
}
},
- "mkdirp": {
- "version": "0.5.1",
- "resolved": "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz",
- "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
- "requires": {
- "minimist": "0.0.8"
- },
- "dependencies": {
- "minimist": {
- "version": "0.0.8",
- "resolved": "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz",
- "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0="
- }
- }
+ "estraverse": {
+ "version": "4.3.0",
+ "resolved": "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz",
+ "integrity": "sha1-OYrT88WiSUi+dyXoPRGn3ijNvR0=",
+ "dev": true
},
- "mocha": {
- "version": "7.1.0",
- "resolved": "https://registry.yarnpkg.com/mocha/-/mocha-7.1.0.tgz",
- "integrity": "sha1-x4T1ea0JBNKSKa1sseJRTk230kk=",
+ "estree-walker": {
+ "version": "0.6.1",
+ "resolved": "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.6.1.tgz",
+ "integrity": "sha1-UwSRQ/QMbrkYsjZx0f4yGfOhs2I=",
+ "dev": true
+ },
+ "esutils": {
+ "version": "2.0.3",
+ "resolved": "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz",
+ "integrity": "sha1-dNLrTeC42hKTcRkQ1Qd1ubcQ72Q=",
+ "dev": true
+ },
+ "extend": {
+ "version": "3.0.2",
+ "resolved": "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz",
+ "integrity": "sha1-+LETa0Bx+9jrFAr/hYsQGewpFfo=",
+ "dev": true
+ },
+ "external-editor": {
+ "version": "3.1.0",
+ "resolved": "https://registry.yarnpkg.com/external-editor/-/external-editor-3.1.0.tgz",
+ "integrity": "sha1-ywP3QL764D6k0oPK7SdBqD8zVJU=",
+ "dev": true,
"requires": {
- "ansi-colors": "3.2.3",
- "browser-stdout": "1.3.1",
- "chokidar": "3.3.0",
- "debug": "3.2.6",
- "diff": "3.5.0",
- "escape-string-regexp": "1.0.5",
- "find-up": "3.0.0",
- "glob": "7.1.3",
- "growl": "1.10.5",
- "he": "1.2.0",
- "js-yaml": "3.13.1",
- "log-symbols": "3.0.0",
- "minimatch": "3.0.4",
- "mkdirp": "0.5.1",
- "ms": "2.1.1",
- "node-environment-flags": "1.0.6",
- "object.assign": "4.1.0",
- "strip-json-comments": "2.0.1",
- "supports-color": "6.0.0",
- "which": "1.3.1",
- "wide-align": "1.1.3",
- "yargs": "13.3.0",
- "yargs-parser": "13.1.1",
- "yargs-unparser": "1.6.0"
- },
- "dependencies": {
- "debug": {
- "version": "3.2.6",
- "resolved": "https://registry.yarnpkg.com/debug/-/debug-3.2.6.tgz",
- "integrity": "sha1-6D0X3hbYp++3cX7b5fsQE17uYps=",
- "requires": {
- "ms": "2.1.2"
- },
- "dependencies": {
- "ms": {
- "version": "2.1.2",
- "resolved": "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz",
- "integrity": "sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk="
- }
- }
- },
- "glob": {
- "version": "7.1.3",
- "resolved": "https://registry.yarnpkg.com/glob/-/glob-7.1.3.tgz",
- "integrity": "sha1-OWCDLT8VdBCDQtr9OmezMsCWnfE=",
- "requires": {
- "fs.realpath": "1.0.0",
- "inflight": "1.0.6",
- "inherits": "2.0.4",
- "minimatch": "3.0.4",
- "once": "1.4.0",
- "path-is-absolute": "1.0.1"
- }
- },
- "ms": {
- "version": "2.1.1",
- "resolved": "https://registry.yarnpkg.com/ms/-/ms-2.1.1.tgz",
- "integrity": "sha1-MKWGTrPrsKZvLr5tcnrwagnYbgo="
- },
- "supports-color": {
- "version": "6.0.0",
- "resolved": "https://registry.yarnpkg.com/supports-color/-/supports-color-6.0.0.tgz",
- "integrity": "sha1-ds/nQs8fQbubHCmtAwaMBbTA5Ao=",
- "requires": {
- "has-flag": "3.0.0"
- }
- },
- "yargs-parser": {
- "version": "13.1.1",
- "resolved": "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-13.1.1.tgz",
- "integrity": "sha1-0mBYUyqgbTZf4JH2ofwGsvfl7KA=",
- "requires": {
- "camelcase": "5.3.1",
- "decamelize": "1.2.0"
- }
- }
+ "chardet": "^0.7.0",
+ "iconv-lite": "^0.4.24",
+ "tmp": "^0.0.33"
}
},
- "moment": {
- "version": "2.24.0",
- "resolved": "https://registry.yarnpkg.com/moment/-/moment-2.24.0.tgz",
- "integrity": "sha1-DQVdU/UFKqZTyfbraLtdEr9cK1s="
- },
- "mri": {
- "version": "1.1.4",
- "resolved": "https://registry.yarnpkg.com/mri/-/mri-1.1.4.tgz",
- "integrity": "sha1-fLHdG5tAkF8frAU6viW2cg9EdEo="
+ "extsprintf": {
+ "version": "1.3.0",
+ "resolved": "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz",
+ "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=",
+ "dev": true
},
- "ms": {
- "version": "2.1.2",
- "resolved": "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz",
- "integrity": "sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk="
+ "fast-deep-equal": {
+ "version": "3.1.1",
+ "resolved": "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz",
+ "integrity": "sha1-VFFFB3xQFJHjOxXsQIwpQ3bpSuQ=",
+ "dev": true
},
- "mute-stream": {
- "version": "0.0.8",
- "resolved": "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz",
- "integrity": "sha1-FjDEKyJR/4HiooPelqVJfqkuXg0="
+ "fast-glob": {
+ "version": "3.2.2",
+ "resolved": "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.2.tgz",
+ "integrity": "sha1-reGp2RFIll1L98UfcuHKZi0y5j0=",
+ "dev": true,
+ "requires": {
+ "@nodelib/fs.stat": "^2.0.2",
+ "@nodelib/fs.walk": "^1.2.3",
+ "glob-parent": "^5.1.0",
+ "merge2": "^1.3.0",
+ "micromatch": "^4.0.2",
+ "picomatch": "^2.2.1"
+ }
},
- "nan": {
- "version": "2.14.0",
- "resolved": "https://registry.yarnpkg.com/nan/-/nan-2.14.0.tgz",
- "integrity": "sha1-eBj3IgJ7JFmobwKV1DTR/CM2xSw="
+ "fast-json-stable-stringify": {
+ "version": "2.1.0",
+ "resolved": "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
+ "integrity": "sha1-h0v2nG9ATCtdmcSBNBOZ/VWJJjM=",
+ "dev": true
},
- "natural-compare": {
- "version": "1.4.0",
- "resolved": "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz",
- "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc="
+ "fast-levenshtein": {
+ "version": "2.0.6",
+ "resolved": "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
+ "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=",
+ "dev": true
},
- "needle": {
- "version": "2.3.3",
- "resolved": "https://registry.yarnpkg.com/needle/-/needle-2.3.3.tgz",
- "integrity": "sha1-oEGtHQSocbDrtmb0C6rx+0eGcRc=",
+ "fastq": {
+ "version": "1.6.1",
+ "resolved": "https://registry.yarnpkg.com/fastq/-/fastq-1.6.1.tgz",
+ "integrity": "sha1-RXDHTy3tFz5xzwvrCKxwu4WCZ5E=",
+ "dev": true,
"requires": {
- "debug": "3.2.6",
- "iconv-lite": "0.4.24",
- "sax": "1.2.4"
- },
- "dependencies": {
- "debug": {
- "version": "3.2.6",
- "resolved": "https://registry.yarnpkg.com/debug/-/debug-3.2.6.tgz",
- "integrity": "sha1-6D0X3hbYp++3cX7b5fsQE17uYps=",
- "requires": {
- "ms": "2.1.2"
- }
- }
+ "reusify": "^1.0.4"
}
},
- "neo-async": {
- "version": "2.6.1",
- "resolved": "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.1.tgz",
- "integrity": "sha1-rCetpmFn+ohJpq3dg39rGJrSCBw="
- },
- "nice-try": {
- "version": "1.0.5",
- "resolved": "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz",
- "integrity": "sha1-ozeKdpbOfSI+iPybdkvX7xCJ42Y="
+ "figures": {
+ "version": "3.2.0",
+ "resolved": "https://registry.yarnpkg.com/figures/-/figures-3.2.0.tgz",
+ "integrity": "sha1-YlwYvSk8YE3EqN2y/r8MiDQXRq8=",
+ "dev": true,
+ "requires": {
+ "escape-string-regexp": "^1.0.5"
+ }
},
- "node-environment-flags": {
- "version": "1.0.6",
- "resolved": "https://registry.yarnpkg.com/node-environment-flags/-/node-environment-flags-1.0.6.tgz",
- "integrity": "sha1-owrBNiH299Z0JgpU3t4EjDmCwIg=",
+ "file-entry-cache": {
+ "version": "5.0.1",
+ "resolved": "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-5.0.1.tgz",
+ "integrity": "sha1-yg9u+m3T1WEzP7FFFQZcL6/fQ5w=",
+ "dev": true,
"requires": {
- "object.getownpropertydescriptors": "2.1.0",
- "semver": "5.7.1"
+ "flat-cache": "^2.0.1"
}
},
- "node-modules-regexp": {
- "version": "1.0.0",
- "resolved": "https://registry.yarnpkg.com/node-modules-regexp/-/node-modules-regexp-1.0.0.tgz",
- "integrity": "sha1-jZ2+KJZKSsVxLpExZCEHxx6Q7EA="
+ "fill-range": {
+ "version": "7.0.1",
+ "resolved": "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz",
+ "integrity": "sha1-GRmmp8df44ssfHflGYU12prN2kA=",
+ "dev": true,
+ "requires": {
+ "to-regex-range": "^5.0.1"
+ }
},
- "node-pre-gyp": {
- "version": "0.11.0",
- "resolved": "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.11.0.tgz",
- "integrity": "sha1-2x8zIVJy9pLNOPAyOOPptHxd0FQ=",
+ "find-cache-dir": {
+ "version": "2.1.0",
+ "resolved": "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-2.1.0.tgz",
+ "integrity": "sha1-jQ+UzRP+Q8bHwmGg2GEVypGMBfc=",
+ "dev": true,
"requires": {
- "detect-libc": "1.0.3",
- "mkdirp": "0.5.1",
- "needle": "2.3.3",
- "nopt": "4.0.3",
- "npm-packlist": "1.4.8",
- "npmlog": "4.1.2",
- "rc": "1.2.8",
- "rimraf": "2.7.1",
- "semver": "5.7.1",
- "tar": "4.4.13"
+ "commondir": "^1.0.1",
+ "make-dir": "^2.0.0",
+ "pkg-dir": "^3.0.0"
},
"dependencies": {
- "nopt": {
- "version": "4.0.3",
- "resolved": "https://registry.yarnpkg.com/nopt/-/nopt-4.0.3.tgz",
- "integrity": "sha1-o3XK2dAv2SEnjZVMIlTVqlfhXkg=",
- "requires": {
- "abbrev": "1.1.1",
- "osenv": "0.1.5"
- }
- },
- "rimraf": {
- "version": "2.7.1",
- "resolved": "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz",
- "integrity": "sha1-NXl/E6f9rcVmFCwp1PB8ytSD4+w=",
+ "make-dir": {
+ "version": "2.1.0",
+ "resolved": "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz",
+ "integrity": "sha1-XwMQ4YuL6JjMBwCSlaMK5B6R5vU=",
+ "dev": true,
"requires": {
- "glob": "7.1.6"
+ "pify": "^4.0.1",
+ "semver": "^5.6.0"
}
}
}
},
- "node-preload": {
- "version": "0.2.1",
- "resolved": "https://registry.yarnpkg.com/node-preload/-/node-preload-0.2.1.tgz",
- "integrity": "sha1-wDBDuzJ/QXoY/uerfuV7QIoUQwE=",
+ "find-up": {
+ "version": "3.0.0",
+ "resolved": "https://registry.yarnpkg.com/find-up/-/find-up-3.0.0.tgz",
+ "integrity": "sha1-SRafHXmTQwZG2mHsxa41XCHJe3M=",
+ "dev": true,
"requires": {
- "process-on-spawn": "1.0.0"
+ "locate-path": "^3.0.0"
}
},
- "node-releases": {
- "version": "1.1.52",
- "resolved": "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.52.tgz",
- "integrity": "sha1-vP/uPgp1jpLkTs+uzQpHVUsLy6k=",
+ "flat": {
+ "version": "4.1.0",
+ "resolved": "https://registry.yarnpkg.com/flat/-/flat-4.1.0.tgz",
+ "integrity": "sha1-CQvsiwXjnLowl0fx1YjwTbr5jbI=",
+ "dev": true,
"requires": {
- "semver": "6.3.0"
- },
- "dependencies": {
- "semver": {
- "version": "6.3.0",
- "resolved": "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz",
- "integrity": "sha1-7gpkyK9ejO6mdoexM3YeG+y9HT0="
- }
+ "is-buffer": "~2.0.3"
}
},
- "nodent-compiler": {
- "version": "3.2.11",
- "resolved": "https://registry.yarnpkg.com/nodent-compiler/-/nodent-compiler-3.2.11.tgz",
- "integrity": "sha1-j0vHA9fY0OVj9eCeoi79zgTbr5s=",
+ "flat-cache": {
+ "version": "2.0.1",
+ "resolved": "https://registry.yarnpkg.com/flat-cache/-/flat-cache-2.0.1.tgz",
+ "integrity": "sha1-XSltbwS9pEpGMKMBQTvbwuwIXsA=",
+ "dev": true,
"requires": {
- "acorn": "5.7.3",
- "acorn-es7-plugin": "1.1.7",
- "nodent-transform": "3.2.9",
- "source-map": "0.5.7"
+ "flatted": "^2.0.0",
+ "rimraf": "2.6.3",
+ "write": "1.0.3"
},
"dependencies": {
- "acorn": {
- "version": "5.7.3",
- "resolved": "https://registry.yarnpkg.com/acorn/-/acorn-5.7.3.tgz",
- "integrity": "sha1-Z6ojG/iBKXS4UjWpZ3Hra9B+onk="
- },
- "source-map": {
- "version": "0.5.7",
- "resolved": "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz",
- "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w="
+ "rimraf": {
+ "version": "2.6.3",
+ "resolved": "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz",
+ "integrity": "sha1-stEE/g2Psnz54KHNqCYt04M8bKs=",
+ "dev": true,
+ "requires": {
+ "glob": "^7.1.3"
+ }
}
}
},
- "nodent-transform": {
- "version": "3.2.9",
- "resolved": "https://registry.yarnpkg.com/nodent-transform/-/nodent-transform-3.2.9.tgz",
- "integrity": "sha1-7BGmEWtUduYLwhI3HPa45MdPQLY="
+ "flatted": {
+ "version": "2.0.1",
+ "resolved": "https://registry.yarnpkg.com/flatted/-/flatted-2.0.1.tgz",
+ "integrity": "sha1-aeV8qo8OrLwoHS4stFjUb9tEngg=",
+ "dev": true
},
- "nopt": {
- "version": "3.0.6",
- "resolved": "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz",
- "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=",
+ "foreground-child": {
+ "version": "2.0.0",
+ "resolved": "https://registry.yarnpkg.com/foreground-child/-/foreground-child-2.0.0.tgz",
+ "integrity": "sha1-cbMoAMnxWqjy+D9Ka9m/812GGlM=",
+ "dev": true,
"requires": {
- "abbrev": "1.1.1"
+ "cross-spawn": "^7.0.0",
+ "signal-exit": "^3.0.2"
}
},
- "normalize-path": {
- "version": "3.0.0",
- "resolved": "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz",
- "integrity": "sha1-Dc1p/yOhybEf0JeDFmRKA4ghamU="
+ "forever-agent": {
+ "version": "0.6.1",
+ "resolved": "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz",
+ "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=",
+ "dev": true
},
- "npm-bundled": {
- "version": "1.1.1",
- "resolved": "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.1.1.tgz",
- "integrity": "sha1-Ht1XCGWpTNsbyCIHdeKUZsn7I0s=",
+ "form-data": {
+ "version": "2.3.3",
+ "resolved": "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz",
+ "integrity": "sha1-3M5SwF9kTymManq5Nr1yTO/786Y=",
+ "dev": true,
"requires": {
- "npm-normalize-package-bin": "1.0.1"
+ "asynckit": "^0.4.0",
+ "combined-stream": "^1.0.6",
+ "mime-types": "^2.1.12"
}
},
- "npm-normalize-package-bin": {
- "version": "1.0.1",
- "resolved": "https://registry.yarnpkg.com/npm-normalize-package-bin/-/npm-normalize-package-bin-1.0.1.tgz",
- "integrity": "sha1-bnmkHyP9I1wGIyGCKNp9nCO49uI="
+ "fromentries": {
+ "version": "1.2.0",
+ "resolved": "https://registry.yarnpkg.com/fromentries/-/fromentries-1.2.0.tgz",
+ "integrity": "sha1-5qoG8kDWJn+RPOpCIHXviLY+eJc=",
+ "dev": true
},
- "npm-packlist": {
- "version": "1.4.8",
- "resolved": "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-1.4.8.tgz",
- "integrity": "sha1-Vu5swTW5+YrT1Rwcldoiu7my7z4=",
+ "fs-extra": {
+ "version": "8.1.0",
+ "resolved": "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz",
+ "integrity": "sha1-SdQ8RaiM2Wd2aMt74bRu/bjS4cA=",
+ "dev": true,
"requires": {
- "ignore-walk": "3.0.3",
- "npm-bundled": "1.1.1",
- "npm-normalize-package-bin": "1.0.1"
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^4.0.0",
+ "universalify": "^0.1.0"
}
},
- "npmlog": {
- "version": "4.1.2",
- "resolved": "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz",
- "integrity": "sha1-CKfyqL9zRgR3mp76StXMcXq7lUs=",
+ "fs-minipass": {
+ "version": "1.2.7",
+ "resolved": "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.7.tgz",
+ "integrity": "sha1-zP+FcIQef+QmVpPaiJNsVa7X98c=",
+ "dev": true,
"requires": {
- "are-we-there-yet": "1.1.5",
- "console-control-strings": "1.1.0",
- "gauge": "2.7.4",
- "set-blocking": "2.0.0"
+ "minipass": "^2.6.0"
}
},
- "number-is-nan": {
- "version": "1.0.1",
- "resolved": "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz",
- "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0="
+ "fs.realpath": {
+ "version": "1.0.0",
+ "resolved": "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz",
+ "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
+ "dev": true
},
- "nwsapi": {
- "version": "2.2.0",
- "resolved": "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.0.tgz",
- "integrity": "sha1-IEh5qePQaP8qVROcLHcngGgaOLc="
+ "function-bind": {
+ "version": "1.1.1",
+ "resolved": "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz",
+ "integrity": "sha1-pWiZ0+o8m6uHS7l3O3xe3pL0iV0=",
+ "dev": true
},
- "nyc": {
- "version": "15.0.0",
- "resolved": "https://registry.yarnpkg.com/nyc/-/nyc-15.0.0.tgz",
- "integrity": "sha1-6zLbLA8pJCwkFP5GNX8jASHPwWI=",
- "requires": {
- "@istanbuljs/load-nyc-config": "1.0.0",
- "@istanbuljs/schema": "0.1.2",
- "caching-transform": "4.0.0",
- "convert-source-map": "1.7.0",
- "decamelize": "1.2.0",
- "find-cache-dir": "3.3.1",
- "find-up": "4.1.0",
- "foreground-child": "2.0.0",
- "glob": "7.1.6",
- "istanbul-lib-coverage": "3.0.0",
- "istanbul-lib-hook": "3.0.0",
- "istanbul-lib-instrument": "4.0.1",
- "istanbul-lib-processinfo": "2.0.2",
- "istanbul-lib-report": "3.0.0",
- "istanbul-lib-source-maps": "4.0.0",
- "istanbul-reports": "3.0.0",
- "js-yaml": "3.13.1",
- "make-dir": "3.0.2",
- "p-map": "3.0.0",
- "process-on-spawn": "1.0.0",
- "node-preload": "0.2.1",
- "resolve-from": "5.0.0",
- "rimraf": "3.0.2",
- "signal-exit": "3.0.2",
- "spawn-wrap": "2.0.0",
- "test-exclude": "6.0.0",
- "uuid": "3.4.0",
- "yargs": "15.3.0"
+ "functional-red-black-tree": {
+ "version": "1.0.1",
+ "resolved": "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz",
+ "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=",
+ "dev": true
+ },
+ "gauge": {
+ "version": "2.7.4",
+ "resolved": "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz",
+ "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=",
+ "dev": true,
+ "requires": {
+ "aproba": "^1.0.3",
+ "console-control-strings": "^1.0.0",
+ "has-unicode": "^2.0.0",
+ "object-assign": "^4.1.0",
+ "signal-exit": "^3.0.0",
+ "string-width": "^1.0.1",
+ "strip-ansi": "^3.0.1",
+ "wide-align": "^1.1.0"
},
"dependencies": {
"ansi-regex": {
- "version": "5.0.0",
- "resolved": "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz",
- "integrity": "sha1-OIU59VF5vzkznIGvMKZU1p+Hy3U="
- },
- "ansi-styles": {
- "version": "4.2.1",
- "resolved": "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.2.1.tgz",
- "integrity": "sha1-kK51xCTQCNJiTFvynq0xd+v881k=",
- "requires": {
- "@types/color-name": "1.1.1",
- "color-convert": "2.0.1"
- }
- },
- "cliui": {
- "version": "6.0.0",
- "resolved": "https://registry.yarnpkg.com/cliui/-/cliui-6.0.0.tgz",
- "integrity": "sha1-UR1wLAxOQcoVbX0OlgIfI+EyJbE=",
- "requires": {
- "string-width": "4.2.0",
- "strip-ansi": "6.0.0",
- "wrap-ansi": "6.2.0"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM=",
- "requires": {
- "color-name": "1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha1-wqCah6y95pVD3m9j+jmVyCbFNqI="
- },
- "emoji-regex": {
- "version": "8.0.0",
- "resolved": "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz",
- "integrity": "sha1-6Bj9ac5cz8tARZT4QpY79TFkzDc="
- },
- "find-cache-dir": {
- "version": "3.3.1",
- "resolved": "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-3.3.1.tgz",
- "integrity": "sha1-ibM/rUpGcNqpT4Vff74x1thP6IA=",
- "requires": {
- "commondir": "1.0.1",
- "make-dir": "3.0.2",
- "pkg-dir": "4.2.0"
- }
- },
- "find-up": {
- "version": "4.1.0",
- "resolved": "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz",
- "integrity": "sha1-l6/n1s3AvFkoWEt8jXsW6KmqXRk=",
- "requires": {
- "locate-path": "5.0.0",
- "path-exists": "4.0.0"
- }
+ "version": "2.1.1",
+ "resolved": "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz",
+ "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
+ "dev": true
},
"is-fullwidth-code-point": {
- "version": "3.0.0",
- "resolved": "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
- "integrity": "sha1-8Rb4Bk/pCz94RKOJl8C3UFEmnx0="
- },
- "locate-path": {
- "version": "5.0.0",
- "resolved": "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz",
- "integrity": "sha1-Gvujlq/WdqbUJQTQpno6frn2KqA=",
- "requires": {
- "p-locate": "4.1.0"
- }
- },
- "p-locate": {
- "version": "4.1.0",
- "resolved": "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz",
- "integrity": "sha1-o0KLtwiLOmApL2aRkni3wpetTwc=",
- "requires": {
- "p-limit": "2.2.2"
- }
- },
- "path-exists": {
- "version": "4.0.0",
- "resolved": "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz",
- "integrity": "sha1-UTvb4tO5XXdi6METfvoZXGxhtbM="
- },
- "pkg-dir": {
- "version": "4.2.0",
- "resolved": "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz",
- "integrity": "sha1-8JkTPfft5CLoHR2ESCcO6z5CYfM=",
+ "version": "1.0.0",
+ "resolved": "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
+ "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
+ "dev": true,
"requires": {
- "find-up": "4.1.0"
+ "number-is-nan": "^1.0.0"
}
},
"string-width": {
- "version": "4.2.0",
- "resolved": "https://registry.yarnpkg.com/string-width/-/string-width-4.2.0.tgz",
- "integrity": "sha1-lSGCxGzHssMT0VluYjmSvRY7crU=",
+ "version": "1.0.2",
+ "resolved": "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz",
+ "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
+ "dev": true,
"requires": {
- "emoji-regex": "8.0.0",
- "is-fullwidth-code-point": "3.0.0",
- "strip-ansi": "6.0.0"
+ "code-point-at": "^1.0.0",
+ "is-fullwidth-code-point": "^1.0.0",
+ "strip-ansi": "^3.0.0"
}
},
"strip-ansi": {
- "version": "6.0.0",
- "resolved": "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.0.tgz",
- "integrity": "sha1-CxVx3XZpzNTz4G4U7x7tJiJa5TI=",
- "requires": {
- "ansi-regex": "5.0.0"
- }
- },
- "wrap-ansi": {
- "version": "6.2.0",
- "resolved": "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
- "integrity": "sha1-6Tk7oHEC5skaOyIUePAlfNKFblM=",
- "requires": {
- "ansi-styles": "4.2.1",
- "string-width": "4.2.0",
- "strip-ansi": "6.0.0"
- }
- },
- "yargs": {
- "version": "15.3.0",
- "resolved": "https://registry.yarnpkg.com/yargs/-/yargs-15.3.0.tgz",
- "integrity": "sha1-QDr27cdbOuBL9myUICIouhGfCXY=",
- "requires": {
- "cliui": "6.0.0",
- "decamelize": "1.2.0",
- "find-up": "4.1.0",
- "get-caller-file": "2.0.5",
- "require-directory": "2.1.1",
- "require-main-filename": "2.0.0",
- "set-blocking": "2.0.0",
- "string-width": "4.2.0",
- "which-module": "2.0.0",
- "y18n": "4.0.0",
- "yargs-parser": "18.1.0"
- }
- },
- "yargs-parser": {
- "version": "18.1.0",
- "resolved": "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-18.1.0.tgz",
- "integrity": "sha1-GwqxEY69QfaLsw5yn0yD3zauhMM=",
+ "version": "3.0.1",
+ "resolved": "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz",
+ "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
+ "dev": true,
"requires": {
- "camelcase": "5.3.1",
- "decamelize": "1.2.0"
+ "ansi-regex": "^2.0.0"
}
}
}
},
- "oauth-sign": {
- "version": "0.9.0",
- "resolved": "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz",
- "integrity": "sha1-R6ewFrqmi1+g7PPe4IqFxnmsZFU="
- },
- "object-assign": {
- "version": "4.1.1",
- "resolved": "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz",
- "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM="
- },
- "object-inspect": {
- "version": "1.7.0",
- "resolved": "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.7.0.tgz",
- "integrity": "sha1-9Pa9GBrXfwBrXs5gvQtvOY/3Smc="
+ "gensync": {
+ "version": "1.0.0-beta.1",
+ "resolved": "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.1.tgz",
+ "integrity": "sha1-WPQ2H/mH5f9uHnohCCeqNx6qwmk=",
+ "dev": true
},
- "object-keys": {
- "version": "1.1.1",
- "resolved": "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz",
- "integrity": "sha1-HEfyct8nfzsdrwYWd9nILiMixg4="
+ "get-caller-file": {
+ "version": "2.0.5",
+ "resolved": "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz",
+ "integrity": "sha1-T5RBKoLbMvNuOwuXQfipf+sDH34=",
+ "dev": true
},
- "object.assign": {
- "version": "4.1.0",
- "resolved": "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.0.tgz",
- "integrity": "sha1-lovxEA15Vrs8oIbwBvhGs7xACNo=",
- "requires": {
- "define-properties": "1.1.3",
- "function-bind": "1.1.1",
- "has-symbols": "1.0.1",
- "object-keys": "1.1.1"
- }
+ "get-func-name": {
+ "version": "2.0.0",
+ "resolved": "https://registry.yarnpkg.com/get-func-name/-/get-func-name-2.0.0.tgz",
+ "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=",
+ "dev": true
},
- "object.getownpropertydescriptors": {
- "version": "2.1.0",
- "resolved": "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.0.tgz",
- "integrity": "sha1-Npvx+VktiridcS3O1cuBx8U1Jkk=",
+ "getpass": {
+ "version": "0.1.7",
+ "resolved": "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz",
+ "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
+ "dev": true,
"requires": {
- "define-properties": "1.1.3",
- "es-abstract": "1.17.4"
+ "assert-plus": "^1.0.0"
}
},
- "once": {
- "version": "1.4.0",
- "resolved": "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz",
- "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
+ "glob": {
+ "version": "7.1.6",
+ "resolved": "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz",
+ "integrity": "sha1-FB8zuBp8JJLhJVlDB0gMRmeSeKY=",
+ "dev": true,
"requires": {
- "wrappy": "1.0.2"
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.0.4",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
}
},
- "onetime": {
+ "glob-parent": {
"version": "5.1.0",
- "resolved": "https://registry.yarnpkg.com/onetime/-/onetime-5.1.0.tgz",
- "integrity": "sha1-//DzyRYX/mK7UBiWNumayKbfe+U=",
+ "resolved": "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.0.tgz",
+ "integrity": "sha1-X0wdHnSNMM1zrSlEs1d6gbCB6MI=",
+ "dev": true,
"requires": {
- "mimic-fn": "2.1.0"
+ "is-glob": "^4.0.1"
}
},
- "optimist": {
- "version": "0.6.1",
- "resolved": "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz",
- "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=",
- "requires": {
- "wordwrap": "0.0.3",
- "minimist": "0.0.10"
+ "globals": {
+ "version": "11.12.0",
+ "resolved": "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz",
+ "integrity": "sha1-q4eVM4hooLq9hSV1gBjCp+uVxC4=",
+ "dev": true
+ },
+ "globby": {
+ "version": "10.0.1",
+ "resolved": "https://registry.yarnpkg.com/globby/-/globby-10.0.1.tgz",
+ "integrity": "sha1-R4LDTLdd1oM1EzXFgpzDQg5gayI=",
+ "dev": true,
+ "requires": {
+ "@types/glob": "^7.1.1",
+ "array-union": "^2.1.0",
+ "dir-glob": "^3.0.1",
+ "fast-glob": "^3.0.3",
+ "glob": "^7.1.3",
+ "ignore": "^5.1.1",
+ "merge2": "^1.2.3",
+ "slash": "^3.0.0"
},
"dependencies": {
- "minimist": {
- "version": "0.0.10",
- "resolved": "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz",
- "integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8="
- },
- "wordwrap": {
- "version": "0.0.3",
- "resolved": "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz",
- "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc="
- }
- }
- },
- "optionator": {
- "version": "0.8.3",
- "resolved": "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz",
- "integrity": "sha1-hPodA2/p08fiHZmIS2ARZ+yPtJU=",
- "requires": {
- "prelude-ls": "1.1.2",
- "deep-is": "0.1.3",
- "word-wrap": "1.2.3",
- "type-check": "0.3.2",
- "levn": "0.3.0",
- "fast-levenshtein": "2.0.6"
- }
- },
- "os-homedir": {
- "version": "1.0.2",
- "resolved": "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz",
- "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M="
- },
- "os-tmpdir": {
- "version": "1.0.2",
- "resolved": "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
- "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ="
- },
- "osenv": {
- "version": "0.1.5",
- "resolved": "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz",
- "integrity": "sha1-hc36+uso6Gd/QW4odZK18/SepBA=",
- "requires": {
- "os-homedir": "1.0.2",
- "os-tmpdir": "1.0.2"
- }
- },
- "p-limit": {
- "version": "2.2.2",
- "resolved": "https://registry.yarnpkg.com/p-limit/-/p-limit-2.2.2.tgz",
- "integrity": "sha1-YSebZ3IfUoeqHBOpp/u8SMkpGx4=",
- "requires": {
- "p-try": "2.2.0"
- }
- },
- "p-locate": {
- "version": "3.0.0",
- "resolved": "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz",
- "integrity": "sha1-Mi1poFwCZLJZl9n0DNiokasAZKQ=",
- "requires": {
- "p-limit": "2.2.2"
+ "ignore": {
+ "version": "5.1.4",
+ "resolved": "https://registry.yarnpkg.com/ignore/-/ignore-5.1.4.tgz",
+ "integrity": "sha1-hLez2+ZFUrbvDsqZ9nQ9vsbZet8=",
+ "dev": true
+ }
}
},
- "p-map": {
- "version": "3.0.0",
- "resolved": "https://registry.yarnpkg.com/p-map/-/p-map-3.0.0.tgz",
- "integrity": "sha1-1wTZr4orpoTiYA2aIVmD1BQal50=",
+ "graceful-fs": {
+ "version": "4.2.3",
+ "resolved": "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.3.tgz",
+ "integrity": "sha1-ShL/G2A3bvCYYsIJPt2Qgyi+hCM=",
+ "dev": true
+ },
+ "growl": {
+ "version": "1.10.5",
+ "resolved": "https://registry.yarnpkg.com/growl/-/growl-1.10.5.tgz",
+ "integrity": "sha1-8nNdwig2dPpnR4sQGBBZNVw2nl4=",
+ "dev": true
+ },
+ "handlebars": {
+ "version": "4.7.3",
+ "resolved": "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.3.tgz",
+ "integrity": "sha1-js4nl4Johs+AgtFyb/IdKgIlUO4=",
+ "dev": true,
"requires": {
- "aggregate-error": "3.0.1"
+ "neo-async": "^2.6.0",
+ "optimist": "^0.6.1",
+ "source-map": "^0.6.1",
+ "uglify-js": "^3.1.4"
}
},
- "p-try": {
- "version": "2.2.0",
- "resolved": "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz",
- "integrity": "sha1-yyhoVA4xPWHeWPr741zpAE1VQOY="
+ "har-schema": {
+ "version": "2.0.0",
+ "resolved": "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz",
+ "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=",
+ "dev": true
},
- "package-hash": {
- "version": "4.0.0",
- "resolved": "https://registry.yarnpkg.com/package-hash/-/package-hash-4.0.0.tgz",
- "integrity": "sha1-NTf2VGZew8w4gnOH/JBMFjxU9QY=",
+ "har-validator": {
+ "version": "5.1.3",
+ "resolved": "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.3.tgz",
+ "integrity": "sha1-HvievT5JllV2de7ZiTEQ3DUPoIA=",
+ "dev": true,
"requires": {
- "graceful-fs": "4.2.3",
- "hasha": "5.2.0",
- "lodash.flattendeep": "4.4.0",
- "release-zalgo": "1.0.0"
+ "ajv": "^6.5.5",
+ "har-schema": "^2.0.0"
}
},
- "parent-module": {
- "version": "1.0.1",
- "resolved": "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz",
- "integrity": "sha1-aR0nCeeMefrjoVZiJFLQB2LKqqI=",
+ "has": {
+ "version": "1.0.3",
+ "resolved": "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz",
+ "integrity": "sha1-ci18v8H2qoJB8W3YFOAR4fQeh5Y=",
+ "dev": true,
"requires": {
- "callsites": "3.1.0"
+ "function-bind": "^1.1.1"
}
},
- "parse5": {
- "version": "5.1.0",
- "resolved": "https://registry.yarnpkg.com/parse5/-/parse5-5.1.0.tgz",
- "integrity": "sha1-xZNByXI/QUxFKXVWTHwApo1YrNI="
- },
- "path-exists": {
+ "has-flag": {
"version": "3.0.0",
- "resolved": "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz",
- "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU="
+ "resolved": "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz",
+ "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=",
+ "dev": true
},
- "path-is-absolute": {
+ "has-symbols": {
"version": "1.0.1",
- "resolved": "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
- "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18="
- },
- "path-key": {
- "version": "3.1.1",
- "resolved": "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz",
- "integrity": "sha1-WB9q3mWMu6ZaDTOA3ndTKVBU83U="
- },
- "path-parse": {
- "version": "1.0.6",
- "resolved": "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz",
- "integrity": "sha1-1i27VnlAXXLEc37FhgDp3c8G0kw="
- },
- "path-type": {
- "version": "4.0.0",
- "resolved": "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz",
- "integrity": "sha1-hO0BwKe6OAr+CdkKjBgNzZ0DBDs="
- },
- "pathval": {
- "version": "1.1.0",
- "resolved": "https://registry.yarnpkg.com/pathval/-/pathval-1.1.0.tgz",
- "integrity": "sha1-uULm1L3mUwBe9rcTYd74cn0GReA="
- },
- "performance-now": {
- "version": "2.1.0",
- "resolved": "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz",
- "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns="
- },
- "picomatch": {
- "version": "2.2.1",
- "resolved": "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.1.tgz",
- "integrity": "sha1-IbrIiLbthgH4Mc54FuM1vHefCko="
+ "resolved": "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.1.tgz",
+ "integrity": "sha1-n1IUdYpEGWxAbZvXbOv4HsLdMeg=",
+ "dev": true
},
- "pify": {
- "version": "4.0.1",
- "resolved": "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz",
- "integrity": "sha1-SyzSXFDVmHNcUCkiJP2MbfQeMjE="
+ "has-unicode": {
+ "version": "2.0.1",
+ "resolved": "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz",
+ "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=",
+ "dev": true
},
- "pirates": {
- "version": "4.0.1",
- "resolved": "https://registry.yarnpkg.com/pirates/-/pirates-4.0.1.tgz",
- "integrity": "sha1-ZDqSyviUVm+RsrmG0sZpUKji+4c=",
+ "hasha": {
+ "version": "5.2.0",
+ "resolved": "https://registry.yarnpkg.com/hasha/-/hasha-5.2.0.tgz",
+ "integrity": "sha1-MwlNH2nECkpqx75T1f4/+Vomngw=",
+ "dev": true,
"requires": {
- "node-modules-regexp": "1.0.0"
+ "is-stream": "^2.0.0",
+ "type-fest": "^0.8.0"
}
},
- "pkg-dir": {
- "version": "3.0.0",
- "resolved": "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-3.0.0.tgz",
- "integrity": "sha1-J0kCDyOe2ZCIGx9xIQ1R62UjvqM=",
+ "he": {
+ "version": "1.2.0",
+ "resolved": "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz",
+ "integrity": "sha1-hK5l+n6vsWX922FWauFLrwVmTw8=",
+ "dev": true
+ },
+ "html-encoding-sniffer": {
+ "version": "1.0.2",
+ "resolved": "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz",
+ "integrity": "sha1-5w2EuU2lOqN14R/jo1G+ZkLKRvg=",
+ "dev": true,
"requires": {
- "find-up": "3.0.0"
+ "whatwg-encoding": "^1.0.1"
}
},
- "pn": {
- "version": "1.1.0",
- "resolved": "https://registry.yarnpkg.com/pn/-/pn-1.1.0.tgz",
- "integrity": "sha1-4vTO8OIZ9GPBeas3Rj5OHs3Muvs="
- },
- "prelude-ls": {
- "version": "1.1.2",
- "resolved": "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz",
- "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ="
- },
- "private": {
- "version": "0.1.8",
- "resolved": "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz",
- "integrity": "sha1-I4Hts2ifelPWUxkAYPz4ItLzaP8="
- },
- "process-nextick-args": {
- "version": "2.0.1",
- "resolved": "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
- "integrity": "sha1-eCDZsWEgzFXKmud5JoCufbptf+I="
+ "html-escaper": {
+ "version": "2.0.0",
+ "resolved": "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.0.tgz",
+ "integrity": "sha1-ceh/kx3j/gnlZmGrmimq3scHtJE=",
+ "dev": true
},
- "process-on-spawn": {
- "version": "1.0.0",
- "resolved": "https://registry.yarnpkg.com/process-on-spawn/-/process-on-spawn-1.0.0.tgz",
- "integrity": "sha1-lbBaIwc9MKF6z9ySpEDv0rrv3JM=",
+ "http-signature": {
+ "version": "1.2.0",
+ "resolved": "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz",
+ "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=",
+ "dev": true,
"requires": {
- "fromentries": "1.2.0"
+ "assert-plus": "^1.0.0",
+ "jsprim": "^1.2.2",
+ "sshpk": "^1.7.0"
}
},
- "progress": {
- "version": "2.0.3",
- "resolved": "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz",
- "integrity": "sha1-foz42PW48jnBvGi+tOt4Vn1XLvg="
- },
- "psl": {
- "version": "1.7.0",
- "resolved": "https://registry.yarnpkg.com/psl/-/psl-1.7.0.tgz",
- "integrity": "sha1-8cTEeo75cWfepda79IFtc26ISjw="
- },
- "punycode": {
- "version": "2.1.1",
- "resolved": "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz",
- "integrity": "sha1-tYsBCsQMIsVldhbI0sLALHv0eew="
+ "iconv-lite": {
+ "version": "0.4.24",
+ "resolved": "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz",
+ "integrity": "sha1-ICK0sl+93CHS9SSXSkdKr+czkIs=",
+ "dev": true,
+ "requires": {
+ "safer-buffer": ">= 2.1.2 < 3"
+ }
},
- "qs": {
- "version": "6.5.2",
- "resolved": "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz",
- "integrity": "sha1-yzroBuh0BERYTvFUzo7pjUA/PjY="
+ "ignore": {
+ "version": "4.0.6",
+ "resolved": "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz",
+ "integrity": "sha1-dQ49tYYgh7RzfrrIIH/9HvJ7Jfw=",
+ "dev": true
},
- "rc": {
- "version": "1.2.8",
- "resolved": "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz",
- "integrity": "sha1-zZJL9SAKB1uDwYjNa54hG3/A0+0=",
+ "ignore-walk": {
+ "version": "3.0.3",
+ "resolved": "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.3.tgz",
+ "integrity": "sha1-AX4kRxhL/q3nwjjkrv3R6PlbHjc=",
+ "dev": true,
"requires": {
- "deep-extend": "0.6.0",
- "ini": "1.3.5",
- "minimist": "1.2.5",
- "strip-json-comments": "2.0.1"
+ "minimatch": "^3.0.4"
}
},
- "readable-stream": {
- "version": "2.3.7",
- "resolved": "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz",
- "integrity": "sha1-Hsoc9xGu+BTAT2IlKjamL2yyO1c=",
+ "import-fresh": {
+ "version": "3.2.1",
+ "resolved": "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.2.1.tgz",
+ "integrity": "sha1-Yz/2GFBueTr1rJG/SLcmd+FcvmY=",
+ "dev": true,
"requires": {
- "core-util-is": "1.0.2",
- "inherits": "2.0.4",
- "isarray": "1.0.0",
- "process-nextick-args": "2.0.1",
- "safe-buffer": "5.1.2",
- "string_decoder": "1.1.1",
- "util-deprecate": "1.0.2"
+ "parent-module": "^1.0.0",
+ "resolve-from": "^4.0.0"
},
"dependencies": {
- "safe-buffer": {
- "version": "5.1.2",
- "resolved": "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz",
- "integrity": "sha1-mR7GnSluAxN0fVm9/St0XDX4go0="
+ "resolve-from": {
+ "version": "4.0.0",
+ "resolved": "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz",
+ "integrity": "sha1-SrzYUq0y3Xuqv+m0DgCjbbXzkuY=",
+ "dev": true
}
}
},
- "readdirp": {
- "version": "3.2.0",
- "resolved": "https://registry.yarnpkg.com/readdirp/-/readdirp-3.2.0.tgz",
- "integrity": "sha1-wwwzNSsSyW37S4lUIaSf1alZODk=",
- "requires": {
- "picomatch": "2.2.1"
- }
+ "imurmurhash": {
+ "version": "0.1.4",
+ "resolved": "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz",
+ "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=",
+ "dev": true
},
- "regenerate": {
- "version": "1.4.0",
- "resolved": "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.0.tgz",
- "integrity": "sha1-SoVuxLVuQHfFV1icroXnpMiGmhE="
+ "indent-string": {
+ "version": "4.0.0",
+ "resolved": "https://registry.yarnpkg.com/indent-string/-/indent-string-4.0.0.tgz",
+ "integrity": "sha1-Yk+PRJfWGbLZdoUx1Y9BIoVNclE=",
+ "dev": true
},
- "regenerate-unicode-properties": {
- "version": "8.2.0",
- "resolved": "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-8.2.0.tgz",
- "integrity": "sha1-5d5xEdZV57pgwFfb6f83yH5lzew=",
+ "inflight": {
+ "version": "1.0.6",
+ "resolved": "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz",
+ "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
+ "dev": true,
"requires": {
- "regenerate": "1.4.0"
+ "once": "^1.3.0",
+ "wrappy": "1"
}
},
- "regenerator-runtime": {
- "version": "0.13.5",
- "resolved": "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.5.tgz",
- "integrity": "sha1-2Hih0JS0MG0QuQlkhLM+vVXiZpc="
+ "inherits": {
+ "version": "2.0.4",
+ "resolved": "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz",
+ "integrity": "sha1-D6LGT5MpF8NDOg3tVTY6rjdBa3w=",
+ "dev": true
},
- "regenerator-transform": {
- "version": "0.14.3",
- "resolved": "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.14.3.tgz",
- "integrity": "sha1-VK6/8u9YwK5h5pWtG5qdZZlf/3g=",
- "requires": {
- "@babel/runtime": "7.8.7",
- "private": "0.1.8"
+ "ini": {
+ "version": "1.3.5",
+ "resolved": "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz",
+ "integrity": "sha1-7uJfVtscnsYIXgwid4CD9Zar+Sc=",
+ "dev": true
+ },
+ "inquirer": {
+ "version": "7.1.0",
+ "resolved": "https://registry.yarnpkg.com/inquirer/-/inquirer-7.1.0.tgz",
+ "integrity": "sha1-EpigGFmIPhfHJkuChwrhA0+S3Sk=",
+ "dev": true,
+ "requires": {
+ "ansi-escapes": "^4.2.1",
+ "chalk": "^3.0.0",
+ "cli-cursor": "^3.1.0",
+ "cli-width": "^2.0.0",
+ "external-editor": "^3.0.3",
+ "figures": "^3.0.0",
+ "lodash": "^4.17.15",
+ "mute-stream": "0.0.8",
+ "run-async": "^2.4.0",
+ "rxjs": "^6.5.3",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0",
+ "through": "^2.3.6"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "5.0.0",
+ "resolved": "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz",
+ "integrity": "sha1-OIU59VF5vzkznIGvMKZU1p+Hy3U=",
+ "dev": true
+ },
+ "ansi-styles": {
+ "version": "4.2.1",
+ "resolved": "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.2.1.tgz",
+ "integrity": "sha1-kK51xCTQCNJiTFvynq0xd+v881k=",
+ "dev": true,
+ "requires": {
+ "@types/color-name": "^1.1.1",
+ "color-convert": "^2.0.1"
+ }
+ },
+ "chalk": {
+ "version": "3.0.0",
+ "resolved": "https://registry.yarnpkg.com/chalk/-/chalk-3.0.0.tgz",
+ "integrity": "sha1-P3PCv1JlkfV0zEksUeJFY0n4ROQ=",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ }
+ },
+ "color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM=",
+ "dev": true,
+ "requires": {
+ "color-name": "~1.1.4"
+ }
+ },
+ "color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha1-wqCah6y95pVD3m9j+jmVyCbFNqI=",
+ "dev": true
+ },
+ "emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha1-6Bj9ac5cz8tARZT4QpY79TFkzDc=",
+ "dev": true
+ },
+ "is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha1-8Rb4Bk/pCz94RKOJl8C3UFEmnx0=",
+ "dev": true
+ },
+ "string-width": {
+ "version": "4.2.0",
+ "resolved": "https://registry.yarnpkg.com/string-width/-/string-width-4.2.0.tgz",
+ "integrity": "sha1-lSGCxGzHssMT0VluYjmSvRY7crU=",
+ "dev": true,
+ "requires": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.0"
+ }
+ },
+ "strip-ansi": {
+ "version": "6.0.0",
+ "resolved": "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.0.tgz",
+ "integrity": "sha1-CxVx3XZpzNTz4G4U7x7tJiJa5TI=",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^5.0.0"
+ }
+ }
}
},
- "regexpp": {
- "version": "2.0.1",
- "resolved": "https://registry.yarnpkg.com/regexpp/-/regexpp-2.0.1.tgz",
- "integrity": "sha1-jRnTHPYySCtYkEn4KB+T28uk0H8="
- },
- "regexpu-core": {
- "version": "4.7.0",
- "resolved": "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-4.7.0.tgz",
- "integrity": "sha1-/L9FjFBDGwu3tF1pZ7gZLZHz2Tg=",
+ "invariant": {
+ "version": "2.2.4",
+ "resolved": "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz",
+ "integrity": "sha1-YQ88ksk1nOHbYW5TgAjSP/NRWOY=",
+ "dev": true,
"requires": {
- "regenerate": "1.4.0",
- "regenerate-unicode-properties": "8.2.0",
- "regjsgen": "0.5.1",
- "regjsparser": "0.6.4",
- "unicode-match-property-ecmascript": "1.0.4",
- "unicode-match-property-value-ecmascript": "1.2.0"
+ "loose-envify": "^1.0.0"
}
},
- "regjsgen": {
- "version": "0.5.1",
- "resolved": "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.5.1.tgz",
- "integrity": "sha1-SPC/Gl6iBRlpKcDZeYtC0e2YRDw="
- },
- "regjsparser": {
- "version": "0.6.4",
- "resolved": "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.6.4.tgz",
- "integrity": "sha1-p2n4aEMIQBpm6bUp0kNv9NBmYnI=",
- "requires": {
- "jsesc": "0.5.0"
- },
- "dependencies": {
- "jsesc": {
- "version": "0.5.0",
- "resolved": "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz",
- "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0="
- }
- }
+ "ip-regex": {
+ "version": "2.1.0",
+ "resolved": "https://registry.yarnpkg.com/ip-regex/-/ip-regex-2.1.0.tgz",
+ "integrity": "sha1-+ni/XS5pE8kRzp+BnuUUa7bYROk=",
+ "dev": true
},
- "release-zalgo": {
- "version": "1.0.0",
- "resolved": "https://registry.yarnpkg.com/release-zalgo/-/release-zalgo-1.0.0.tgz",
- "integrity": "sha1-CXALflB0Mpc5Mw5TXFqQ+2eFFzA=",
+ "is-binary-path": {
+ "version": "2.1.0",
+ "resolved": "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz",
+ "integrity": "sha1-6h9/O4DwZCNug0cPhsCcJU+0Wwk=",
+ "dev": true,
"requires": {
- "es6-error": "4.1.1"
+ "binary-extensions": "^2.0.0"
}
},
- "request": {
- "version": "2.88.2",
- "resolved": "https://registry.yarnpkg.com/request/-/request-2.88.2.tgz",
- "integrity": "sha1-1zyRhzHLWofaBH4gcjQUb2ZNErM=",
- "requires": {
- "aws-sign2": "0.7.0",
- "aws4": "1.9.1",
- "caseless": "0.12.0",
- "combined-stream": "1.0.8",
- "extend": "3.0.2",
- "forever-agent": "0.6.1",
- "form-data": "2.3.3",
- "har-validator": "5.1.3",
- "http-signature": "1.2.0",
- "is-typedarray": "1.0.0",
- "isstream": "0.1.2",
- "json-stringify-safe": "5.0.1",
- "mime-types": "2.1.26",
- "oauth-sign": "0.9.0",
- "performance-now": "2.1.0",
- "qs": "6.5.2",
- "safe-buffer": "5.2.0",
- "tough-cookie": "2.5.0",
- "tunnel-agent": "0.6.0",
- "uuid": "3.4.0"
- }
+ "is-buffer": {
+ "version": "2.0.4",
+ "resolved": "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.4.tgz",
+ "integrity": "sha1-PlcvI8hBGlz9lVfISeNmXgspBiM=",
+ "dev": true
},
- "request-promise-core": {
- "version": "1.1.3",
- "resolved": "https://registry.yarnpkg.com/request-promise-core/-/request-promise-core-1.1.3.tgz",
- "integrity": "sha1-6aPAgbUTgN/qZ3M2Bh/qh5qCnuk=",
- "requires": {
- "lodash": "4.17.15"
- }
+ "is-callable": {
+ "version": "1.1.5",
+ "resolved": "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.5.tgz",
+ "integrity": "sha1-9+RrWWiQRW23Tn9ul2yzJz0G+qs=",
+ "dev": true
},
- "request-promise-native": {
- "version": "1.0.8",
- "resolved": "https://registry.yarnpkg.com/request-promise-native/-/request-promise-native-1.0.8.tgz",
- "integrity": "sha1-pFW5YLgm5E4r+Jma9k3/K/5YyzY=",
- "requires": {
- "request-promise-core": "1.1.3",
- "stealthy-require": "1.1.1",
- "tough-cookie": "2.5.0"
- }
+ "is-date-object": {
+ "version": "1.0.2",
+ "resolved": "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.2.tgz",
+ "integrity": "sha1-vac28s2P0G0yhE53Q7+nSUw7/X4=",
+ "dev": true
},
- "require-directory": {
+ "is-extglob": {
"version": "2.1.1",
- "resolved": "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz",
- "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I="
+ "resolved": "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz",
+ "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=",
+ "dev": true
},
- "require-main-filename": {
+ "is-fullwidth-code-point": {
"version": "2.0.0",
- "resolved": "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz",
- "integrity": "sha1-0LMp7MfMD2Fkn2IhW+aa9UqomJs="
- },
- "resolve": {
- "version": "1.15.1",
- "resolved": "https://registry.yarnpkg.com/resolve/-/resolve-1.15.1.tgz",
- "integrity": "sha1-J73N7/6vLWJEuVuw+fS0ZTRR8+g=",
- "requires": {
- "path-parse": "1.0.6"
- }
- },
- "resolve-from": {
- "version": "5.0.0",
- "resolved": "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz",
- "integrity": "sha1-w1IlhD3493bfIcV1V7wIfp39/Gk="
- },
- "restore-cursor": {
- "version": "3.1.0",
- "resolved": "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz",
- "integrity": "sha1-OfZ8VLOnpYzqUjbZXPADQjljH34=",
- "requires": {
- "onetime": "5.1.0",
- "signal-exit": "3.0.2"
- }
- },
- "reusify": {
- "version": "1.0.4",
- "resolved": "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz",
- "integrity": "sha1-kNo4Kx4SbvwCFG6QhFqI2xKSXXY="
+ "resolved": "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
+ "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=",
+ "dev": true
},
- "rimraf": {
- "version": "3.0.2",
- "resolved": "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz",
- "integrity": "sha1-8aVAK6YiCtUswSgrrBrjqkn9Bho=",
+ "is-glob": {
+ "version": "4.0.1",
+ "resolved": "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz",
+ "integrity": "sha1-dWfb6fL14kZ7x3q4PEopSCQHpdw=",
+ "dev": true,
"requires": {
- "glob": "7.1.6"
+ "is-extglob": "^2.1.1"
}
},
- "rollup": {
- "version": "2.0.6",
- "resolved": "https://registry.yarnpkg.com/rollup/-/rollup-2.0.6.tgz",
- "integrity": "sha1-hl1rsVooz/NCnqHcVyNgE2Ycud4="
+ "is-number": {
+ "version": "7.0.0",
+ "resolved": "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz",
+ "integrity": "sha1-dTU0W4lnNNX4DE0GxQlVUnoU8Ss=",
+ "dev": true
},
- "rollup-plugin-babel": {
- "version": "4.4.0",
- "resolved": "https://registry.yarnpkg.com/rollup-plugin-babel/-/rollup-plugin-babel-4.4.0.tgz",
- "integrity": "sha1-0VvSWUZqnRrMvbL+L/8XxS0DCss=",
+ "is-plain-object": {
+ "version": "3.0.0",
+ "resolved": "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-3.0.0.tgz",
+ "integrity": "sha1-R7/F2htdUNZBEIBsGZNZSC51qSg=",
+ "dev": true,
"requires": {
- "@babel/helper-module-imports": "7.8.3",
- "rollup-pluginutils": "2.8.2"
+ "isobject": "^4.0.0"
}
},
- "rollup-plugin-copy": {
- "version": "3.3.0",
- "resolved": "https://registry.yarnpkg.com/rollup-plugin-copy/-/rollup-plugin-copy-3.3.0.tgz",
- "integrity": "sha1-W6IwBH+GufcDopKI8kKUilWA57k=",
- "requires": {
- "@types/fs-extra": "8.1.0",
- "colorette": "1.1.0",
- "fs-extra": "8.1.0",
- "globby": "10.0.1",
- "is-plain-object": "3.0.0"
- }
+ "is-promise": {
+ "version": "2.1.0",
+ "resolved": "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz",
+ "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=",
+ "dev": true
},
- "rollup-plugin-license": {
- "version": "0.13.0",
- "resolved": "https://registry.yarnpkg.com/rollup-plugin-license/-/rollup-plugin-license-0.13.0.tgz",
- "integrity": "sha1-7p8ACi4qldt5NLGnWEZR8j6NqLQ=",
+ "is-regex": {
+ "version": "1.0.5",
+ "resolved": "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.5.tgz",
+ "integrity": "sha1-OdWJo1i/GJZ/cmlnEguPwa7XTq4=",
+ "dev": true,
"requires": {
- "commenting": "1.1.0",
- "glob": "7.1.6",
- "lodash": "4.17.15",
- "magic-string": "0.25.4",
- "mkdirp": "0.5.1",
- "moment": "2.24.0",
- "spdx-expression-validate": "2.0.0",
- "spdx-satisfies": "5.0.0"
+ "has": "^1.0.3"
}
},
- "rollup-plugin-nodent": {
- "version": "0.2.2",
- "resolved": "https://registry.yarnpkg.com/rollup-plugin-nodent/-/rollup-plugin-nodent-0.2.2.tgz",
- "integrity": "sha1-c+m5dLWsN16ymElVQfxysJV4T6w=",
- "requires": {
- "acorn-dynamic-import": "3.0.0",
- "nodent-compiler": "3.2.11",
- "rollup-pluginutils": "2.8.2"
- }
+ "is-stream": {
+ "version": "2.0.0",
+ "resolved": "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.0.tgz",
+ "integrity": "sha1-venDJoDW+uBBKdasnZIc54FfeOM=",
+ "dev": true
},
- "rollup-plugin-terser": {
- "version": "5.3.0",
- "resolved": "https://registry.yarnpkg.com/rollup-plugin-terser/-/rollup-plugin-terser-5.3.0.tgz",
- "integrity": "sha1-nA3TPVdx35YwzQJ9aiVZGH9liF4=",
+ "is-symbol": {
+ "version": "1.0.3",
+ "resolved": "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.3.tgz",
+ "integrity": "sha1-OOEBS55jKb4N6dJKQU/XRB7GGTc=",
+ "dev": true,
"requires": {
- "@babel/code-frame": "7.8.3",
- "jest-worker": "24.9.0",
- "rollup-pluginutils": "2.8.2",
- "serialize-javascript": "2.1.2",
- "terser": "4.6.6"
+ "has-symbols": "^1.0.1"
}
},
- "rollup-plugin-uglify": {
- "version": "6.0.4",
- "resolved": "https://registry.yarnpkg.com/rollup-plugin-uglify/-/rollup-plugin-uglify-6.0.4.tgz",
- "integrity": "sha1-ZaCVnZFYZifx5Gp9uWb9UE7GxOY=",
- "requires": {
- "@babel/code-frame": "7.8.3",
- "jest-worker": "24.9.0",
- "serialize-javascript": "2.1.2",
- "uglify-js": "3.8.0"
- }
+ "is-typedarray": {
+ "version": "1.0.0",
+ "resolved": "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz",
+ "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=",
+ "dev": true
},
- "rollup-pluginutils": {
- "version": "2.8.2",
- "resolved": "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz",
- "integrity": "sha1-cvKvB0i1kjZNvTOJ5gDlqURKNR4=",
- "requires": {
- "estree-walker": "0.6.1"
- }
+ "is-windows": {
+ "version": "1.0.2",
+ "resolved": "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz",
+ "integrity": "sha1-0YUOuXkezRjmGCzhKjDzlmNLsZ0=",
+ "dev": true
},
- "run-async": {
- "version": "2.4.0",
- "resolved": "https://registry.yarnpkg.com/run-async/-/run-async-2.4.0.tgz",
- "integrity": "sha1-5ZBUpbhods+uB/Qx0Yy63cWU8eg=",
- "requires": {
- "is-promise": "2.1.0"
- }
+ "isarray": {
+ "version": "1.0.0",
+ "resolved": "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz",
+ "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
+ "dev": true
},
- "run-parallel": {
- "version": "1.1.9",
- "resolved": "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.1.9.tgz",
- "integrity": "sha1-yd06fPn0ssS2JE4XOm7YZuYd1nk="
+ "isexe": {
+ "version": "2.0.0",
+ "resolved": "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz",
+ "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=",
+ "dev": true
},
- "rxjs": {
- "version": "6.5.4",
- "resolved": "https://registry.yarnpkg.com/rxjs/-/rxjs-6.5.4.tgz",
- "integrity": "sha1-4Hd/4NGEzseHLfFH8wNXLUFOIRw=",
- "requires": {
- "tslib": "1.11.1"
- }
+ "isobject": {
+ "version": "4.0.0",
+ "resolved": "https://registry.yarnpkg.com/isobject/-/isobject-4.0.0.tgz",
+ "integrity": "sha1-PxyRVec7GSAiqAgZus0DQ3EWl7A=",
+ "dev": true
},
- "safe-buffer": {
- "version": "5.2.0",
- "resolved": "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.0.tgz",
- "integrity": "sha1-t02uxJsRSPiMZLaNSbHoFcHy9Rk="
+ "isstream": {
+ "version": "0.1.2",
+ "resolved": "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz",
+ "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=",
+ "dev": true
},
- "safer-buffer": {
- "version": "2.1.2",
- "resolved": "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz",
- "integrity": "sha1-RPoWGwGHuVSd2Eu5GAL5vYOFzWo="
+ "istanbul": {
+ "version": "0.4.5",
+ "resolved": "https://registry.yarnpkg.com/istanbul/-/istanbul-0.4.5.tgz",
+ "integrity": "sha1-ZcfXPUxNqE1POsMQuRj7C4Azczs=",
+ "dev": true,
+ "requires": {
+ "abbrev": "1.0.x",
+ "async": "1.x",
+ "escodegen": "1.8.x",
+ "esprima": "2.7.x",
+ "glob": "^5.0.15",
+ "handlebars": "^4.0.1",
+ "js-yaml": "3.x",
+ "mkdirp": "0.5.x",
+ "nopt": "3.x",
+ "once": "1.x",
+ "resolve": "1.1.x",
+ "supports-color": "^3.1.0",
+ "which": "^1.1.1",
+ "wordwrap": "^1.0.0"
+ },
+ "dependencies": {
+ "abbrev": {
+ "version": "1.0.9",
+ "resolved": "https://registry.yarnpkg.com/abbrev/-/abbrev-1.0.9.tgz",
+ "integrity": "sha1-kbR5JYinc4wl813W9jdSovh3YTU=",
+ "dev": true
+ },
+ "glob": {
+ "version": "5.0.15",
+ "resolved": "https://registry.yarnpkg.com/glob/-/glob-5.0.15.tgz",
+ "integrity": "sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E=",
+ "dev": true,
+ "requires": {
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "2 || 3",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ }
+ },
+ "has-flag": {
+ "version": "1.0.0",
+ "resolved": "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz",
+ "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=",
+ "dev": true
+ },
+ "resolve": {
+ "version": "1.1.7",
+ "resolved": "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz",
+ "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=",
+ "dev": true
+ },
+ "supports-color": {
+ "version": "3.2.3",
+ "resolved": "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz",
+ "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=",
+ "dev": true,
+ "requires": {
+ "has-flag": "^1.0.0"
+ }
+ }
+ }
},
- "sax": {
- "version": "1.2.4",
- "resolved": "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz",
- "integrity": "sha1-KBYjTiN4vdxOU1T6tcqold9xANk="
+ "istanbul-lib-coverage": {
+ "version": "3.0.0",
+ "resolved": "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz",
+ "integrity": "sha1-9ZRKN8cLVQsCp4pcOyBVsoDOyOw=",
+ "dev": true
},
- "saxes": {
- "version": "3.1.11",
- "resolved": "https://registry.yarnpkg.com/saxes/-/saxes-3.1.11.tgz",
- "integrity": "sha1-1Z0f0zLskq2YouCy7mRHAjhLHFs=",
+ "istanbul-lib-hook": {
+ "version": "3.0.0",
+ "resolved": "https://registry.yarnpkg.com/istanbul-lib-hook/-/istanbul-lib-hook-3.0.0.tgz",
+ "integrity": "sha1-j4TJQ0iIzGsdCp1wkqdtI56/DMY=",
+ "dev": true,
"requires": {
- "xmlchars": "2.2.0"
+ "append-transform": "^2.0.0"
}
},
- "semver": {
- "version": "5.7.1",
- "resolved": "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz",
- "integrity": "sha1-qVT5Ma66UI0we78Gnv8MAclhFvc="
- },
- "serialize-javascript": {
- "version": "2.1.2",
- "resolved": "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-2.1.2.tgz",
- "integrity": "sha1-7OxTsOAxe9yV73arcHS3OEeF+mE="
- },
- "set-blocking": {
- "version": "2.0.0",
- "resolved": "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz",
- "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc="
+ "istanbul-lib-instrument": {
+ "version": "4.0.1",
+ "resolved": "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.1.tgz",
+ "integrity": "sha1-YfE6wsls/vsHb+cTEVbMBZB4dOY=",
+ "dev": true,
+ "requires": {
+ "@babel/core": "^7.7.5",
+ "@babel/parser": "^7.7.5",
+ "@babel/template": "^7.7.4",
+ "@babel/traverse": "^7.7.4",
+ "@istanbuljs/schema": "^0.1.2",
+ "istanbul-lib-coverage": "^3.0.0",
+ "semver": "^6.3.0"
+ },
+ "dependencies": {
+ "semver": {
+ "version": "6.3.0",
+ "resolved": "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz",
+ "integrity": "sha1-7gpkyK9ejO6mdoexM3YeG+y9HT0=",
+ "dev": true
+ }
+ }
},
- "shebang-command": {
- "version": "2.0.0",
- "resolved": "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz",
- "integrity": "sha1-zNCvT4g1+9wmW4JGGq8MNmY/NOo=",
+ "istanbul-lib-processinfo": {
+ "version": "2.0.2",
+ "resolved": "https://registry.yarnpkg.com/istanbul-lib-processinfo/-/istanbul-lib-processinfo-2.0.2.tgz",
+ "integrity": "sha1-4UJlFGYiRLLyXfco6P0bo1/lO5w=",
+ "dev": true,
"requires": {
- "shebang-regex": "3.0.0"
+ "archy": "^1.0.0",
+ "cross-spawn": "^7.0.0",
+ "istanbul-lib-coverage": "^3.0.0-alpha.1",
+ "make-dir": "^3.0.0",
+ "p-map": "^3.0.0",
+ "rimraf": "^3.0.0",
+ "uuid": "^3.3.3"
}
},
- "shebang-regex": {
+ "istanbul-lib-report": {
"version": "3.0.0",
- "resolved": "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz",
- "integrity": "sha1-rhbxZE2HPsrYQ7AwexQzYtTEIXI="
- },
- "signal-exit": {
- "version": "3.0.2",
- "resolved": "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz",
- "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0="
- },
- "simple-concat": {
- "version": "1.0.0",
- "resolved": "https://registry.yarnpkg.com/simple-concat/-/simple-concat-1.0.0.tgz",
- "integrity": "sha1-c0TLuLbib7J9ZrL8hvn21Zl1IcY="
+ "resolved": "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz",
+ "integrity": "sha1-dRj+UupE3jcvRgp2tezan/tz2KY=",
+ "dev": true,
+ "requires": {
+ "istanbul-lib-coverage": "^3.0.0",
+ "make-dir": "^3.0.0",
+ "supports-color": "^7.1.0"
+ }
},
- "simple-get": {
- "version": "3.1.0",
- "resolved": "https://registry.yarnpkg.com/simple-get/-/simple-get-3.1.0.tgz",
- "integrity": "sha1-tFvgYkNeUNFZVAtXYgLO7EC5xrM=",
+ "istanbul-lib-source-maps": {
+ "version": "4.0.0",
+ "resolved": "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.0.tgz",
+ "integrity": "sha1-dXQ85tlruG3H7kNSz2Nmoj8LGtk=",
+ "dev": true,
"requires": {
- "decompress-response": "4.2.1",
- "once": "1.4.0",
- "simple-concat": "1.0.0"
+ "debug": "^4.1.1",
+ "istanbul-lib-coverage": "^3.0.0",
+ "source-map": "^0.6.1"
}
},
- "slash": {
+ "istanbul-reports": {
"version": "3.0.0",
- "resolved": "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz",
- "integrity": "sha1-ZTm+hwwWWtvVJAIg2+Nh8bxNRjQ="
+ "resolved": "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.0.0.tgz",
+ "integrity": "sha1-1NFtA125lYG2GU4Rm782yWPF63A=",
+ "dev": true,
+ "requires": {
+ "html-escaper": "^2.0.0",
+ "istanbul-lib-report": "^3.0.0"
+ }
},
- "slice-ansi": {
- "version": "2.1.0",
- "resolved": "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-2.1.0.tgz",
- "integrity": "sha1-ys12k0YaY3pXiNkqfdT7oGjoFjY=",
+ "jest-worker": {
+ "version": "24.9.0",
+ "resolved": "https://registry.yarnpkg.com/jest-worker/-/jest-worker-24.9.0.tgz",
+ "integrity": "sha1-Xb/bWy0yLphWeJgjipaXvM5ns+U=",
+ "dev": true,
"requires": {
- "ansi-styles": "3.2.1",
- "astral-regex": "1.0.0",
- "is-fullwidth-code-point": "2.0.0"
+ "merge-stream": "^2.0.0",
+ "supports-color": "^6.1.0"
+ },
+ "dependencies": {
+ "supports-color": {
+ "version": "6.1.0",
+ "resolved": "https://registry.yarnpkg.com/supports-color/-/supports-color-6.1.0.tgz",
+ "integrity": "sha1-B2Srxpxj1ayELdSGfo0CXogN+PM=",
+ "dev": true,
+ "requires": {
+ "has-flag": "^3.0.0"
+ }
+ }
}
},
- "source-map": {
- "version": "0.6.1",
- "resolved": "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz",
- "integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM="
+ "js-tokens": {
+ "version": "4.0.0",
+ "resolved": "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz",
+ "integrity": "sha1-GSA/tZmR35jjoocFDUZHzerzJJk=",
+ "dev": true
},
- "source-map-support": {
- "version": "0.5.16",
- "resolved": "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.16.tgz",
- "integrity": "sha1-CuBp5/47p1OMZMmFFeNTOerFoEI=",
+ "js-yaml": {
+ "version": "3.13.1",
+ "resolved": "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.13.1.tgz",
+ "integrity": "sha1-r/FRswv9+o5J4F2iLnQV6d+jeEc=",
+ "dev": true,
"requires": {
- "buffer-from": "1.1.1",
- "source-map": "0.6.1"
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
+ },
+ "dependencies": {
+ "esprima": {
+ "version": "4.0.1",
+ "resolved": "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz",
+ "integrity": "sha1-E7BM2z5sXRnfkatph6hpVhmwqnE=",
+ "dev": true
+ }
}
},
- "sourcemap-codec": {
- "version": "1.4.8",
- "resolved": "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz",
- "integrity": "sha1-6oBL2UhXQC5pktBaOO8a41qatMQ="
+ "jsbn": {
+ "version": "0.1.1",
+ "resolved": "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz",
+ "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=",
+ "dev": true
},
- "spawn-wrap": {
- "version": "2.0.0",
- "resolved": "https://registry.yarnpkg.com/spawn-wrap/-/spawn-wrap-2.0.0.tgz",
- "integrity": "sha1-EDaFuLj5t5dxMYgnqnhlCmENRX4=",
- "requires": {
- "foreground-child": "2.0.0",
- "is-windows": "1.0.2",
- "make-dir": "3.0.2",
- "rimraf": "3.0.2",
- "signal-exit": "3.0.2",
- "which": "2.0.2"
+ "jsdom": {
+ "version": "15.2.1",
+ "resolved": "https://registry.yarnpkg.com/jsdom/-/jsdom-15.2.1.tgz",
+ "integrity": "sha1-0v6xrvcYP4a+UhuMaDP/UpbQfsU=",
+ "dev": true,
+ "requires": {
+ "abab": "^2.0.0",
+ "acorn": "^7.1.0",
+ "acorn-globals": "^4.3.2",
+ "array-equal": "^1.0.0",
+ "cssom": "^0.4.1",
+ "cssstyle": "^2.0.0",
+ "data-urls": "^1.1.0",
+ "domexception": "^1.0.1",
+ "escodegen": "^1.11.1",
+ "html-encoding-sniffer": "^1.0.2",
+ "nwsapi": "^2.2.0",
+ "parse5": "5.1.0",
+ "pn": "^1.1.0",
+ "request": "^2.88.0",
+ "request-promise-native": "^1.0.7",
+ "saxes": "^3.1.9",
+ "symbol-tree": "^3.2.2",
+ "tough-cookie": "^3.0.1",
+ "w3c-hr-time": "^1.0.1",
+ "w3c-xmlserializer": "^1.1.2",
+ "webidl-conversions": "^4.0.2",
+ "whatwg-encoding": "^1.0.5",
+ "whatwg-mimetype": "^2.3.0",
+ "whatwg-url": "^7.0.0",
+ "ws": "^7.0.0",
+ "xml-name-validator": "^3.0.0"
},
"dependencies": {
- "which": {
- "version": "2.0.2",
- "resolved": "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz",
- "integrity": "sha1-fGqN0KY2oDJ+ELWckobu6T8/UbE=",
+ "escodegen": {
+ "version": "1.14.1",
+ "resolved": "https://registry.yarnpkg.com/escodegen/-/escodegen-1.14.1.tgz",
+ "integrity": "sha1-ugHQyCeLXpWppFNQFCAmZZAnpFc=",
+ "dev": true,
+ "requires": {
+ "esprima": "^4.0.1",
+ "estraverse": "^4.2.0",
+ "esutils": "^2.0.2",
+ "optionator": "^0.8.1",
+ "source-map": "~0.6.1"
+ }
+ },
+ "esprima": {
+ "version": "4.0.1",
+ "resolved": "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz",
+ "integrity": "sha1-E7BM2z5sXRnfkatph6hpVhmwqnE=",
+ "dev": true
+ },
+ "tough-cookie": {
+ "version": "3.0.1",
+ "resolved": "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-3.0.1.tgz",
+ "integrity": "sha1-nfT1fnOcJpMKAYGEiH9K233Kc7I=",
+ "dev": true,
"requires": {
- "isexe": "2.0.0"
+ "ip-regex": "^2.1.0",
+ "psl": "^1.1.28",
+ "punycode": "^2.1.1"
}
}
}
},
- "spdx-compare": {
- "version": "1.0.0",
- "resolved": "https://registry.yarnpkg.com/spdx-compare/-/spdx-compare-1.0.0.tgz",
- "integrity": "sha1-LFXxFzYgeNdAnm17CM5wqFfNPtc=",
- "requires": {
- "array-find-index": "1.0.2",
- "spdx-expression-parse": "3.0.0",
- "spdx-ranges": "2.1.1"
- }
+ "jsesc": {
+ "version": "2.5.2",
+ "resolved": "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz",
+ "integrity": "sha1-gFZNLkg9rPbo7yCWUKZ98/DCg6Q=",
+ "dev": true
},
- "spdx-exceptions": {
- "version": "2.2.0",
- "resolved": "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz",
- "integrity": "sha1-LqRQrudPKom/uUUZwH/Nb0EyKXc="
+ "json-schema": {
+ "version": "0.2.3",
+ "resolved": "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz",
+ "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=",
+ "dev": true
},
- "spdx-expression-parse": {
- "version": "3.0.0",
- "resolved": "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz",
- "integrity": "sha1-meEZt6XaAOBUkcn6M4t5BII7QdA=",
- "requires": {
- "spdx-exceptions": "2.2.0",
- "spdx-license-ids": "3.0.5"
- }
+ "json-schema-traverse": {
+ "version": "0.4.1",
+ "resolved": "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
+ "integrity": "sha1-afaofZUTq4u4/mO9sJecRI5oRmA=",
+ "dev": true
},
- "spdx-expression-validate": {
- "version": "2.0.0",
- "resolved": "https://registry.yarnpkg.com/spdx-expression-validate/-/spdx-expression-validate-2.0.0.tgz",
- "integrity": "sha1-JclAjhxj+tlP/1UXu3EB/80jNQs=",
- "requires": {
- "spdx-expression-parse": "3.0.0"
- }
+ "json-stable-stringify-without-jsonify": {
+ "version": "1.0.1",
+ "resolved": "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
+ "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=",
+ "dev": true
},
- "spdx-license-ids": {
- "version": "3.0.5",
- "resolved": "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz",
- "integrity": "sha1-NpS1gEVnpFjTyARYQqY1hjL2JlQ="
+ "json-stringify-safe": {
+ "version": "5.0.1",
+ "resolved": "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
+ "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=",
+ "dev": true
},
- "spdx-ranges": {
+ "json5": {
"version": "2.1.1",
- "resolved": "https://registry.yarnpkg.com/spdx-ranges/-/spdx-ranges-2.1.1.tgz",
- "integrity": "sha1-h1c5J7pR6Ss/RVCrYL/IPdB7rCA="
- },
- "spdx-satisfies": {
- "version": "5.0.0",
- "resolved": "https://registry.yarnpkg.com/spdx-satisfies/-/spdx-satisfies-5.0.0.tgz",
- "integrity": "sha1-10C48UyuraNvswdine6HFGlwolY=",
+ "resolved": "https://registry.yarnpkg.com/json5/-/json5-2.1.1.tgz",
+ "integrity": "sha1-gbbLBOm6SW8ccAXQe0NoomOPkLY=",
+ "dev": true,
"requires": {
- "spdx-compare": "1.0.0",
- "spdx-expression-parse": "3.0.0",
- "spdx-ranges": "2.1.1"
+ "minimist": "^1.2.0"
}
},
- "sprintf-js": {
- "version": "1.0.3",
- "resolved": "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz",
- "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw="
+ "jsonfile": {
+ "version": "4.0.0",
+ "resolved": "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz",
+ "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "^4.1.6"
+ }
},
- "sshpk": {
- "version": "1.16.1",
- "resolved": "https://registry.yarnpkg.com/sshpk/-/sshpk-1.16.1.tgz",
- "integrity": "sha1-+2YcC+8ps520B2nuOfpwCT1vaHc=",
+ "jsprim": {
+ "version": "1.4.1",
+ "resolved": "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz",
+ "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=",
+ "dev": true,
"requires": {
- "asn1": "0.2.4",
"assert-plus": "1.0.0",
- "dashdash": "1.14.1",
- "getpass": "0.1.7",
- "safer-buffer": "2.1.2",
- "jsbn": "0.1.1",
- "tweetnacl": "0.14.5",
- "ecc-jsbn": "0.1.2",
- "bcrypt-pbkdf": "1.0.2"
+ "extsprintf": "1.3.0",
+ "json-schema": "0.2.3",
+ "verror": "1.10.0"
}
},
- "stealthy-require": {
+ "leven": {
+ "version": "3.1.0",
+ "resolved": "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz",
+ "integrity": "sha1-d4kd6DQGTMy6gq54QrtrFKE+1/I=",
+ "dev": true
+ },
+ "levenary": {
"version": "1.1.1",
- "resolved": "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz",
- "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks="
+ "resolved": "https://registry.yarnpkg.com/levenary/-/levenary-1.1.1.tgz",
+ "integrity": "sha1-hCqe6Y0gdap/ru2+MmeekgX0b3c=",
+ "dev": true,
+ "requires": {
+ "leven": "^3.1.0"
+ }
},
- "string-width": {
- "version": "3.1.0",
- "resolved": "https://registry.yarnpkg.com/string-width/-/string-width-3.1.0.tgz",
- "integrity": "sha1-InZ74htirxCBV0MG9prFG2IgOWE=",
+ "levn": {
+ "version": "0.3.0",
+ "resolved": "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz",
+ "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=",
+ "dev": true,
+ "requires": {
+ "prelude-ls": "~1.1.2",
+ "type-check": "~0.3.2"
+ }
+ },
+ "locate-path": {
+ "version": "3.0.0",
+ "resolved": "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz",
+ "integrity": "sha1-2+w7OrdZdYBxtY/ln8QYca8hQA4=",
+ "dev": true,
"requires": {
- "emoji-regex": "7.0.3",
- "is-fullwidth-code-point": "2.0.0",
- "strip-ansi": "5.2.0"
+ "p-locate": "^3.0.0",
+ "path-exists": "^3.0.0"
}
},
- "string.prototype.trimleft": {
- "version": "2.1.1",
- "resolved": "https://registry.yarnpkg.com/string.prototype.trimleft/-/string.prototype.trimleft-2.1.1.tgz",
- "integrity": "sha1-m9uKxqvW1gKxek7TIYcNL43O/HQ=",
+ "lodash": {
+ "version": "4.17.15",
+ "resolved": "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz",
+ "integrity": "sha1-tEf2ZwoEVbv+7dETku/zMOoJdUg=",
+ "dev": true
+ },
+ "lodash.flattendeep": {
+ "version": "4.4.0",
+ "resolved": "https://registry.yarnpkg.com/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz",
+ "integrity": "sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI=",
+ "dev": true
+ },
+ "lodash.sortby": {
+ "version": "4.7.0",
+ "resolved": "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz",
+ "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=",
+ "dev": true
+ },
+ "log-symbols": {
+ "version": "3.0.0",
+ "resolved": "https://registry.yarnpkg.com/log-symbols/-/log-symbols-3.0.0.tgz",
+ "integrity": "sha1-86CFFqXeqJMzan3uFNGKHP2rd8Q=",
+ "dev": true,
"requires": {
- "define-properties": "1.1.3",
- "function-bind": "1.1.1"
+ "chalk": "^2.4.2"
}
},
- "string.prototype.trimright": {
- "version": "2.1.1",
- "resolved": "https://registry.yarnpkg.com/string.prototype.trimright/-/string.prototype.trimright-2.1.1.tgz",
- "integrity": "sha1-RAMUsVmWyGbOigNBiU1FGGIAxdk=",
+ "loose-envify": {
+ "version": "1.4.0",
+ "resolved": "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz",
+ "integrity": "sha1-ce5R+nvkyuwaY4OffmgtgTLTDK8=",
+ "dev": true,
"requires": {
- "define-properties": "1.1.3",
- "function-bind": "1.1.1"
+ "js-tokens": "^3.0.0 || ^4.0.0"
}
},
- "string_decoder": {
- "version": "1.1.1",
- "resolved": "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz",
- "integrity": "sha1-nPFhG6YmhdcDCunkujQUnDrwP8g=",
+ "magic-string": {
+ "version": "0.25.4",
+ "resolved": "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.4.tgz",
+ "integrity": "sha1-MluKCnn8Qj2xCbd/1aGRg7e6UUM=",
+ "dev": true,
"requires": {
- "safe-buffer": "5.1.2"
- },
- "dependencies": {
- "safe-buffer": {
- "version": "5.1.2",
- "resolved": "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz",
- "integrity": "sha1-mR7GnSluAxN0fVm9/St0XDX4go0="
- }
+ "sourcemap-codec": "^1.4.4"
}
},
- "strip-ansi": {
- "version": "5.2.0",
- "resolved": "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz",
- "integrity": "sha1-jJpTb+tq/JYr36WxBKUJHBrZwK4=",
+ "make-coverage-badge": {
+ "version": "1.2.0",
+ "resolved": "https://registry.yarnpkg.com/make-coverage-badge/-/make-coverage-badge-1.2.0.tgz",
+ "integrity": "sha1-ElwzdTHOfgNsZPqWqLQs5g4ztDc=",
+ "dev": true,
"requires": {
- "ansi-regex": "4.1.0"
+ "mri": "1.1.4"
}
},
- "strip-bom": {
- "version": "4.0.0",
- "resolved": "https://registry.yarnpkg.com/strip-bom/-/strip-bom-4.0.0.tgz",
- "integrity": "sha1-nDUFwdtFvO3KPZz3oW9cWqOQGHg="
- },
- "strip-json-comments": {
- "version": "2.0.1",
- "resolved": "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
- "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo="
- },
- "supports-color": {
- "version": "7.1.0",
- "resolved": "https://registry.yarnpkg.com/supports-color/-/supports-color-7.1.0.tgz",
- "integrity": "sha1-aOMlkd9z4lrRxLSRCKLsUHliv9E=",
+ "make-dir": {
+ "version": "3.0.2",
+ "resolved": "https://registry.yarnpkg.com/make-dir/-/make-dir-3.0.2.tgz",
+ "integrity": "sha1-BKGsvyIiHh1u9DVZ9D4FqQ27Q5I=",
+ "dev": true,
"requires": {
- "has-flag": "4.0.0"
+ "semver": "^6.0.0"
},
"dependencies": {
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha1-lEdx/ZyByBJlxNaUGGDaBrtZR5s="
+ "semver": {
+ "version": "6.3.0",
+ "resolved": "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz",
+ "integrity": "sha1-7gpkyK9ejO6mdoexM3YeG+y9HT0=",
+ "dev": true
}
}
},
- "symbol-tree": {
- "version": "3.2.4",
- "resolved": "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz",
- "integrity": "sha1-QwY30ki6d+B4iDlR+5qg7tfGP6I="
+ "merge-stream": {
+ "version": "2.0.0",
+ "resolved": "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz",
+ "integrity": "sha1-UoI2KaFN0AyXcPtq1H3GMQ8sH2A=",
+ "dev": true
},
- "table": {
- "version": "5.4.6",
- "resolved": "https://registry.yarnpkg.com/table/-/table-5.4.6.tgz",
- "integrity": "sha1-EpLRlQDOP4YFOwXw6Ofko7shB54=",
- "requires": {
- "ajv": "6.12.0",
- "lodash": "4.17.15",
- "slice-ansi": "2.1.0",
- "string-width": "3.1.0"
- }
+ "merge2": {
+ "version": "1.3.0",
+ "resolved": "https://registry.yarnpkg.com/merge2/-/merge2-1.3.0.tgz",
+ "integrity": "sha1-WzZu6DsvFYLEj4fkfPGpNSEDyoE=",
+ "dev": true
},
- "tar": {
- "version": "4.4.13",
- "resolved": "https://registry.yarnpkg.com/tar/-/tar-4.4.13.tgz",
- "integrity": "sha1-Q7NkvFKIjVVSmGN7ENYHkCVKtSU=",
+ "micromatch": {
+ "version": "4.0.2",
+ "resolved": "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.2.tgz",
+ "integrity": "sha1-T8sJmb+fvC/L3SEvbWKbmlbDklk=",
+ "dev": true,
"requires": {
- "chownr": "1.1.4",
- "fs-minipass": "1.2.7",
- "minipass": "2.9.0",
- "minizlib": "1.3.3",
- "mkdirp": "0.5.1",
- "safe-buffer": "5.2.0",
- "yallist": "3.1.1"
+ "braces": "^3.0.1",
+ "picomatch": "^2.0.5"
}
},
- "terser": {
- "version": "4.6.6",
- "resolved": "https://registry.yarnpkg.com/terser/-/terser-4.6.6.tgz",
- "integrity": "sha1-2iOC5sr734YgXoL7mhFb1mTVSGM=",
- "requires": {
- "commander": "2.20.3",
- "source-map": "0.6.1",
- "source-map-support": "0.5.16"
- }
+ "mime-db": {
+ "version": "1.43.0",
+ "resolved": "https://registry.yarnpkg.com/mime-db/-/mime-db-1.43.0.tgz",
+ "integrity": "sha1-ChLgUCZQ5HPXNVNQUOfI9OtPrlg=",
+ "dev": true
},
- "test-exclude": {
- "version": "6.0.0",
- "resolved": "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz",
- "integrity": "sha1-BKhphmHYBepvopO2y55jrARO8V4=",
+ "mime-types": {
+ "version": "2.1.26",
+ "resolved": "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.26.tgz",
+ "integrity": "sha1-nJIfwJt+FJpl39wNpNIJlyALCgY=",
+ "dev": true,
"requires": {
- "@istanbuljs/schema": "0.1.2",
- "glob": "7.1.6",
- "minimatch": "3.0.4"
+ "mime-db": "1.43.0"
}
},
- "text-table": {
- "version": "0.2.0",
- "resolved": "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz",
- "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ="
+ "mimic-fn": {
+ "version": "2.1.0",
+ "resolved": "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz",
+ "integrity": "sha1-ftLCzMyvhNP/y3pptXcR/CCDQBs=",
+ "dev": true
},
- "through": {
- "version": "2.3.8",
- "resolved": "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz",
- "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU="
+ "mimic-response": {
+ "version": "2.1.0",
+ "resolved": "https://registry.yarnpkg.com/mimic-response/-/mimic-response-2.1.0.tgz",
+ "integrity": "sha1-0Tdj019hPQnsN+uzC6wEacDuj0M=",
+ "dev": true
},
- "tmp": {
- "version": "0.0.33",
- "resolved": "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz",
- "integrity": "sha1-bTQzWIl2jSGyvNoKonfO07G/rfk=",
+ "minimatch": {
+ "version": "3.0.4",
+ "resolved": "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz",
+ "integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=",
+ "dev": true,
"requires": {
- "os-tmpdir": "1.0.2"
+ "brace-expansion": "^1.1.7"
}
},
- "to-fast-properties": {
- "version": "2.0.0",
- "resolved": "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz",
- "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4="
+ "minimist": {
+ "version": "1.2.5",
+ "resolved": "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz",
+ "integrity": "sha1-Z9ZgFLZqaoqqDAg8X9WN9OTpdgI=",
+ "dev": true
},
- "to-regex-range": {
- "version": "5.0.1",
- "resolved": "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz",
- "integrity": "sha1-FkjESq58jZiKMmAY7XL1tN0DkuQ=",
+ "minipass": {
+ "version": "2.9.0",
+ "resolved": "https://registry.yarnpkg.com/minipass/-/minipass-2.9.0.tgz",
+ "integrity": "sha1-5xN2Ln0+Mv7YAxFc+T4EvKn8yaY=",
+ "dev": true,
"requires": {
- "is-number": "7.0.0"
+ "safe-buffer": "^5.1.2",
+ "yallist": "^3.0.0"
}
},
- "tough-cookie": {
- "version": "2.5.0",
- "resolved": "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz",
- "integrity": "sha1-zZ+yoKodWhK0c72fuW+j3P9lreI=",
+ "minizlib": {
+ "version": "1.3.3",
+ "resolved": "https://registry.yarnpkg.com/minizlib/-/minizlib-1.3.3.tgz",
+ "integrity": "sha1-IpDeloGKNMKVUcio0wEha9Zahh0=",
+ "dev": true,
"requires": {
- "psl": "1.7.0",
- "punycode": "2.1.1"
+ "minipass": "^2.9.0"
}
},
- "tr46": {
- "version": "1.0.1",
- "resolved": "https://registry.yarnpkg.com/tr46/-/tr46-1.0.1.tgz",
- "integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=",
+ "mkdirp": {
+ "version": "0.5.1",
+ "resolved": "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz",
+ "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
+ "dev": true,
"requires": {
- "punycode": "2.1.1"
+ "minimist": "0.0.8"
+ },
+ "dependencies": {
+ "minimist": {
+ "version": "0.0.8",
+ "resolved": "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz",
+ "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=",
+ "dev": true
+ }
}
},
- "tslib": {
- "version": "1.11.1",
- "resolved": "https://registry.yarnpkg.com/tslib/-/tslib-1.11.1.tgz",
- "integrity": "sha1-6xXRKIJ/vuKEFUnhcfRe0zisfjU="
- },
- "tunnel-agent": {
- "version": "0.6.0",
- "resolved": "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
- "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
+ "mocha": {
+ "version": "7.1.0",
+ "resolved": "https://registry.yarnpkg.com/mocha/-/mocha-7.1.0.tgz",
+ "integrity": "sha1-x4T1ea0JBNKSKa1sseJRTk230kk=",
+ "dev": true,
"requires": {
- "safe-buffer": "5.2.0"
+ "ansi-colors": "3.2.3",
+ "browser-stdout": "1.3.1",
+ "chokidar": "3.3.0",
+ "debug": "3.2.6",
+ "diff": "3.5.0",
+ "escape-string-regexp": "1.0.5",
+ "find-up": "3.0.0",
+ "glob": "7.1.3",
+ "growl": "1.10.5",
+ "he": "1.2.0",
+ "js-yaml": "3.13.1",
+ "log-symbols": "3.0.0",
+ "minimatch": "3.0.4",
+ "mkdirp": "0.5.1",
+ "ms": "2.1.1",
+ "node-environment-flags": "1.0.6",
+ "object.assign": "4.1.0",
+ "strip-json-comments": "2.0.1",
+ "supports-color": "6.0.0",
+ "which": "1.3.1",
+ "wide-align": "1.1.3",
+ "yargs": "13.3.0",
+ "yargs-parser": "13.1.1",
+ "yargs-unparser": "1.6.0"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "3.2.6",
+ "resolved": "https://registry.yarnpkg.com/debug/-/debug-3.2.6.tgz",
+ "integrity": "sha1-6D0X3hbYp++3cX7b5fsQE17uYps=",
+ "dev": true,
+ "requires": {
+ "ms": "^2.1.1"
+ },
+ "dependencies": {
+ "ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk=",
+ "dev": true
+ }
+ }
+ },
+ "glob": {
+ "version": "7.1.3",
+ "resolved": "https://registry.yarnpkg.com/glob/-/glob-7.1.3.tgz",
+ "integrity": "sha1-OWCDLT8VdBCDQtr9OmezMsCWnfE=",
+ "dev": true,
+ "requires": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.0.4",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ }
+ },
+ "ms": {
+ "version": "2.1.1",
+ "resolved": "https://registry.yarnpkg.com/ms/-/ms-2.1.1.tgz",
+ "integrity": "sha1-MKWGTrPrsKZvLr5tcnrwagnYbgo=",
+ "dev": true
+ },
+ "supports-color": {
+ "version": "6.0.0",
+ "resolved": "https://registry.yarnpkg.com/supports-color/-/supports-color-6.0.0.tgz",
+ "integrity": "sha1-ds/nQs8fQbubHCmtAwaMBbTA5Ao=",
+ "dev": true,
+ "requires": {
+ "has-flag": "^3.0.0"
+ }
+ },
+ "yargs-parser": {
+ "version": "13.1.1",
+ "resolved": "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-13.1.1.tgz",
+ "integrity": "sha1-0mBYUyqgbTZf4JH2ofwGsvfl7KA=",
+ "dev": true,
+ "requires": {
+ "camelcase": "^5.0.0",
+ "decamelize": "^1.2.0"
+ }
+ }
}
},
- "tweetnacl": {
- "version": "0.14.5",
- "resolved": "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz",
- "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q="
- },
- "type-check": {
- "version": "0.3.2",
- "resolved": "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz",
- "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=",
- "requires": {
- "prelude-ls": "1.1.2"
- }
+ "moment": {
+ "version": "2.24.0",
+ "resolved": "https://registry.yarnpkg.com/moment/-/moment-2.24.0.tgz",
+ "integrity": "sha1-DQVdU/UFKqZTyfbraLtdEr9cK1s=",
+ "dev": true
},
- "type-detect": {
- "version": "4.0.8",
- "resolved": "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz",
- "integrity": "sha1-dkb7XxiHHPu3dJ5pvTmmOI63RQw="
+ "mri": {
+ "version": "1.1.4",
+ "resolved": "https://registry.yarnpkg.com/mri/-/mri-1.1.4.tgz",
+ "integrity": "sha1-fLHdG5tAkF8frAU6viW2cg9EdEo=",
+ "dev": true
},
- "type-fest": {
- "version": "0.8.1",
- "resolved": "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz",
- "integrity": "sha1-CeJJ696FHTseSNJ8EFREZn8XuD0="
+ "ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk=",
+ "dev": true
},
- "typedarray-to-buffer": {
- "version": "3.1.5",
- "resolved": "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz",
- "integrity": "sha1-qX7nqf9CaRufeD/xvFES/j/KkIA=",
- "requires": {
- "is-typedarray": "1.0.0"
- }
+ "mute-stream": {
+ "version": "0.0.8",
+ "resolved": "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz",
+ "integrity": "sha1-FjDEKyJR/4HiooPelqVJfqkuXg0=",
+ "dev": true
},
- "uglify-js": {
- "version": "3.8.0",
- "resolved": "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.8.0.tgz",
- "integrity": "sha1-81Qa6XsvBI1+fjqk85/YofXXqAU=",
- "requires": {
- "commander": "2.20.3",
- "source-map": "0.6.1"
- }
+ "nan": {
+ "version": "2.14.0",
+ "resolved": "https://registry.yarnpkg.com/nan/-/nan-2.14.0.tgz",
+ "integrity": "sha1-eBj3IgJ7JFmobwKV1DTR/CM2xSw=",
+ "dev": true
},
- "unicode-canonical-property-names-ecmascript": {
- "version": "1.0.4",
- "resolved": "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz",
- "integrity": "sha1-JhmADEyCWADv3YNDr33Zkzy+KBg="
+ "natural-compare": {
+ "version": "1.4.0",
+ "resolved": "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz",
+ "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=",
+ "dev": true
},
- "unicode-match-property-ecmascript": {
- "version": "1.0.4",
- "resolved": "https://registry.yarnpkg.com/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz",
- "integrity": "sha1-jtKjJWmWG86SJ9Cc0/+7j+1fAgw=",
+ "needle": {
+ "version": "2.3.3",
+ "resolved": "https://registry.yarnpkg.com/needle/-/needle-2.3.3.tgz",
+ "integrity": "sha1-oEGtHQSocbDrtmb0C6rx+0eGcRc=",
+ "dev": true,
"requires": {
- "unicode-canonical-property-names-ecmascript": "1.0.4",
- "unicode-property-aliases-ecmascript": "1.1.0"
+ "debug": "^3.2.6",
+ "iconv-lite": "^0.4.4",
+ "sax": "^1.2.4"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "3.2.6",
+ "resolved": "https://registry.yarnpkg.com/debug/-/debug-3.2.6.tgz",
+ "integrity": "sha1-6D0X3hbYp++3cX7b5fsQE17uYps=",
+ "dev": true,
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ }
}
},
- "unicode-match-property-value-ecmascript": {
- "version": "1.2.0",
- "resolved": "https://registry.yarnpkg.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.2.0.tgz",
- "integrity": "sha1-DZH2AO7rMJaqlisdb8iIduZOpTE="
- },
- "unicode-property-aliases-ecmascript": {
- "version": "1.1.0",
- "resolved": "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.1.0.tgz",
- "integrity": "sha1-3Vepn2IHvt/0Yoq++5TFDblByPQ="
+ "neo-async": {
+ "version": "2.6.1",
+ "resolved": "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.1.tgz",
+ "integrity": "sha1-rCetpmFn+ohJpq3dg39rGJrSCBw=",
+ "dev": true
},
- "universalify": {
- "version": "0.1.2",
- "resolved": "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz",
- "integrity": "sha1-tkb2m+OULavOzJ1mOcgNwQXvqmY="
+ "nice-try": {
+ "version": "1.0.5",
+ "resolved": "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz",
+ "integrity": "sha1-ozeKdpbOfSI+iPybdkvX7xCJ42Y=",
+ "dev": true
},
- "uri-js": {
- "version": "4.2.2",
- "resolved": "https://registry.yarnpkg.com/uri-js/-/uri-js-4.2.2.tgz",
- "integrity": "sha1-lMVA4f93KVbiKZUHwBCupsiDjrA=",
+ "node-environment-flags": {
+ "version": "1.0.6",
+ "resolved": "https://registry.yarnpkg.com/node-environment-flags/-/node-environment-flags-1.0.6.tgz",
+ "integrity": "sha1-owrBNiH299Z0JgpU3t4EjDmCwIg=",
+ "dev": true,
"requires": {
- "punycode": "2.1.1"
+ "object.getownpropertydescriptors": "^2.0.3",
+ "semver": "^5.7.0"
}
},
- "util-deprecate": {
- "version": "1.0.2",
- "resolved": "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz",
- "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
+ "node-modules-regexp": {
+ "version": "1.0.0",
+ "resolved": "https://registry.yarnpkg.com/node-modules-regexp/-/node-modules-regexp-1.0.0.tgz",
+ "integrity": "sha1-jZ2+KJZKSsVxLpExZCEHxx6Q7EA=",
+ "dev": true
},
- "uuid": {
- "version": "3.4.0",
- "resolved": "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz",
- "integrity": "sha1-sj5DWK+oogL+ehAK8fX4g/AgB+4="
+ "node-pre-gyp": {
+ "version": "0.11.0",
+ "resolved": "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.11.0.tgz",
+ "integrity": "sha1-2x8zIVJy9pLNOPAyOOPptHxd0FQ=",
+ "dev": true,
+ "requires": {
+ "detect-libc": "^1.0.2",
+ "mkdirp": "^0.5.1",
+ "needle": "^2.2.1",
+ "nopt": "^4.0.1",
+ "npm-packlist": "^1.1.6",
+ "npmlog": "^4.0.2",
+ "rc": "^1.2.7",
+ "rimraf": "^2.6.1",
+ "semver": "^5.3.0",
+ "tar": "^4"
+ },
+ "dependencies": {
+ "nopt": {
+ "version": "4.0.3",
+ "resolved": "https://registry.yarnpkg.com/nopt/-/nopt-4.0.3.tgz",
+ "integrity": "sha1-o3XK2dAv2SEnjZVMIlTVqlfhXkg=",
+ "dev": true,
+ "requires": {
+ "abbrev": "1",
+ "osenv": "^0.1.4"
+ }
+ },
+ "rimraf": {
+ "version": "2.7.1",
+ "resolved": "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz",
+ "integrity": "sha1-NXl/E6f9rcVmFCwp1PB8ytSD4+w=",
+ "dev": true,
+ "requires": {
+ "glob": "^7.1.3"
+ }
+ }
+ }
},
- "v8-compile-cache": {
- "version": "2.1.0",
- "resolved": "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.1.0.tgz",
- "integrity": "sha1-4U3jezGm0ZT1aQ1n78Tn9vxqsw4="
+ "node-preload": {
+ "version": "0.2.1",
+ "resolved": "https://registry.yarnpkg.com/node-preload/-/node-preload-0.2.1.tgz",
+ "integrity": "sha1-wDBDuzJ/QXoY/uerfuV7QIoUQwE=",
+ "dev": true,
+ "requires": {
+ "process-on-spawn": "^1.0.0"
+ }
},
- "verror": {
- "version": "1.10.0",
- "resolved": "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz",
- "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
+ "node-releases": {
+ "version": "1.1.52",
+ "resolved": "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.52.tgz",
+ "integrity": "sha1-vP/uPgp1jpLkTs+uzQpHVUsLy6k=",
+ "dev": true,
"requires": {
- "assert-plus": "1.0.0",
- "core-util-is": "1.0.2",
- "extsprintf": "1.4.0"
+ "semver": "^6.3.0"
},
"dependencies": {
- "extsprintf": {
- "version": "1.4.0",
- "resolved": "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz",
- "integrity": "sha1-4mifjzVvrWLMplo6kcXfX5VRaS8="
+ "semver": {
+ "version": "6.3.0",
+ "resolved": "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz",
+ "integrity": "sha1-7gpkyK9ejO6mdoexM3YeG+y9HT0=",
+ "dev": true
}
}
},
- "w3c-hr-time": {
- "version": "1.0.2",
- "resolved": "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz",
- "integrity": "sha1-ConN9cwVgi35w2BUNnaWPgzDCM0=",
+ "nodent-compiler": {
+ "version": "3.2.11",
+ "resolved": "https://registry.yarnpkg.com/nodent-compiler/-/nodent-compiler-3.2.11.tgz",
+ "integrity": "sha1-j0vHA9fY0OVj9eCeoi79zgTbr5s=",
+ "dev": true,
"requires": {
- "browser-process-hrtime": "1.0.0"
+ "acorn": ">= 2.5.2 <= 5.7.3",
+ "acorn-es7-plugin": "^1.1.7",
+ "nodent-transform": "^3.2.9",
+ "source-map": "^0.5.7"
+ },
+ "dependencies": {
+ "acorn": {
+ "version": "5.7.3",
+ "resolved": "https://registry.yarnpkg.com/acorn/-/acorn-5.7.3.tgz",
+ "integrity": "sha1-Z6ojG/iBKXS4UjWpZ3Hra9B+onk=",
+ "dev": true
+ },
+ "source-map": {
+ "version": "0.5.7",
+ "resolved": "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz",
+ "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",
+ "dev": true
+ }
}
},
- "w3c-xmlserializer": {
- "version": "1.1.2",
- "resolved": "https://registry.yarnpkg.com/w3c-xmlserializer/-/w3c-xmlserializer-1.1.2.tgz",
- "integrity": "sha1-MEhcp9cKb9BSQgo9Ev2Q5jOc55Q=",
+ "nodent-transform": {
+ "version": "3.2.9",
+ "resolved": "https://registry.yarnpkg.com/nodent-transform/-/nodent-transform-3.2.9.tgz",
+ "integrity": "sha1-7BGmEWtUduYLwhI3HPa45MdPQLY=",
+ "dev": true
+ },
+ "nopt": {
+ "version": "3.0.6",
+ "resolved": "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz",
+ "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=",
+ "dev": true,
"requires": {
- "domexception": "1.0.1",
- "webidl-conversions": "4.0.2",
- "xml-name-validator": "3.0.0"
+ "abbrev": "1"
}
},
- "webidl-conversions": {
- "version": "4.0.2",
- "resolved": "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz",
- "integrity": "sha1-qFWYCx8LazWbodXZ+zmulB+qY60="
+ "normalize-path": {
+ "version": "3.0.0",
+ "resolved": "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz",
+ "integrity": "sha1-Dc1p/yOhybEf0JeDFmRKA4ghamU=",
+ "dev": true
},
- "whatwg-encoding": {
- "version": "1.0.5",
- "resolved": "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz",
- "integrity": "sha1-WrrPd3wyFmpR0IXWtPPn0nET3bA=",
+ "npm-bundled": {
+ "version": "1.1.1",
+ "resolved": "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.1.1.tgz",
+ "integrity": "sha1-Ht1XCGWpTNsbyCIHdeKUZsn7I0s=",
+ "dev": true,
"requires": {
- "iconv-lite": "0.4.24"
+ "npm-normalize-package-bin": "^1.0.1"
}
},
- "whatwg-mimetype": {
- "version": "2.3.0",
- "resolved": "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz",
- "integrity": "sha1-PUseAxLSB5h5+Cav8Y2+7KWWD78="
+ "npm-normalize-package-bin": {
+ "version": "1.0.1",
+ "resolved": "https://registry.yarnpkg.com/npm-normalize-package-bin/-/npm-normalize-package-bin-1.0.1.tgz",
+ "integrity": "sha1-bnmkHyP9I1wGIyGCKNp9nCO49uI=",
+ "dev": true
},
- "whatwg-url": {
- "version": "7.1.0",
- "resolved": "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-7.1.0.tgz",
- "integrity": "sha1-wsSS8eymEpiO/T0iZr4bn8YXDQY=",
+ "npm-packlist": {
+ "version": "1.4.8",
+ "resolved": "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-1.4.8.tgz",
+ "integrity": "sha1-Vu5swTW5+YrT1Rwcldoiu7my7z4=",
+ "dev": true,
"requires": {
- "lodash.sortby": "4.7.0",
- "tr46": "1.0.1",
- "webidl-conversions": "4.0.2"
+ "ignore-walk": "^3.0.1",
+ "npm-bundled": "^1.0.1",
+ "npm-normalize-package-bin": "^1.0.1"
}
},
- "which": {
- "version": "1.3.1",
- "resolved": "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz",
- "integrity": "sha1-pFBD1U9YBTFtqNYvn1CRjT2nCwo=",
+ "npmlog": {
+ "version": "4.1.2",
+ "resolved": "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz",
+ "integrity": "sha1-CKfyqL9zRgR3mp76StXMcXq7lUs=",
+ "dev": true,
"requires": {
- "isexe": "2.0.0"
+ "are-we-there-yet": "~1.1.2",
+ "console-control-strings": "~1.1.0",
+ "gauge": "~2.7.3",
+ "set-blocking": "~2.0.0"
}
},
- "which-module": {
- "version": "2.0.0",
- "resolved": "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz",
- "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho="
+ "number-is-nan": {
+ "version": "1.0.1",
+ "resolved": "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz",
+ "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=",
+ "dev": true
},
- "wide-align": {
- "version": "1.1.3",
- "resolved": "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz",
- "integrity": "sha1-rgdOa9wMFKQx6ATmJFScYzsABFc=",
- "requires": {
- "string-width": "2.1.1"
+ "nwsapi": {
+ "version": "2.2.0",
+ "resolved": "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.0.tgz",
+ "integrity": "sha1-IEh5qePQaP8qVROcLHcngGgaOLc=",
+ "dev": true
+ },
+ "nyc": {
+ "version": "15.0.0",
+ "resolved": "https://registry.yarnpkg.com/nyc/-/nyc-15.0.0.tgz",
+ "integrity": "sha1-6zLbLA8pJCwkFP5GNX8jASHPwWI=",
+ "dev": true,
+ "requires": {
+ "@istanbuljs/load-nyc-config": "^1.0.0",
+ "@istanbuljs/schema": "^0.1.2",
+ "caching-transform": "^4.0.0",
+ "convert-source-map": "^1.7.0",
+ "decamelize": "^1.2.0",
+ "find-cache-dir": "^3.2.0",
+ "find-up": "^4.1.0",
+ "foreground-child": "^2.0.0",
+ "glob": "^7.1.6",
+ "istanbul-lib-coverage": "^3.0.0",
+ "istanbul-lib-hook": "^3.0.0",
+ "istanbul-lib-instrument": "^4.0.0",
+ "istanbul-lib-processinfo": "^2.0.2",
+ "istanbul-lib-report": "^3.0.0",
+ "istanbul-lib-source-maps": "^4.0.0",
+ "istanbul-reports": "^3.0.0",
+ "js-yaml": "^3.13.1",
+ "make-dir": "^3.0.0",
+ "node-preload": "^0.2.0",
+ "p-map": "^3.0.0",
+ "process-on-spawn": "^1.0.0",
+ "resolve-from": "^5.0.0",
+ "rimraf": "^3.0.0",
+ "signal-exit": "^3.0.2",
+ "spawn-wrap": "^2.0.0",
+ "test-exclude": "^6.0.0",
+ "uuid": "^3.3.3",
+ "yargs": "^15.0.2"
},
"dependencies": {
"ansi-regex": {
+ "version": "5.0.0",
+ "resolved": "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz",
+ "integrity": "sha1-OIU59VF5vzkznIGvMKZU1p+Hy3U=",
+ "dev": true
+ },
+ "ansi-styles": {
+ "version": "4.2.1",
+ "resolved": "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.2.1.tgz",
+ "integrity": "sha1-kK51xCTQCNJiTFvynq0xd+v881k=",
+ "dev": true,
+ "requires": {
+ "@types/color-name": "^1.1.1",
+ "color-convert": "^2.0.1"
+ }
+ },
+ "cliui": {
+ "version": "6.0.0",
+ "resolved": "https://registry.yarnpkg.com/cliui/-/cliui-6.0.0.tgz",
+ "integrity": "sha1-UR1wLAxOQcoVbX0OlgIfI+EyJbE=",
+ "dev": true,
+ "requires": {
+ "string-width": "^4.2.0",
+ "strip-ansi": "^6.0.0",
+ "wrap-ansi": "^6.2.0"
+ }
+ },
+ "color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM=",
+ "dev": true,
+ "requires": {
+ "color-name": "~1.1.4"
+ }
+ },
+ "color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha1-wqCah6y95pVD3m9j+jmVyCbFNqI=",
+ "dev": true
+ },
+ "emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha1-6Bj9ac5cz8tARZT4QpY79TFkzDc=",
+ "dev": true
+ },
+ "find-cache-dir": {
+ "version": "3.3.1",
+ "resolved": "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-3.3.1.tgz",
+ "integrity": "sha1-ibM/rUpGcNqpT4Vff74x1thP6IA=",
+ "dev": true,
+ "requires": {
+ "commondir": "^1.0.1",
+ "make-dir": "^3.0.2",
+ "pkg-dir": "^4.1.0"
+ }
+ },
+ "find-up": {
+ "version": "4.1.0",
+ "resolved": "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz",
+ "integrity": "sha1-l6/n1s3AvFkoWEt8jXsW6KmqXRk=",
+ "dev": true,
+ "requires": {
+ "locate-path": "^5.0.0",
+ "path-exists": "^4.0.0"
+ }
+ },
+ "is-fullwidth-code-point": {
"version": "3.0.0",
- "resolved": "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz",
- "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg="
+ "resolved": "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha1-8Rb4Bk/pCz94RKOJl8C3UFEmnx0=",
+ "dev": true
+ },
+ "locate-path": {
+ "version": "5.0.0",
+ "resolved": "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz",
+ "integrity": "sha1-Gvujlq/WdqbUJQTQpno6frn2KqA=",
+ "dev": true,
+ "requires": {
+ "p-locate": "^4.1.0"
+ }
+ },
+ "p-locate": {
+ "version": "4.1.0",
+ "resolved": "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz",
+ "integrity": "sha1-o0KLtwiLOmApL2aRkni3wpetTwc=",
+ "dev": true,
+ "requires": {
+ "p-limit": "^2.2.0"
+ }
+ },
+ "path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha1-UTvb4tO5XXdi6METfvoZXGxhtbM=",
+ "dev": true
+ },
+ "pkg-dir": {
+ "version": "4.2.0",
+ "resolved": "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz",
+ "integrity": "sha1-8JkTPfft5CLoHR2ESCcO6z5CYfM=",
+ "dev": true,
+ "requires": {
+ "find-up": "^4.0.0"
+ }
},
"string-width": {
- "version": "2.1.1",
- "resolved": "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz",
- "integrity": "sha1-q5Pyeo3BPSjKyBXEYhQ6bZASrp4=",
+ "version": "4.2.0",
+ "resolved": "https://registry.yarnpkg.com/string-width/-/string-width-4.2.0.tgz",
+ "integrity": "sha1-lSGCxGzHssMT0VluYjmSvRY7crU=",
+ "dev": true,
"requires": {
- "is-fullwidth-code-point": "2.0.0",
- "strip-ansi": "4.0.0"
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.0"
}
},
"strip-ansi": {
- "version": "4.0.0",
- "resolved": "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz",
- "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=",
+ "version": "6.0.0",
+ "resolved": "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.0.tgz",
+ "integrity": "sha1-CxVx3XZpzNTz4G4U7x7tJiJa5TI=",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^5.0.0"
+ }
+ },
+ "wrap-ansi": {
+ "version": "6.2.0",
+ "resolved": "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
+ "integrity": "sha1-6Tk7oHEC5skaOyIUePAlfNKFblM=",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ }
+ },
+ "yargs": {
+ "version": "15.3.0",
+ "resolved": "https://registry.yarnpkg.com/yargs/-/yargs-15.3.0.tgz",
+ "integrity": "sha1-QDr27cdbOuBL9myUICIouhGfCXY=",
+ "dev": true,
+ "requires": {
+ "cliui": "^6.0.0",
+ "decamelize": "^1.2.0",
+ "find-up": "^4.1.0",
+ "get-caller-file": "^2.0.1",
+ "require-directory": "^2.1.1",
+ "require-main-filename": "^2.0.0",
+ "set-blocking": "^2.0.0",
+ "string-width": "^4.2.0",
+ "which-module": "^2.0.0",
+ "y18n": "^4.0.0",
+ "yargs-parser": "^18.1.0"
+ }
+ },
+ "yargs-parser": {
+ "version": "18.1.0",
+ "resolved": "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-18.1.0.tgz",
+ "integrity": "sha1-GwqxEY69QfaLsw5yn0yD3zauhMM=",
+ "dev": true,
"requires": {
- "ansi-regex": "3.0.0"
+ "camelcase": "^5.0.0",
+ "decamelize": "^1.2.0"
}
}
}
},
- "word-wrap": {
- "version": "1.2.3",
- "resolved": "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz",
- "integrity": "sha1-YQY29rH3A4kb00dxzLF/uTtHB5w="
- },
- "wordwrap": {
- "version": "1.0.0",
- "resolved": "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz",
- "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus="
- },
- "wrap-ansi": {
- "version": "5.1.0",
- "resolved": "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-5.1.0.tgz",
- "integrity": "sha1-H9H2cjXVttD+54EFYAG/tpTAOwk=",
- "requires": {
- "ansi-styles": "3.2.1",
- "string-width": "3.1.0",
- "strip-ansi": "5.2.0"
- }
- },
- "wrappy": {
- "version": "1.0.2",
- "resolved": "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz",
- "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
- },
- "write": {
- "version": "1.0.3",
- "resolved": "https://registry.yarnpkg.com/write/-/write-1.0.3.tgz",
- "integrity": "sha1-CADhRSO5I6OH5BUSPIZWFqrg9cM=",
- "requires": {
- "mkdirp": "0.5.1"
- }
- },
- "write-file-atomic": {
- "version": "3.0.3",
- "resolved": "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-3.0.3.tgz",
- "integrity": "sha1-Vr1cWlxwSBzRnFcb05q5ZaXeVug=",
- "requires": {
- "imurmurhash": "0.1.4",
- "is-typedarray": "1.0.0",
- "signal-exit": "3.0.2",
- "typedarray-to-buffer": "3.1.5"
- }
- },
- "ws": {
- "version": "7.2.3",
- "resolved": "https://registry.yarnpkg.com/ws/-/ws-7.2.3.tgz",
- "integrity": "sha1-pUEeH7BNXtDv7nbSbVxG2DDDm0Y="
- },
- "xml-name-validator": {
- "version": "3.0.0",
- "resolved": "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz",
- "integrity": "sha1-auc+Bt5NjG5H+fsYH3jWSK1FfGo="
- },
- "xmlchars": {
- "version": "2.2.0",
- "resolved": "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz",
- "integrity": "sha1-Bg/hvLf5x2/ioX24apvDq4lCEMs="
- },
- "y18n": {
- "version": "4.0.0",
- "resolved": "https://registry.yarnpkg.com/y18n/-/y18n-4.0.0.tgz",
- "integrity": "sha1-le+U+F7MgdAHwmThkKEg8KPIVms="
+ "oauth-sign": {
+ "version": "0.9.0",
+ "resolved": "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz",
+ "integrity": "sha1-R6ewFrqmi1+g7PPe4IqFxnmsZFU=",
+ "dev": true
},
- "yallist": {
- "version": "3.1.1",
- "resolved": "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz",
- "integrity": "sha1-27fa+b/YusmrRev2ArjLrQ1dCP0="
+ "object-assign": {
+ "version": "4.1.1",
+ "resolved": "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz",
+ "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
+ "dev": true
},
- "yargs": {
- "version": "13.3.0",
- "resolved": "https://registry.yarnpkg.com/yargs/-/yargs-13.3.0.tgz",
- "integrity": "sha1-TGV6VeB+Xyz5R/ijZlZ8BKDe3IM=",
- "requires": {
- "cliui": "5.0.0",
- "find-up": "3.0.0",
- "get-caller-file": "2.0.5",
- "require-directory": "2.1.1",
- "require-main-filename": "2.0.0",
- "set-blocking": "2.0.0",
- "string-width": "3.1.0",
- "which-module": "2.0.0",
- "y18n": "4.0.0",
- "yargs-parser": "13.1.2"
- }
+ "object-inspect": {
+ "version": "1.7.0",
+ "resolved": "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.7.0.tgz",
+ "integrity": "sha1-9Pa9GBrXfwBrXs5gvQtvOY/3Smc=",
+ "dev": true
},
- "yargs-parser": {
- "version": "13.1.2",
- "resolved": "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-13.1.2.tgz",
- "integrity": "sha1-Ew8JcC667vJlDVTObj5XBvek+zg=",
- "requires": {
- "camelcase": "5.3.1",
- "decamelize": "1.2.0"
- }
+ "object-keys": {
+ "version": "1.1.1",
+ "resolved": "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz",
+ "integrity": "sha1-HEfyct8nfzsdrwYWd9nILiMixg4=",
+ "dev": true
},
- "yargs-unparser": {
- "version": "1.6.0",
- "resolved": "https://registry.yarnpkg.com/yargs-unparser/-/yargs-unparser-1.6.0.tgz",
- "integrity": "sha1-7yXCx2n/a9CeSw+dfGBfsnhG6p8=",
+ "object.assign": {
+ "version": "4.1.0",
+ "resolved": "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.0.tgz",
+ "integrity": "sha1-lovxEA15Vrs8oIbwBvhGs7xACNo=",
+ "dev": true,
"requires": {
- "flat": "4.1.0",
- "lodash": "4.17.15",
- "yargs": "13.3.2"
- },
- "dependencies": {
- "yargs": {
- "version": "13.3.2",
- "resolved": "https://registry.yarnpkg.com/yargs/-/yargs-13.3.2.tgz",
- "integrity": "sha1-rX/+/sGqWVZayRX4Lcyzipwxot0=",
- "requires": {
- "cliui": "5.0.0",
- "find-up": "3.0.0",
- "get-caller-file": "2.0.5",
- "require-directory": "2.1.1",
- "require-main-filename": "2.0.0",
- "set-blocking": "2.0.0",
- "string-width": "3.1.0",
- "which-module": "2.0.0",
- "y18n": "4.0.0",
- "yargs-parser": "13.1.2"
- }
- }
+ "define-properties": "^1.1.2",
+ "function-bind": "^1.1.1",
+ "has-symbols": "^1.0.0",
+ "object-keys": "^1.0.11"
}
},
- "@babel/code-frame": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.8.3.tgz",
- "integrity": "sha1-M+JZA9dIEYFTThLsCiXxa2/PQZ4=",
+ "object.getownpropertydescriptors": {
+ "version": "2.1.0",
+ "resolved": "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.0.tgz",
+ "integrity": "sha1-Npvx+VktiridcS3O1cuBx8U1Jkk=",
+ "dev": true,
"requires": {
- "@babel/highlight": "7.8.3"
+ "define-properties": "^1.1.3",
+ "es-abstract": "^1.17.0-next.1"
}
},
- "@babel/compat-data": {
- "version": "7.8.6",
- "resolved": "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.8.6.tgz",
- "integrity": "sha1-fuqg36F+UMfZwIMlFe7gm1bwTjU=",
+ "once": {
+ "version": "1.4.0",
+ "resolved": "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz",
+ "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
+ "dev": true,
"requires": {
- "browserslist": "4.9.1",
- "invariant": "2.2.4",
- "semver": "5.7.1"
+ "wrappy": "1"
}
},
- "@babel/core": {
- "version": "7.8.7",
- "resolved": "https://registry.yarnpkg.com/@babel/core/-/core-7.8.7.tgz",
- "integrity": "sha1-tpAX0iHM3rIDFFrp2iadcs8QLzs=",
+ "onetime": {
+ "version": "5.1.0",
+ "resolved": "https://registry.yarnpkg.com/onetime/-/onetime-5.1.0.tgz",
+ "integrity": "sha1-//DzyRYX/mK7UBiWNumayKbfe+U=",
+ "dev": true,
"requires": {
- "@babel/code-frame": "7.8.3",
- "@babel/generator": "7.8.8",
- "@babel/helpers": "7.8.4",
- "@babel/parser": "7.8.8",
- "@babel/template": "7.8.6",
- "@babel/traverse": "7.8.6",
- "@babel/types": "7.8.7",
- "convert-source-map": "1.7.0",
- "debug": "4.1.1",
- "gensync": "1.0.0-beta.1",
- "json5": "2.1.1",
- "lodash": "4.17.15",
- "resolve": "1.15.1",
- "semver": "5.7.1",
- "source-map": "0.5.7"
- },
- "dependencies": {
- "source-map": {
- "version": "0.5.7",
- "resolved": "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz",
- "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w="
- }
+ "mimic-fn": "^2.1.0"
}
},
- "@babel/generator": {
- "version": "7.8.8",
- "resolved": "https://registry.yarnpkg.com/@babel/generator/-/generator-7.8.8.tgz",
- "integrity": "sha1-zc1YyqtzCDTO6e6ttynoM7Yl2j4=",
+ "optimist": {
+ "version": "0.6.1",
+ "resolved": "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz",
+ "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=",
+ "dev": true,
"requires": {
- "@babel/types": "7.8.7",
- "jsesc": "2.5.2",
- "lodash": "4.17.15",
- "source-map": "0.5.7"
+ "minimist": "~0.0.1",
+ "wordwrap": "~0.0.2"
},
"dependencies": {
- "source-map": {
- "version": "0.5.7",
- "resolved": "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz",
- "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w="
+ "minimist": {
+ "version": "0.0.10",
+ "resolved": "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz",
+ "integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=",
+ "dev": true
+ },
+ "wordwrap": {
+ "version": "0.0.3",
+ "resolved": "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz",
+ "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=",
+ "dev": true
}
}
},
- "@babel/helper-annotate-as-pure": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.8.3.tgz",
- "integrity": "sha1-YLwLxlf2Ogkk/5pLSgskoTz03u4=",
- "requires": {
- "@babel/types": "7.8.7"
- }
- },
- "@babel/helper-builder-binary-assignment-operator-visitor": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.8.3.tgz",
- "integrity": "sha1-yECXpCegYaxWocMOv1S3si0kFQM=",
- "requires": {
- "@babel/helper-explode-assignable-expression": "7.8.3",
- "@babel/types": "7.8.7"
- }
- },
- "@babel/helper-call-delegate": {
- "version": "7.8.7",
- "resolved": "https://registry.yarnpkg.com/@babel/helper-call-delegate/-/helper-call-delegate-7.8.7.tgz",
- "integrity": "sha1-KKJ5wubGIqYjPaVIEn+YB1EyTKs=",
+ "optionator": {
+ "version": "0.8.3",
+ "resolved": "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz",
+ "integrity": "sha1-hPodA2/p08fiHZmIS2ARZ+yPtJU=",
+ "dev": true,
"requires": {
- "@babel/helper-hoist-variables": "7.8.3",
- "@babel/traverse": "7.8.6",
- "@babel/types": "7.8.7"
+ "deep-is": "~0.1.3",
+ "fast-levenshtein": "~2.0.6",
+ "levn": "~0.3.0",
+ "prelude-ls": "~1.1.2",
+ "type-check": "~0.3.2",
+ "word-wrap": "~1.2.3"
}
},
- "@babel/helper-compilation-targets": {
- "version": "7.8.7",
- "resolved": "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.8.7.tgz",
- "integrity": "sha1-2sHuoVnA5L1G4wm1obBKZrU8Hd4=",
- "requires": {
- "@babel/compat-data": "7.8.6",
- "browserslist": "4.9.1",
- "invariant": "2.2.4",
- "levenary": "1.1.1",
- "semver": "5.7.1"
- }
+ "os-homedir": {
+ "version": "1.0.2",
+ "resolved": "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz",
+ "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=",
+ "dev": true
},
- "@babel/helper-create-regexp-features-plugin": {
- "version": "7.8.8",
- "resolved": "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.8.8.tgz",
- "integrity": "sha1-XYQYC1iPVgt4ZO+u6okkPlgxIIc=",
- "requires": {
- "@babel/helper-annotate-as-pure": "7.8.3",
- "@babel/helper-regex": "7.8.3",
- "regexpu-core": "4.7.0"
- }
+ "os-tmpdir": {
+ "version": "1.0.2",
+ "resolved": "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
+ "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=",
+ "dev": true
},
- "@babel/helper-define-map": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/helper-define-map/-/helper-define-map-7.8.3.tgz",
- "integrity": "sha1-oGVcrVRRw3YLcm66h18c2PqgLBU=",
+ "osenv": {
+ "version": "0.1.5",
+ "resolved": "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz",
+ "integrity": "sha1-hc36+uso6Gd/QW4odZK18/SepBA=",
+ "dev": true,
"requires": {
- "@babel/helper-function-name": "7.8.3",
- "@babel/types": "7.8.7",
- "lodash": "4.17.15"
+ "os-homedir": "^1.0.0",
+ "os-tmpdir": "^1.0.0"
}
},
- "@babel/helper-explode-assignable-expression": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.8.3.tgz",
- "integrity": "sha1-pyjcW06J4w/C38fQT6KKkwZT+YI=",
+ "p-limit": {
+ "version": "2.2.2",
+ "resolved": "https://registry.yarnpkg.com/p-limit/-/p-limit-2.2.2.tgz",
+ "integrity": "sha1-YSebZ3IfUoeqHBOpp/u8SMkpGx4=",
+ "dev": true,
"requires": {
- "@babel/traverse": "7.8.6",
- "@babel/types": "7.8.7"
+ "p-try": "^2.0.0"
}
},
- "@babel/helper-function-name": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.8.3.tgz",
- "integrity": "sha1-7utmWgGx8RBo6fuGrVahyxqCTMo=",
+ "p-locate": {
+ "version": "3.0.0",
+ "resolved": "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz",
+ "integrity": "sha1-Mi1poFwCZLJZl9n0DNiokasAZKQ=",
+ "dev": true,
"requires": {
- "@babel/helper-get-function-arity": "7.8.3",
- "@babel/template": "7.8.6",
- "@babel/types": "7.8.7"
+ "p-limit": "^2.0.0"
}
},
- "@babel/helper-get-function-arity": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz",
- "integrity": "sha1-uJS5R70AQ4HOY+odufCFR+kgq9U=",
+ "p-map": {
+ "version": "3.0.0",
+ "resolved": "https://registry.yarnpkg.com/p-map/-/p-map-3.0.0.tgz",
+ "integrity": "sha1-1wTZr4orpoTiYA2aIVmD1BQal50=",
+ "dev": true,
"requires": {
- "@babel/types": "7.8.7"
+ "aggregate-error": "^3.0.0"
}
},
- "@babel/helper-hoist-variables": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.8.3.tgz",
- "integrity": "sha1-Hb6ba1XXjJtBg/yM3G4wzrg7cTQ=",
- "requires": {
- "@babel/types": "7.8.7"
- }
+ "p-try": {
+ "version": "2.2.0",
+ "resolved": "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz",
+ "integrity": "sha1-yyhoVA4xPWHeWPr741zpAE1VQOY=",
+ "dev": true
},
- "@babel/helper-member-expression-to-functions": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.8.3.tgz",
- "integrity": "sha1-ZZtxBJjqbB2ZB+DHPyBu7n2twkw=",
+ "package-hash": {
+ "version": "4.0.0",
+ "resolved": "https://registry.yarnpkg.com/package-hash/-/package-hash-4.0.0.tgz",
+ "integrity": "sha1-NTf2VGZew8w4gnOH/JBMFjxU9QY=",
+ "dev": true,
"requires": {
- "@babel/types": "7.8.7"
+ "graceful-fs": "^4.1.15",
+ "hasha": "^5.0.0",
+ "lodash.flattendeep": "^4.4.0",
+ "release-zalgo": "^1.0.0"
}
},
- "@babel/helper-module-imports": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.8.3.tgz",
- "integrity": "sha1-f+OVibOcAWMxtrjD9EHo8LFBlJg=",
+ "parent-module": {
+ "version": "1.0.1",
+ "resolved": "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz",
+ "integrity": "sha1-aR0nCeeMefrjoVZiJFLQB2LKqqI=",
+ "dev": true,
"requires": {
- "@babel/types": "7.8.7"
+ "callsites": "^3.0.0"
}
},
- "@babel/helper-module-transforms": {
- "version": "7.8.6",
- "resolved": "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.8.6.tgz",
- "integrity": "sha1-ahO17srcNWkgRwc6ZOQpd7l2VKQ=",
+ "parse5": {
+ "version": "5.1.0",
+ "resolved": "https://registry.yarnpkg.com/parse5/-/parse5-5.1.0.tgz",
+ "integrity": "sha1-xZNByXI/QUxFKXVWTHwApo1YrNI=",
+ "dev": true
+ },
+ "path-exists": {
+ "version": "3.0.0",
+ "resolved": "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz",
+ "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=",
+ "dev": true
+ },
+ "path-is-absolute": {
+ "version": "1.0.1",
+ "resolved": "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
+ "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
+ "dev": true
+ },
+ "path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha1-WB9q3mWMu6ZaDTOA3ndTKVBU83U=",
+ "dev": true
+ },
+ "path-parse": {
+ "version": "1.0.6",
+ "resolved": "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz",
+ "integrity": "sha1-1i27VnlAXXLEc37FhgDp3c8G0kw=",
+ "dev": true
+ },
+ "path-type": {
+ "version": "4.0.0",
+ "resolved": "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz",
+ "integrity": "sha1-hO0BwKe6OAr+CdkKjBgNzZ0DBDs=",
+ "dev": true
+ },
+ "pathval": {
+ "version": "1.1.0",
+ "resolved": "https://registry.yarnpkg.com/pathval/-/pathval-1.1.0.tgz",
+ "integrity": "sha1-uULm1L3mUwBe9rcTYd74cn0GReA=",
+ "dev": true
+ },
+ "performance-now": {
+ "version": "2.1.0",
+ "resolved": "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz",
+ "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=",
+ "dev": true
+ },
+ "picomatch": {
+ "version": "2.2.1",
+ "resolved": "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.1.tgz",
+ "integrity": "sha1-IbrIiLbthgH4Mc54FuM1vHefCko=",
+ "dev": true
+ },
+ "pify": {
+ "version": "4.0.1",
+ "resolved": "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz",
+ "integrity": "sha1-SyzSXFDVmHNcUCkiJP2MbfQeMjE=",
+ "dev": true
+ },
+ "pirates": {
+ "version": "4.0.1",
+ "resolved": "https://registry.yarnpkg.com/pirates/-/pirates-4.0.1.tgz",
+ "integrity": "sha1-ZDqSyviUVm+RsrmG0sZpUKji+4c=",
+ "dev": true,
"requires": {
- "@babel/helper-module-imports": "7.8.3",
- "@babel/helper-replace-supers": "7.8.6",
- "@babel/helper-simple-access": "7.8.3",
- "@babel/helper-split-export-declaration": "7.8.3",
- "@babel/template": "7.8.6",
- "@babel/types": "7.8.7",
- "lodash": "4.17.15"
+ "node-modules-regexp": "^1.0.0"
}
},
- "@babel/helper-optimise-call-expression": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.8.3.tgz",
- "integrity": "sha1-ftBxgT0Jx1KY708giVYAa2ER7Lk=",
+ "pkg-dir": {
+ "version": "3.0.0",
+ "resolved": "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-3.0.0.tgz",
+ "integrity": "sha1-J0kCDyOe2ZCIGx9xIQ1R62UjvqM=",
+ "dev": true,
"requires": {
- "@babel/types": "7.8.7"
+ "find-up": "^3.0.0"
}
},
- "@babel/helper-plugin-utils": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.8.3.tgz",
- "integrity": "sha1-nqKTvhm6vA9S/4yoizTDYRsghnA="
+ "pn": {
+ "version": "1.1.0",
+ "resolved": "https://registry.yarnpkg.com/pn/-/pn-1.1.0.tgz",
+ "integrity": "sha1-4vTO8OIZ9GPBeas3Rj5OHs3Muvs=",
+ "dev": true
},
- "@babel/helper-regex": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/helper-regex/-/helper-regex-7.8.3.tgz",
- "integrity": "sha1-E5dyYH1RuT8j7/5yEFsxnSpMaWU=",
- "requires": {
- "lodash": "4.17.15"
- }
+ "prelude-ls": {
+ "version": "1.1.2",
+ "resolved": "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz",
+ "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=",
+ "dev": true
},
- "@babel/helper-remap-async-to-generator": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.8.3.tgz",
- "integrity": "sha1-JzxgDYub9QBhQsHjWIfVVcEu3YY=",
+ "private": {
+ "version": "0.1.8",
+ "resolved": "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz",
+ "integrity": "sha1-I4Hts2ifelPWUxkAYPz4ItLzaP8=",
+ "dev": true
+ },
+ "process-nextick-args": {
+ "version": "2.0.1",
+ "resolved": "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
+ "integrity": "sha1-eCDZsWEgzFXKmud5JoCufbptf+I=",
+ "dev": true
+ },
+ "process-on-spawn": {
+ "version": "1.0.0",
+ "resolved": "https://registry.yarnpkg.com/process-on-spawn/-/process-on-spawn-1.0.0.tgz",
+ "integrity": "sha1-lbBaIwc9MKF6z9ySpEDv0rrv3JM=",
+ "dev": true,
"requires": {
- "@babel/helper-annotate-as-pure": "7.8.3",
- "@babel/helper-wrap-function": "7.8.3",
- "@babel/template": "7.8.6",
- "@babel/traverse": "7.8.6",
- "@babel/types": "7.8.7"
+ "fromentries": "^1.2.0"
}
},
- "@babel/helper-replace-supers": {
- "version": "7.8.6",
- "resolved": "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.8.6.tgz",
- "integrity": "sha1-Wtp0T9WtcyA78dZ0WaJ9y6Z+/8g=",
+ "progress": {
+ "version": "2.0.3",
+ "resolved": "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz",
+ "integrity": "sha1-foz42PW48jnBvGi+tOt4Vn1XLvg=",
+ "dev": true
+ },
+ "psl": {
+ "version": "1.7.0",
+ "resolved": "https://registry.yarnpkg.com/psl/-/psl-1.7.0.tgz",
+ "integrity": "sha1-8cTEeo75cWfepda79IFtc26ISjw=",
+ "dev": true
+ },
+ "punycode": {
+ "version": "2.1.1",
+ "resolved": "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz",
+ "integrity": "sha1-tYsBCsQMIsVldhbI0sLALHv0eew=",
+ "dev": true
+ },
+ "qs": {
+ "version": "6.5.2",
+ "resolved": "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz",
+ "integrity": "sha1-yzroBuh0BERYTvFUzo7pjUA/PjY=",
+ "dev": true
+ },
+ "rc": {
+ "version": "1.2.8",
+ "resolved": "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz",
+ "integrity": "sha1-zZJL9SAKB1uDwYjNa54hG3/A0+0=",
+ "dev": true,
"requires": {
- "@babel/helper-member-expression-to-functions": "7.8.3",
- "@babel/helper-optimise-call-expression": "7.8.3",
- "@babel/traverse": "7.8.6",
- "@babel/types": "7.8.7"
+ "deep-extend": "^0.6.0",
+ "ini": "~1.3.0",
+ "minimist": "^1.2.0",
+ "strip-json-comments": "~2.0.1"
}
},
- "@babel/helper-simple-access": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.8.3.tgz",
- "integrity": "sha1-f4EJkotNq0ZUB2mGr1dSMd62Oa4=",
- "requires": {
- "@babel/template": "7.8.6",
- "@babel/types": "7.8.7"
+ "readable-stream": {
+ "version": "2.3.7",
+ "resolved": "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz",
+ "integrity": "sha1-Hsoc9xGu+BTAT2IlKjamL2yyO1c=",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ },
+ "dependencies": {
+ "safe-buffer": {
+ "version": "5.1.2",
+ "resolved": "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz",
+ "integrity": "sha1-mR7GnSluAxN0fVm9/St0XDX4go0=",
+ "dev": true
+ }
}
},
- "@babel/helper-split-export-declaration": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz",
- "integrity": "sha1-ManzAHD5E2inGCzwX4MXgQZfx6k=",
+ "readdirp": {
+ "version": "3.2.0",
+ "resolved": "https://registry.yarnpkg.com/readdirp/-/readdirp-3.2.0.tgz",
+ "integrity": "sha1-wwwzNSsSyW37S4lUIaSf1alZODk=",
+ "dev": true,
"requires": {
- "@babel/types": "7.8.7"
+ "picomatch": "^2.0.4"
}
},
- "@babel/helper-wrap-function": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.8.3.tgz",
- "integrity": "sha1-nb2yu1XvFKqgH+jJm2Kb1TUthhA=",
+ "regenerate": {
+ "version": "1.4.0",
+ "resolved": "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.0.tgz",
+ "integrity": "sha1-SoVuxLVuQHfFV1icroXnpMiGmhE=",
+ "dev": true
+ },
+ "regenerate-unicode-properties": {
+ "version": "8.2.0",
+ "resolved": "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-8.2.0.tgz",
+ "integrity": "sha1-5d5xEdZV57pgwFfb6f83yH5lzew=",
+ "dev": true,
"requires": {
- "@babel/helper-function-name": "7.8.3",
- "@babel/template": "7.8.6",
- "@babel/traverse": "7.8.6",
- "@babel/types": "7.8.7"
+ "regenerate": "^1.4.0"
}
},
- "@babel/helpers": {
- "version": "7.8.4",
- "resolved": "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.8.4.tgz",
- "integrity": "sha1-dU6z7nJ8Fl4KJA1sIH3nxFXzb3M=",
+ "regenerator-runtime": {
+ "version": "0.13.5",
+ "resolved": "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.5.tgz",
+ "integrity": "sha1-2Hih0JS0MG0QuQlkhLM+vVXiZpc=",
+ "dev": true
+ },
+ "regenerator-transform": {
+ "version": "0.14.3",
+ "resolved": "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.14.3.tgz",
+ "integrity": "sha1-VK6/8u9YwK5h5pWtG5qdZZlf/3g=",
+ "dev": true,
"requires": {
- "@babel/template": "7.8.6",
- "@babel/traverse": "7.8.6",
- "@babel/types": "7.8.7"
+ "@babel/runtime": "^7.8.4",
+ "private": "^0.1.8"
}
},
- "@babel/highlight": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.8.3.tgz",
- "integrity": "sha1-KPFz0EIj6qpZvB1Dmjg25tEmV5c=",
+ "regexpp": {
+ "version": "2.0.1",
+ "resolved": "https://registry.yarnpkg.com/regexpp/-/regexpp-2.0.1.tgz",
+ "integrity": "sha1-jRnTHPYySCtYkEn4KB+T28uk0H8=",
+ "dev": true
+ },
+ "regexpu-core": {
+ "version": "4.7.0",
+ "resolved": "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-4.7.0.tgz",
+ "integrity": "sha1-/L9FjFBDGwu3tF1pZ7gZLZHz2Tg=",
+ "dev": true,
"requires": {
- "chalk": "2.4.2",
- "esutils": "2.0.3",
- "js-tokens": "4.0.0"
+ "regenerate": "^1.4.0",
+ "regenerate-unicode-properties": "^8.2.0",
+ "regjsgen": "^0.5.1",
+ "regjsparser": "^0.6.4",
+ "unicode-match-property-ecmascript": "^1.0.4",
+ "unicode-match-property-value-ecmascript": "^1.2.0"
}
},
- "@babel/parser": {
- "version": "7.8.8",
- "resolved": "https://registry.yarnpkg.com/@babel/parser/-/parser-7.8.8.tgz",
- "integrity": "sha1-TDt8422zfgYpvh8NUKVx0vhvbNQ="
+ "regjsgen": {
+ "version": "0.5.1",
+ "resolved": "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.5.1.tgz",
+ "integrity": "sha1-SPC/Gl6iBRlpKcDZeYtC0e2YRDw=",
+ "dev": true
},
- "@babel/plugin-proposal-async-generator-functions": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.8.3.tgz",
- "integrity": "sha1-utMpxnCzgliXIbJ1QMfSiGAcbm8=",
+ "regjsparser": {
+ "version": "0.6.4",
+ "resolved": "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.6.4.tgz",
+ "integrity": "sha1-p2n4aEMIQBpm6bUp0kNv9NBmYnI=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3",
- "@babel/helper-remap-async-to-generator": "7.8.3",
- "@babel/plugin-syntax-async-generators": "7.8.4"
+ "jsesc": "~0.5.0"
+ },
+ "dependencies": {
+ "jsesc": {
+ "version": "0.5.0",
+ "resolved": "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz",
+ "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=",
+ "dev": true
+ }
}
},
- "@babel/plugin-proposal-dynamic-import": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.8.3.tgz",
- "integrity": "sha1-OMT+VVdEgm6X4q6TCw+0zAfmYFQ=",
+ "release-zalgo": {
+ "version": "1.0.0",
+ "resolved": "https://registry.yarnpkg.com/release-zalgo/-/release-zalgo-1.0.0.tgz",
+ "integrity": "sha1-CXALflB0Mpc5Mw5TXFqQ+2eFFzA=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3",
- "@babel/plugin-syntax-dynamic-import": "7.8.3"
+ "es6-error": "^4.0.1"
}
},
- "@babel/plugin-proposal-json-strings": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.8.3.tgz",
- "integrity": "sha1-2lIWsjipi1ih4F1oUhBLEPmnDWs=",
- "requires": {
- "@babel/helper-plugin-utils": "7.8.3",
- "@babel/plugin-syntax-json-strings": "7.8.3"
+ "request": {
+ "version": "2.88.2",
+ "resolved": "https://registry.yarnpkg.com/request/-/request-2.88.2.tgz",
+ "integrity": "sha1-1zyRhzHLWofaBH4gcjQUb2ZNErM=",
+ "dev": true,
+ "requires": {
+ "aws-sign2": "~0.7.0",
+ "aws4": "^1.8.0",
+ "caseless": "~0.12.0",
+ "combined-stream": "~1.0.6",
+ "extend": "~3.0.2",
+ "forever-agent": "~0.6.1",
+ "form-data": "~2.3.2",
+ "har-validator": "~5.1.3",
+ "http-signature": "~1.2.0",
+ "is-typedarray": "~1.0.0",
+ "isstream": "~0.1.2",
+ "json-stringify-safe": "~5.0.1",
+ "mime-types": "~2.1.19",
+ "oauth-sign": "~0.9.0",
+ "performance-now": "^2.1.0",
+ "qs": "~6.5.2",
+ "safe-buffer": "^5.1.2",
+ "tough-cookie": "~2.5.0",
+ "tunnel-agent": "^0.6.0",
+ "uuid": "^3.3.2"
}
},
- "@babel/plugin-proposal-nullish-coalescing-operator": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.8.3.tgz",
- "integrity": "sha1-5FciU/3u1lzd7s/as/kor+sv1dI=",
+ "request-promise-core": {
+ "version": "1.1.3",
+ "resolved": "https://registry.yarnpkg.com/request-promise-core/-/request-promise-core-1.1.3.tgz",
+ "integrity": "sha1-6aPAgbUTgN/qZ3M2Bh/qh5qCnuk=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3",
- "@babel/plugin-syntax-nullish-coalescing-operator": "7.8.3"
+ "lodash": "^4.17.15"
}
},
- "@babel/plugin-proposal-object-rest-spread": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.8.3.tgz",
- "integrity": "sha1-61rjZhGN3KZ77Vg7U9dVTK2ZUbs=",
+ "request-promise-native": {
+ "version": "1.0.8",
+ "resolved": "https://registry.yarnpkg.com/request-promise-native/-/request-promise-native-1.0.8.tgz",
+ "integrity": "sha1-pFW5YLgm5E4r+Jma9k3/K/5YyzY=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3",
- "@babel/plugin-syntax-object-rest-spread": "7.8.3"
+ "request-promise-core": "1.1.3",
+ "stealthy-require": "^1.1.1",
+ "tough-cookie": "^2.3.3"
}
},
- "@babel/plugin-proposal-optional-catch-binding": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.8.3.tgz",
- "integrity": "sha1-ne6WqxZQ7tiGRq6XNMoWesSpxck=",
- "requires": {
- "@babel/helper-plugin-utils": "7.8.3",
- "@babel/plugin-syntax-optional-catch-binding": "7.8.3"
- }
+ "require-directory": {
+ "version": "2.1.1",
+ "resolved": "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz",
+ "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=",
+ "dev": true
},
- "@babel/plugin-proposal-optional-chaining": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.8.3.tgz",
- "integrity": "sha1-rhCzIUyyX3rbHzvIe6QsoQt+JUM=",
+ "require-main-filename": {
+ "version": "2.0.0",
+ "resolved": "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz",
+ "integrity": "sha1-0LMp7MfMD2Fkn2IhW+aa9UqomJs=",
+ "dev": true
+ },
+ "resolve": {
+ "version": "1.15.1",
+ "resolved": "https://registry.yarnpkg.com/resolve/-/resolve-1.15.1.tgz",
+ "integrity": "sha1-J73N7/6vLWJEuVuw+fS0ZTRR8+g=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3",
- "@babel/plugin-syntax-optional-chaining": "7.8.3"
+ "path-parse": "^1.0.6"
}
},
- "@babel/plugin-proposal-unicode-property-regex": {
- "version": "7.8.8",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.8.8.tgz",
- "integrity": "sha1-7jqV6QzcBP6M2S7DJ5+gF9aKDR0=",
+ "resolve-from": {
+ "version": "5.0.0",
+ "resolved": "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz",
+ "integrity": "sha1-w1IlhD3493bfIcV1V7wIfp39/Gk=",
+ "dev": true
+ },
+ "restore-cursor": {
+ "version": "3.1.0",
+ "resolved": "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz",
+ "integrity": "sha1-OfZ8VLOnpYzqUjbZXPADQjljH34=",
+ "dev": true,
"requires": {
- "@babel/helper-create-regexp-features-plugin": "7.8.8",
- "@babel/helper-plugin-utils": "7.8.3"
+ "onetime": "^5.1.0",
+ "signal-exit": "^3.0.2"
}
},
- "@babel/plugin-syntax-async-generators": {
- "version": "7.8.4",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz",
- "integrity": "sha1-qYP7Gusuw/btBCohD2QOkOeG/g0=",
+ "reusify": {
+ "version": "1.0.4",
+ "resolved": "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz",
+ "integrity": "sha1-kNo4Kx4SbvwCFG6QhFqI2xKSXXY=",
+ "dev": true
+ },
+ "rimraf": {
+ "version": "3.0.2",
+ "resolved": "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz",
+ "integrity": "sha1-8aVAK6YiCtUswSgrrBrjqkn9Bho=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3"
+ "glob": "^7.1.3"
}
},
- "@babel/plugin-syntax-dynamic-import": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz",
- "integrity": "sha1-Yr+Ysto80h1iYVT8lu5bPLaOrLM=",
+ "rollup": {
+ "version": "2.0.6",
+ "resolved": "https://registry.yarnpkg.com/rollup/-/rollup-2.0.6.tgz",
+ "integrity": "sha1-hl1rsVooz/NCnqHcVyNgE2Ycud4=",
+ "dev": true
+ },
+ "rollup-plugin-babel": {
+ "version": "4.4.0",
+ "resolved": "https://registry.yarnpkg.com/rollup-plugin-babel/-/rollup-plugin-babel-4.4.0.tgz",
+ "integrity": "sha1-0VvSWUZqnRrMvbL+L/8XxS0DCss=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3"
+ "@babel/helper-module-imports": "^7.0.0",
+ "rollup-pluginutils": "^2.8.1"
}
},
- "@babel/plugin-syntax-json-strings": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz",
- "integrity": "sha1-AcohtmjNghjJ5kDLbdiMVBKyyWo=",
+ "rollup-plugin-copy": {
+ "version": "3.3.0",
+ "resolved": "https://registry.yarnpkg.com/rollup-plugin-copy/-/rollup-plugin-copy-3.3.0.tgz",
+ "integrity": "sha1-W6IwBH+GufcDopKI8kKUilWA57k=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3"
+ "@types/fs-extra": "^8.0.1",
+ "colorette": "^1.1.0",
+ "fs-extra": "^8.1.0",
+ "globby": "10.0.1",
+ "is-plain-object": "^3.0.0"
}
},
- "@babel/plugin-syntax-nullish-coalescing-operator": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz",
- "integrity": "sha1-Fn7XA2iIYIH3S1w2xlqIwDtm0ak=",
+ "rollup-plugin-license": {
+ "version": "0.13.0",
+ "resolved": "https://registry.yarnpkg.com/rollup-plugin-license/-/rollup-plugin-license-0.13.0.tgz",
+ "integrity": "sha1-7p8ACi4qldt5NLGnWEZR8j6NqLQ=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3"
+ "commenting": "1.1.0",
+ "glob": "7.1.6",
+ "lodash": "4.17.15",
+ "magic-string": "0.25.4",
+ "mkdirp": "0.5.1",
+ "moment": "2.24.0",
+ "spdx-expression-validate": "2.0.0",
+ "spdx-satisfies": "5.0.0"
}
},
- "@babel/plugin-syntax-object-rest-spread": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz",
- "integrity": "sha1-YOIl7cvZimQDMqLnLdPmbxr1WHE=",
+ "rollup-plugin-nodent": {
+ "version": "0.2.2",
+ "resolved": "https://registry.yarnpkg.com/rollup-plugin-nodent/-/rollup-plugin-nodent-0.2.2.tgz",
+ "integrity": "sha1-c+m5dLWsN16ymElVQfxysJV4T6w=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3"
+ "acorn-dynamic-import": "^3.0.0",
+ "nodent-compiler": "^3.1.6",
+ "rollup-pluginutils": "^2.0.1"
}
},
- "@babel/plugin-syntax-optional-catch-binding": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz",
- "integrity": "sha1-YRGiZbz7Ag6579D9/X0mQCue1sE=",
+ "rollup-plugin-terser": {
+ "version": "5.3.0",
+ "resolved": "https://registry.yarnpkg.com/rollup-plugin-terser/-/rollup-plugin-terser-5.3.0.tgz",
+ "integrity": "sha1-nA3TPVdx35YwzQJ9aiVZGH9liF4=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3"
+ "@babel/code-frame": "^7.5.5",
+ "jest-worker": "^24.9.0",
+ "rollup-pluginutils": "^2.8.2",
+ "serialize-javascript": "^2.1.2",
+ "terser": "^4.6.2"
}
},
- "@babel/plugin-syntax-optional-chaining": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz",
- "integrity": "sha1-T2nCq5UWfgGAzVM2YT+MV4j31Io=",
+ "rollup-plugin-uglify": {
+ "version": "6.0.4",
+ "resolved": "https://registry.yarnpkg.com/rollup-plugin-uglify/-/rollup-plugin-uglify-6.0.4.tgz",
+ "integrity": "sha1-ZaCVnZFYZifx5Gp9uWb9UE7GxOY=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3"
+ "@babel/code-frame": "^7.0.0",
+ "jest-worker": "^24.0.0",
+ "serialize-javascript": "^2.1.2",
+ "uglify-js": "^3.4.9"
}
},
- "@babel/plugin-syntax-top-level-await": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.8.3.tgz",
- "integrity": "sha1-Os3s5pXmsTqvV/wpHRqACVDHE5E=",
+ "rollup-pluginutils": {
+ "version": "2.8.2",
+ "resolved": "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz",
+ "integrity": "sha1-cvKvB0i1kjZNvTOJ5gDlqURKNR4=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3"
+ "estree-walker": "^0.6.1"
}
},
- "@babel/plugin-transform-arrow-functions": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.8.3.tgz",
- "integrity": "sha1-gndsLtDNnhpJlW2uuJYCTJRzuLY=",
+ "run-async": {
+ "version": "2.4.0",
+ "resolved": "https://registry.yarnpkg.com/run-async/-/run-async-2.4.0.tgz",
+ "integrity": "sha1-5ZBUpbhods+uB/Qx0Yy63cWU8eg=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3"
+ "is-promise": "^2.1.0"
}
},
- "@babel/plugin-transform-async-to-generator": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.8.3.tgz",
- "integrity": "sha1-Qwj60NlAnXHq+5sabuNfnWS2QIY=",
+ "run-parallel": {
+ "version": "1.1.9",
+ "resolved": "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.1.9.tgz",
+ "integrity": "sha1-yd06fPn0ssS2JE4XOm7YZuYd1nk=",
+ "dev": true
+ },
+ "rxjs": {
+ "version": "6.5.4",
+ "resolved": "https://registry.yarnpkg.com/rxjs/-/rxjs-6.5.4.tgz",
+ "integrity": "sha1-4Hd/4NGEzseHLfFH8wNXLUFOIRw=",
+ "dev": true,
"requires": {
- "@babel/helper-module-imports": "7.8.3",
- "@babel/helper-plugin-utils": "7.8.3",
- "@babel/helper-remap-async-to-generator": "7.8.3"
+ "tslib": "^1.9.0"
}
},
- "@babel/plugin-transform-block-scoped-functions": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.8.3.tgz",
- "integrity": "sha1-Q37sW3mbWFIHIISzrl72boNJ6KM=",
+ "safe-buffer": {
+ "version": "5.2.0",
+ "resolved": "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.0.tgz",
+ "integrity": "sha1-t02uxJsRSPiMZLaNSbHoFcHy9Rk=",
+ "dev": true
+ },
+ "safer-buffer": {
+ "version": "2.1.2",
+ "resolved": "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz",
+ "integrity": "sha1-RPoWGwGHuVSd2Eu5GAL5vYOFzWo=",
+ "dev": true
+ },
+ "sax": {
+ "version": "1.2.4",
+ "resolved": "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz",
+ "integrity": "sha1-KBYjTiN4vdxOU1T6tcqold9xANk=",
+ "dev": true
+ },
+ "saxes": {
+ "version": "3.1.11",
+ "resolved": "https://registry.yarnpkg.com/saxes/-/saxes-3.1.11.tgz",
+ "integrity": "sha1-1Z0f0zLskq2YouCy7mRHAjhLHFs=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3"
+ "xmlchars": "^2.1.1"
}
},
- "@babel/plugin-transform-block-scoping": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.8.3.tgz",
- "integrity": "sha1-l9Ndq2aFekN8FmNYuR0JBQyGjzo=",
+ "semver": {
+ "version": "5.7.1",
+ "resolved": "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz",
+ "integrity": "sha1-qVT5Ma66UI0we78Gnv8MAclhFvc=",
+ "dev": true
+ },
+ "serialize-javascript": {
+ "version": "2.1.2",
+ "resolved": "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-2.1.2.tgz",
+ "integrity": "sha1-7OxTsOAxe9yV73arcHS3OEeF+mE=",
+ "dev": true
+ },
+ "set-blocking": {
+ "version": "2.0.0",
+ "resolved": "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz",
+ "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=",
+ "dev": true
+ },
+ "shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha1-zNCvT4g1+9wmW4JGGq8MNmY/NOo=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3",
- "lodash": "4.17.15"
+ "shebang-regex": "^3.0.0"
}
},
- "@babel/plugin-transform-classes": {
- "version": "7.8.6",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.8.6.tgz",
- "integrity": "sha1-d1NER6R3y+WZWuSu4+OfvICQxG0=",
+ "shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha1-rhbxZE2HPsrYQ7AwexQzYtTEIXI=",
+ "dev": true
+ },
+ "signal-exit": {
+ "version": "3.0.2",
+ "resolved": "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz",
+ "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=",
+ "dev": true
+ },
+ "simple-concat": {
+ "version": "1.0.0",
+ "resolved": "https://registry.yarnpkg.com/simple-concat/-/simple-concat-1.0.0.tgz",
+ "integrity": "sha1-c0TLuLbib7J9ZrL8hvn21Zl1IcY=",
+ "dev": true
+ },
+ "simple-get": {
+ "version": "3.1.0",
+ "resolved": "https://registry.yarnpkg.com/simple-get/-/simple-get-3.1.0.tgz",
+ "integrity": "sha1-tFvgYkNeUNFZVAtXYgLO7EC5xrM=",
+ "dev": true,
"requires": {
- "@babel/helper-annotate-as-pure": "7.8.3",
- "@babel/helper-define-map": "7.8.3",
- "@babel/helper-function-name": "7.8.3",
- "@babel/helper-optimise-call-expression": "7.8.3",
- "@babel/helper-plugin-utils": "7.8.3",
- "@babel/helper-replace-supers": "7.8.6",
- "@babel/helper-split-export-declaration": "7.8.3",
- "globals": "11.12.0"
+ "decompress-response": "^4.2.0",
+ "once": "^1.3.1",
+ "simple-concat": "^1.0.0"
}
},
- "@babel/plugin-transform-computed-properties": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.8.3.tgz",
- "integrity": "sha1-ltDSi3985OtbEguy4OlDNDyG+Bs=",
+ "slash": {
+ "version": "3.0.0",
+ "resolved": "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz",
+ "integrity": "sha1-ZTm+hwwWWtvVJAIg2+Nh8bxNRjQ=",
+ "dev": true
+ },
+ "slice-ansi": {
+ "version": "2.1.0",
+ "resolved": "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-2.1.0.tgz",
+ "integrity": "sha1-ys12k0YaY3pXiNkqfdT7oGjoFjY=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3"
+ "ansi-styles": "^3.2.0",
+ "astral-regex": "^1.0.0",
+ "is-fullwidth-code-point": "^2.0.0"
}
},
- "@babel/plugin-transform-destructuring": {
- "version": "7.8.8",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.8.8.tgz",
- "integrity": "sha1-+tsryOkMyvVljeb41NIv9icqL0s=",
+ "source-map": {
+ "version": "0.6.1",
+ "resolved": "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz",
+ "integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=",
+ "dev": true
+ },
+ "source-map-support": {
+ "version": "0.5.16",
+ "resolved": "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.16.tgz",
+ "integrity": "sha1-CuBp5/47p1OMZMmFFeNTOerFoEI=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3"
+ "buffer-from": "^1.0.0",
+ "source-map": "^0.6.0"
}
},
- "@babel/plugin-transform-dotall-regex": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.8.3.tgz",
- "integrity": "sha1-w8bsXuYSXGmTxcvKINyGIanqem4=",
- "requires": {
- "@babel/helper-create-regexp-features-plugin": "7.8.8",
- "@babel/helper-plugin-utils": "7.8.3"
+ "sourcemap-codec": {
+ "version": "1.4.8",
+ "resolved": "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz",
+ "integrity": "sha1-6oBL2UhXQC5pktBaOO8a41qatMQ=",
+ "dev": true
+ },
+ "spawn-wrap": {
+ "version": "2.0.0",
+ "resolved": "https://registry.yarnpkg.com/spawn-wrap/-/spawn-wrap-2.0.0.tgz",
+ "integrity": "sha1-EDaFuLj5t5dxMYgnqnhlCmENRX4=",
+ "dev": true,
+ "requires": {
+ "foreground-child": "^2.0.0",
+ "is-windows": "^1.0.2",
+ "make-dir": "^3.0.0",
+ "rimraf": "^3.0.0",
+ "signal-exit": "^3.0.2",
+ "which": "^2.0.1"
+ },
+ "dependencies": {
+ "which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz",
+ "integrity": "sha1-fGqN0KY2oDJ+ELWckobu6T8/UbE=",
+ "dev": true,
+ "requires": {
+ "isexe": "^2.0.0"
+ }
+ }
}
},
- "@babel/plugin-transform-duplicate-keys": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.8.3.tgz",
- "integrity": "sha1-jRLfMJqlN/JyiZxWXqF2jihuIfE=",
+ "spdx-compare": {
+ "version": "1.0.0",
+ "resolved": "https://registry.yarnpkg.com/spdx-compare/-/spdx-compare-1.0.0.tgz",
+ "integrity": "sha1-LFXxFzYgeNdAnm17CM5wqFfNPtc=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3"
+ "array-find-index": "^1.0.2",
+ "spdx-expression-parse": "^3.0.0",
+ "spdx-ranges": "^2.0.0"
}
},
- "@babel/plugin-transform-exponentiation-operator": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.8.3.tgz",
- "integrity": "sha1-WBptf1aXDga/UVYM1k9elHtw17c=",
+ "spdx-exceptions": {
+ "version": "2.2.0",
+ "resolved": "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz",
+ "integrity": "sha1-LqRQrudPKom/uUUZwH/Nb0EyKXc=",
+ "dev": true
+ },
+ "spdx-expression-parse": {
+ "version": "3.0.0",
+ "resolved": "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz",
+ "integrity": "sha1-meEZt6XaAOBUkcn6M4t5BII7QdA=",
+ "dev": true,
"requires": {
- "@babel/helper-builder-binary-assignment-operator-visitor": "7.8.3",
- "@babel/helper-plugin-utils": "7.8.3"
+ "spdx-exceptions": "^2.1.0",
+ "spdx-license-ids": "^3.0.0"
}
},
- "@babel/plugin-transform-for-of": {
- "version": "7.8.6",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.8.6.tgz",
- "integrity": "sha1-oFG9G0AsYa+Xon/1G0aDIcfCoIU=",
+ "spdx-expression-validate": {
+ "version": "2.0.0",
+ "resolved": "https://registry.yarnpkg.com/spdx-expression-validate/-/spdx-expression-validate-2.0.0.tgz",
+ "integrity": "sha1-JclAjhxj+tlP/1UXu3EB/80jNQs=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3"
+ "spdx-expression-parse": "^3.0.0"
}
},
- "@babel/plugin-transform-function-name": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.8.3.tgz",
- "integrity": "sha1-J5NzyycyKqrWfCaD53bfxHGW7Ys=",
+ "spdx-license-ids": {
+ "version": "3.0.5",
+ "resolved": "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz",
+ "integrity": "sha1-NpS1gEVnpFjTyARYQqY1hjL2JlQ=",
+ "dev": true
+ },
+ "spdx-ranges": {
+ "version": "2.1.1",
+ "resolved": "https://registry.yarnpkg.com/spdx-ranges/-/spdx-ranges-2.1.1.tgz",
+ "integrity": "sha1-h1c5J7pR6Ss/RVCrYL/IPdB7rCA=",
+ "dev": true
+ },
+ "spdx-satisfies": {
+ "version": "5.0.0",
+ "resolved": "https://registry.yarnpkg.com/spdx-satisfies/-/spdx-satisfies-5.0.0.tgz",
+ "integrity": "sha1-10C48UyuraNvswdine6HFGlwolY=",
+ "dev": true,
"requires": {
- "@babel/helper-function-name": "7.8.3",
- "@babel/helper-plugin-utils": "7.8.3"
+ "spdx-compare": "^1.0.0",
+ "spdx-expression-parse": "^3.0.0",
+ "spdx-ranges": "^2.0.0"
}
},
- "@babel/plugin-transform-literals": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.8.3.tgz",
- "integrity": "sha1-rvI5gj2RmU7Hto5VGTUl1229XcE=",
+ "sprintf-js": {
+ "version": "1.0.3",
+ "resolved": "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz",
+ "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=",
+ "dev": true
+ },
+ "sshpk": {
+ "version": "1.16.1",
+ "resolved": "https://registry.yarnpkg.com/sshpk/-/sshpk-1.16.1.tgz",
+ "integrity": "sha1-+2YcC+8ps520B2nuOfpwCT1vaHc=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3"
+ "asn1": "~0.2.3",
+ "assert-plus": "^1.0.0",
+ "bcrypt-pbkdf": "^1.0.0",
+ "dashdash": "^1.12.0",
+ "ecc-jsbn": "~0.1.1",
+ "getpass": "^0.1.1",
+ "jsbn": "~0.1.0",
+ "safer-buffer": "^2.0.2",
+ "tweetnacl": "~0.14.0"
}
},
- "@babel/plugin-transform-member-expression-literals": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.8.3.tgz",
- "integrity": "sha1-lj/tS2IKx8v2Apx1VCQCn6OkBBA=",
+ "stealthy-require": {
+ "version": "1.1.1",
+ "resolved": "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz",
+ "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=",
+ "dev": true
+ },
+ "string-width": {
+ "version": "3.1.0",
+ "resolved": "https://registry.yarnpkg.com/string-width/-/string-width-3.1.0.tgz",
+ "integrity": "sha1-InZ74htirxCBV0MG9prFG2IgOWE=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3"
+ "emoji-regex": "^7.0.1",
+ "is-fullwidth-code-point": "^2.0.0",
+ "strip-ansi": "^5.1.0"
}
},
- "@babel/plugin-transform-modules-amd": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.8.3.tgz",
- "integrity": "sha1-ZWBtRGFrUCJedvVXjzPFaKC4dqU=",
+ "string.prototype.trimleft": {
+ "version": "2.1.1",
+ "resolved": "https://registry.yarnpkg.com/string.prototype.trimleft/-/string.prototype.trimleft-2.1.1.tgz",
+ "integrity": "sha1-m9uKxqvW1gKxek7TIYcNL43O/HQ=",
+ "dev": true,
"requires": {
- "@babel/helper-module-transforms": "7.8.6",
- "@babel/helper-plugin-utils": "7.8.3",
- "babel-plugin-dynamic-import-node": "2.3.0"
+ "define-properties": "^1.1.3",
+ "function-bind": "^1.1.1"
}
},
- "@babel/plugin-transform-modules-commonjs": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.8.3.tgz",
- "integrity": "sha1-3yUXBuwzG9BYo0vdcmE5FfgpKKU=",
+ "string.prototype.trimright": {
+ "version": "2.1.1",
+ "resolved": "https://registry.yarnpkg.com/string.prototype.trimright/-/string.prototype.trimright-2.1.1.tgz",
+ "integrity": "sha1-RAMUsVmWyGbOigNBiU1FGGIAxdk=",
+ "dev": true,
"requires": {
- "@babel/helper-module-transforms": "7.8.6",
- "@babel/helper-plugin-utils": "7.8.3",
- "@babel/helper-simple-access": "7.8.3",
- "babel-plugin-dynamic-import-node": "2.3.0"
+ "define-properties": "^1.1.3",
+ "function-bind": "^1.1.1"
}
},
- "@babel/plugin-transform-modules-systemjs": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.8.3.tgz",
- "integrity": "sha1-2LvyIsHb42YfRA8vAMFum7fQ1CA=",
+ "string_decoder": {
+ "version": "1.1.1",
+ "resolved": "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz",
+ "integrity": "sha1-nPFhG6YmhdcDCunkujQUnDrwP8g=",
+ "dev": true,
"requires": {
- "@babel/helper-hoist-variables": "7.8.3",
- "@babel/helper-module-transforms": "7.8.6",
- "@babel/helper-plugin-utils": "7.8.3",
- "babel-plugin-dynamic-import-node": "2.3.0"
+ "safe-buffer": "~5.1.0"
+ },
+ "dependencies": {
+ "safe-buffer": {
+ "version": "5.1.2",
+ "resolved": "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz",
+ "integrity": "sha1-mR7GnSluAxN0fVm9/St0XDX4go0=",
+ "dev": true
+ }
}
},
- "@babel/plugin-transform-modules-umd": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.8.3.tgz",
- "integrity": "sha1-WS1XjOBsUvW5iwL5E9ZT/+lyZho=",
+ "strip-ansi": {
+ "version": "5.2.0",
+ "resolved": "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz",
+ "integrity": "sha1-jJpTb+tq/JYr36WxBKUJHBrZwK4=",
+ "dev": true,
"requires": {
- "@babel/helper-module-transforms": "7.8.6",
- "@babel/helper-plugin-utils": "7.8.3"
+ "ansi-regex": "^4.1.0"
}
},
- "@babel/plugin-transform-named-capturing-groups-regex": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.8.3.tgz",
- "integrity": "sha1-oqcr/6ICrA4tBQav0JOcXsvEjGw=",
+ "strip-bom": {
+ "version": "4.0.0",
+ "resolved": "https://registry.yarnpkg.com/strip-bom/-/strip-bom-4.0.0.tgz",
+ "integrity": "sha1-nDUFwdtFvO3KPZz3oW9cWqOQGHg=",
+ "dev": true
+ },
+ "strip-json-comments": {
+ "version": "2.0.1",
+ "resolved": "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
+ "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=",
+ "dev": true
+ },
+ "supports-color": {
+ "version": "7.1.0",
+ "resolved": "https://registry.yarnpkg.com/supports-color/-/supports-color-7.1.0.tgz",
+ "integrity": "sha1-aOMlkd9z4lrRxLSRCKLsUHliv9E=",
+ "dev": true,
"requires": {
- "@babel/helper-create-regexp-features-plugin": "7.8.8"
+ "has-flag": "^4.0.0"
+ },
+ "dependencies": {
+ "has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha1-lEdx/ZyByBJlxNaUGGDaBrtZR5s=",
+ "dev": true
+ }
}
},
- "@babel/plugin-transform-new-target": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.8.3.tgz",
- "integrity": "sha1-YMwq5m2FyVq1QOs0urtkNNTHDEM=",
+ "symbol-tree": {
+ "version": "3.2.4",
+ "resolved": "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz",
+ "integrity": "sha1-QwY30ki6d+B4iDlR+5qg7tfGP6I=",
+ "dev": true
+ },
+ "table": {
+ "version": "5.4.6",
+ "resolved": "https://registry.yarnpkg.com/table/-/table-5.4.6.tgz",
+ "integrity": "sha1-EpLRlQDOP4YFOwXw6Ofko7shB54=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3"
+ "ajv": "^6.10.2",
+ "lodash": "^4.17.14",
+ "slice-ansi": "^2.1.0",
+ "string-width": "^3.0.0"
}
},
- "@babel/plugin-transform-object-super": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.8.3.tgz",
- "integrity": "sha1-67ah56hv+paFi9asAQLWWUQmFyU=",
+ "tar": {
+ "version": "4.4.13",
+ "resolved": "https://registry.yarnpkg.com/tar/-/tar-4.4.13.tgz",
+ "integrity": "sha1-Q7NkvFKIjVVSmGN7ENYHkCVKtSU=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3",
- "@babel/helper-replace-supers": "7.8.6"
+ "chownr": "^1.1.1",
+ "fs-minipass": "^1.2.5",
+ "minipass": "^2.8.6",
+ "minizlib": "^1.2.1",
+ "mkdirp": "^0.5.0",
+ "safe-buffer": "^5.1.2",
+ "yallist": "^3.0.3"
}
},
- "@babel/plugin-transform-parameters": {
- "version": "7.8.8",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.8.8.tgz",
- "integrity": "sha1-A4HeRmyF1UBFZSQ2YMRJZFlSXa8=",
+ "terser": {
+ "version": "4.6.6",
+ "resolved": "https://registry.yarnpkg.com/terser/-/terser-4.6.6.tgz",
+ "integrity": "sha1-2iOC5sr734YgXoL7mhFb1mTVSGM=",
+ "dev": true,
"requires": {
- "@babel/helper-call-delegate": "7.8.7",
- "@babel/helper-get-function-arity": "7.8.3",
- "@babel/helper-plugin-utils": "7.8.3"
+ "commander": "^2.20.0",
+ "source-map": "~0.6.1",
+ "source-map-support": "~0.5.12"
}
},
- "@babel/plugin-transform-property-literals": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.8.3.tgz",
- "integrity": "sha1-MxlDANhTnB7SjGKtUIe6OAe5gmM=",
+ "test-exclude": {
+ "version": "6.0.0",
+ "resolved": "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz",
+ "integrity": "sha1-BKhphmHYBepvopO2y55jrARO8V4=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3"
+ "@istanbuljs/schema": "^0.1.2",
+ "glob": "^7.1.4",
+ "minimatch": "^3.0.4"
}
},
- "@babel/plugin-transform-regenerator": {
- "version": "7.8.7",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.8.7.tgz",
- "integrity": "sha1-Xkag3KK+4a2ChesFJ+arycN2cvg=",
+ "text-table": {
+ "version": "0.2.0",
+ "resolved": "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz",
+ "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=",
+ "dev": true
+ },
+ "through": {
+ "version": "2.3.8",
+ "resolved": "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz",
+ "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=",
+ "dev": true
+ },
+ "tmp": {
+ "version": "0.0.33",
+ "resolved": "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz",
+ "integrity": "sha1-bTQzWIl2jSGyvNoKonfO07G/rfk=",
+ "dev": true,
"requires": {
- "regenerator-transform": "0.14.3"
+ "os-tmpdir": "~1.0.2"
}
},
- "@babel/plugin-transform-reserved-words": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.8.3.tgz",
- "integrity": "sha1-mgY1rE5mXSmxYoN908xQdF398fU=",
+ "to-fast-properties": {
+ "version": "2.0.0",
+ "resolved": "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz",
+ "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=",
+ "dev": true
+ },
+ "to-regex-range": {
+ "version": "5.0.1",
+ "resolved": "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz",
+ "integrity": "sha1-FkjESq58jZiKMmAY7XL1tN0DkuQ=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3"
+ "is-number": "^7.0.0"
}
},
- "@babel/plugin-transform-shorthand-properties": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.8.3.tgz",
- "integrity": "sha1-KFRSFuAjqDLU06EYXtSSvP6sCMg=",
+ "tough-cookie": {
+ "version": "2.5.0",
+ "resolved": "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz",
+ "integrity": "sha1-zZ+yoKodWhK0c72fuW+j3P9lreI=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3"
+ "psl": "^1.1.28",
+ "punycode": "^2.1.1"
}
},
- "@babel/plugin-transform-spread": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.8.3.tgz",
- "integrity": "sha1-nI/+gXD9+4ixFOy5ILgvtulf5eg=",
+ "tr46": {
+ "version": "1.0.1",
+ "resolved": "https://registry.yarnpkg.com/tr46/-/tr46-1.0.1.tgz",
+ "integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3"
+ "punycode": "^2.1.0"
}
},
- "@babel/plugin-transform-sticky-regex": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.8.3.tgz",
- "integrity": "sha1-vnoSkPgdrnZ0dUUhmeH3bWF1sQA=",
+ "tslib": {
+ "version": "1.11.1",
+ "resolved": "https://registry.yarnpkg.com/tslib/-/tslib-1.11.1.tgz",
+ "integrity": "sha1-6xXRKIJ/vuKEFUnhcfRe0zisfjU=",
+ "dev": true
+ },
+ "tunnel-agent": {
+ "version": "0.6.0",
+ "resolved": "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
+ "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3",
- "@babel/helper-regex": "7.8.3"
+ "safe-buffer": "^5.0.1"
}
},
- "@babel/plugin-transform-template-literals": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.8.3.tgz",
- "integrity": "sha1-e/pHMrRV6mpDEwrcC6dn7A5AKoA=",
+ "tweetnacl": {
+ "version": "0.14.5",
+ "resolved": "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz",
+ "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=",
+ "dev": true
+ },
+ "type-check": {
+ "version": "0.3.2",
+ "resolved": "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz",
+ "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=",
+ "dev": true,
"requires": {
- "@babel/helper-annotate-as-pure": "7.8.3",
- "@babel/helper-plugin-utils": "7.8.3"
+ "prelude-ls": "~1.1.2"
}
},
- "@babel/plugin-transform-typeof-symbol": {
- "version": "7.8.4",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.8.4.tgz",
- "integrity": "sha1-7eQGIxXOCq+KZXqSCFjxovNfxBI=",
+ "type-detect": {
+ "version": "4.0.8",
+ "resolved": "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz",
+ "integrity": "sha1-dkb7XxiHHPu3dJ5pvTmmOI63RQw=",
+ "dev": true
+ },
+ "type-fest": {
+ "version": "0.8.1",
+ "resolved": "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz",
+ "integrity": "sha1-CeJJ696FHTseSNJ8EFREZn8XuD0=",
+ "dev": true
+ },
+ "typedarray-to-buffer": {
+ "version": "3.1.5",
+ "resolved": "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz",
+ "integrity": "sha1-qX7nqf9CaRufeD/xvFES/j/KkIA=",
+ "dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.8.3"
+ "is-typedarray": "^1.0.0"
}
},
- "@babel/plugin-transform-unicode-regex": {
- "version": "7.8.3",
- "resolved": "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.8.3.tgz",
- "integrity": "sha1-DO8247pz5cVyc+/7GC9GuRoeyq0=",
+ "uglify-js": {
+ "version": "3.8.0",
+ "resolved": "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.8.0.tgz",
+ "integrity": "sha1-81Qa6XsvBI1+fjqk85/YofXXqAU=",
+ "dev": true,
"requires": {
- "@babel/helper-create-regexp-features-plugin": "7.8.8",
- "@babel/helper-plugin-utils": "7.8.3"
+ "commander": "~2.20.3",
+ "source-map": "~0.6.1"
}
},
- "@babel/polyfill": {
- "version": "7.8.7",
- "resolved": "https://registry.yarnpkg.com/@babel/polyfill/-/polyfill-7.8.7.tgz",
- "integrity": "sha1-FR7CTHE1SBM2Fow72Li/DPkcAy8=",
+ "unicode-canonical-property-names-ecmascript": {
+ "version": "1.0.4",
+ "resolved": "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz",
+ "integrity": "sha1-JhmADEyCWADv3YNDr33Zkzy+KBg=",
+ "dev": true
+ },
+ "unicode-match-property-ecmascript": {
+ "version": "1.0.4",
+ "resolved": "https://registry.yarnpkg.com/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz",
+ "integrity": "sha1-jtKjJWmWG86SJ9Cc0/+7j+1fAgw=",
+ "dev": true,
"requires": {
- "core-js": "2.6.11",
- "regenerator-runtime": "0.13.5"
+ "unicode-canonical-property-names-ecmascript": "^1.0.4",
+ "unicode-property-aliases-ecmascript": "^1.0.4"
}
},
- "@babel/preset-env": {
- "version": "7.8.7",
- "resolved": "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.8.7.tgz",
- "integrity": "sha1-H8fYnH910tcMK2do3mwuBJs8uds=",
+ "unicode-match-property-value-ecmascript": {
+ "version": "1.2.0",
+ "resolved": "https://registry.yarnpkg.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.2.0.tgz",
+ "integrity": "sha1-DZH2AO7rMJaqlisdb8iIduZOpTE=",
+ "dev": true
+ },
+ "unicode-property-aliases-ecmascript": {
+ "version": "1.1.0",
+ "resolved": "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.1.0.tgz",
+ "integrity": "sha1-3Vepn2IHvt/0Yoq++5TFDblByPQ=",
+ "dev": true
+ },
+ "universalify": {
+ "version": "0.1.2",
+ "resolved": "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz",
+ "integrity": "sha1-tkb2m+OULavOzJ1mOcgNwQXvqmY=",
+ "dev": true
+ },
+ "uri-js": {
+ "version": "4.2.2",
+ "resolved": "https://registry.yarnpkg.com/uri-js/-/uri-js-4.2.2.tgz",
+ "integrity": "sha1-lMVA4f93KVbiKZUHwBCupsiDjrA=",
+ "dev": true,
"requires": {
- "@babel/compat-data": "7.8.6",
- "@babel/helper-compilation-targets": "7.8.7",
- "@babel/helper-module-imports": "7.8.3",
- "@babel/helper-plugin-utils": "7.8.3",
- "@babel/plugin-proposal-async-generator-functions": "7.8.3",
- "@babel/plugin-proposal-dynamic-import": "7.8.3",
- "@babel/plugin-proposal-json-strings": "7.8.3",
- "@babel/plugin-proposal-nullish-coalescing-operator": "7.8.3",
- "@babel/plugin-proposal-object-rest-spread": "7.8.3",
- "@babel/plugin-proposal-optional-catch-binding": "7.8.3",
- "@babel/plugin-proposal-optional-chaining": "7.8.3",
- "@babel/plugin-proposal-unicode-property-regex": "7.8.8",
- "@babel/plugin-syntax-async-generators": "7.8.4",
- "@babel/plugin-syntax-dynamic-import": "7.8.3",
- "@babel/plugin-syntax-json-strings": "7.8.3",
- "@babel/plugin-syntax-nullish-coalescing-operator": "7.8.3",
- "@babel/plugin-syntax-object-rest-spread": "7.8.3",
- "@babel/plugin-syntax-optional-catch-binding": "7.8.3",
- "@babel/plugin-syntax-optional-chaining": "7.8.3",
- "@babel/plugin-syntax-top-level-await": "7.8.3",
- "@babel/plugin-transform-arrow-functions": "7.8.3",
- "@babel/plugin-transform-async-to-generator": "7.8.3",
- "@babel/plugin-transform-block-scoped-functions": "7.8.3",
- "@babel/plugin-transform-block-scoping": "7.8.3",
- "@babel/plugin-transform-classes": "7.8.6",
- "@babel/plugin-transform-computed-properties": "7.8.3",
- "@babel/plugin-transform-destructuring": "7.8.8",
- "@babel/plugin-transform-dotall-regex": "7.8.3",
- "@babel/plugin-transform-duplicate-keys": "7.8.3",
- "@babel/plugin-transform-exponentiation-operator": "7.8.3",
- "@babel/plugin-transform-for-of": "7.8.6",
- "@babel/plugin-transform-function-name": "7.8.3",
- "@babel/plugin-transform-literals": "7.8.3",
- "@babel/plugin-transform-member-expression-literals": "7.8.3",
- "@babel/plugin-transform-modules-amd": "7.8.3",
- "@babel/plugin-transform-modules-commonjs": "7.8.3",
- "@babel/plugin-transform-modules-systemjs": "7.8.3",
- "@babel/plugin-transform-modules-umd": "7.8.3",
- "@babel/plugin-transform-named-capturing-groups-regex": "7.8.3",
- "@babel/plugin-transform-new-target": "7.8.3",
- "@babel/plugin-transform-object-super": "7.8.3",
- "@babel/plugin-transform-parameters": "7.8.8",
- "@babel/plugin-transform-property-literals": "7.8.3",
- "@babel/plugin-transform-regenerator": "7.8.7",
- "@babel/plugin-transform-reserved-words": "7.8.3",
- "@babel/plugin-transform-shorthand-properties": "7.8.3",
- "@babel/plugin-transform-spread": "7.8.3",
- "@babel/plugin-transform-sticky-regex": "7.8.3",
- "@babel/plugin-transform-template-literals": "7.8.3",
- "@babel/plugin-transform-typeof-symbol": "7.8.4",
- "@babel/plugin-transform-unicode-regex": "7.8.3",
- "@babel/types": "7.8.7",
- "browserslist": "4.9.1",
- "core-js-compat": "3.6.4",
- "invariant": "2.2.4",
- "levenary": "1.1.1",
- "semver": "5.7.1"
+ "punycode": "^2.1.0"
}
},
- "@babel/register": {
- "version": "7.8.6",
- "resolved": "https://registry.yarnpkg.com/@babel/register/-/register-7.8.6.tgz",
- "integrity": "sha1-oQZqphaKc6cMNe8ozFhlzMCH6mk=",
+ "util-deprecate": {
+ "version": "1.0.2",
+ "resolved": "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz",
+ "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
+ "dev": true
+ },
+ "uuid": {
+ "version": "3.4.0",
+ "resolved": "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz",
+ "integrity": "sha1-sj5DWK+oogL+ehAK8fX4g/AgB+4=",
+ "dev": true
+ },
+ "v8-compile-cache": {
+ "version": "2.1.0",
+ "resolved": "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.1.0.tgz",
+ "integrity": "sha1-4U3jezGm0ZT1aQ1n78Tn9vxqsw4=",
+ "dev": true
+ },
+ "verror": {
+ "version": "1.10.0",
+ "resolved": "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz",
+ "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
+ "dev": true,
"requires": {
- "find-cache-dir": "2.1.0",
- "lodash": "4.17.15",
- "make-dir": "2.1.0",
- "pirates": "4.0.1",
- "source-map-support": "0.5.16"
+ "assert-plus": "^1.0.0",
+ "core-util-is": "1.0.2",
+ "extsprintf": "^1.2.0"
},
"dependencies": {
- "make-dir": {
- "version": "2.1.0",
- "resolved": "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz",
- "integrity": "sha1-XwMQ4YuL6JjMBwCSlaMK5B6R5vU=",
- "requires": {
- "pify": "4.0.1",
- "semver": "5.7.1"
- }
+ "extsprintf": {
+ "version": "1.4.0",
+ "resolved": "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz",
+ "integrity": "sha1-4mifjzVvrWLMplo6kcXfX5VRaS8=",
+ "dev": true
}
}
},
- "@babel/runtime": {
- "version": "7.8.7",
- "resolved": "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.8.7.tgz",
- "integrity": "sha1-j+/OmALbVIgbpZ+Quyhxm0mWMk0=",
+ "w3c-hr-time": {
+ "version": "1.0.2",
+ "resolved": "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz",
+ "integrity": "sha1-ConN9cwVgi35w2BUNnaWPgzDCM0=",
+ "dev": true,
"requires": {
- "regenerator-runtime": "0.13.5"
+ "browser-process-hrtime": "^1.0.0"
}
},
- "@babel/template": {
- "version": "7.8.6",
- "resolved": "https://registry.yarnpkg.com/@babel/template/-/template-7.8.6.tgz",
- "integrity": "sha1-hrIq8V+CjfsIZHT5ZNzD45xDzis=",
+ "w3c-xmlserializer": {
+ "version": "1.1.2",
+ "resolved": "https://registry.yarnpkg.com/w3c-xmlserializer/-/w3c-xmlserializer-1.1.2.tgz",
+ "integrity": "sha1-MEhcp9cKb9BSQgo9Ev2Q5jOc55Q=",
+ "dev": true,
"requires": {
- "@babel/code-frame": "7.8.3",
- "@babel/parser": "7.8.8",
- "@babel/types": "7.8.7"
+ "domexception": "^1.0.1",
+ "webidl-conversions": "^4.0.2",
+ "xml-name-validator": "^3.0.0"
}
},
- "@babel/traverse": {
- "version": "7.8.6",
- "resolved": "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.8.6.tgz",
- "integrity": "sha1-rP4MZOHNmRs+MuroE6brVklUtf8=",
+ "webidl-conversions": {
+ "version": "4.0.2",
+ "resolved": "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz",
+ "integrity": "sha1-qFWYCx8LazWbodXZ+zmulB+qY60=",
+ "dev": true
+ },
+ "whatwg-encoding": {
+ "version": "1.0.5",
+ "resolved": "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz",
+ "integrity": "sha1-WrrPd3wyFmpR0IXWtPPn0nET3bA=",
+ "dev": true,
"requires": {
- "@babel/code-frame": "7.8.3",
- "@babel/generator": "7.8.8",
- "@babel/helper-function-name": "7.8.3",
- "@babel/helper-split-export-declaration": "7.8.3",
- "@babel/parser": "7.8.8",
- "@babel/types": "7.8.7",
- "debug": "4.1.1",
- "globals": "11.12.0",
- "lodash": "4.17.15"
+ "iconv-lite": "0.4.24"
}
},
- "@babel/types": {
- "version": "7.8.7",
- "resolved": "https://registry.yarnpkg.com/@babel/types/-/types-7.8.7.tgz",
- "integrity": "sha1-H8lynhrLsjN9W2l3pjl5tIGfXR0=",
+ "whatwg-mimetype": {
+ "version": "2.3.0",
+ "resolved": "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz",
+ "integrity": "sha1-PUseAxLSB5h5+Cav8Y2+7KWWD78=",
+ "dev": true
+ },
+ "whatwg-url": {
+ "version": "7.1.0",
+ "resolved": "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-7.1.0.tgz",
+ "integrity": "sha1-wsSS8eymEpiO/T0iZr4bn8YXDQY=",
+ "dev": true,
"requires": {
- "esutils": "2.0.3",
- "lodash": "4.17.15",
- "to-fast-properties": "2.0.0"
+ "lodash.sortby": "^4.7.0",
+ "tr46": "^1.0.1",
+ "webidl-conversions": "^4.0.2"
}
},
- "@istanbuljs/load-nyc-config": {
- "version": "1.0.0",
- "resolved": "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.0.0.tgz",
- "integrity": "sha1-EGAt5VcLrqgvivv6JjCyTnqM/ls=",
+ "which": {
+ "version": "1.3.1",
+ "resolved": "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz",
+ "integrity": "sha1-pFBD1U9YBTFtqNYvn1CRjT2nCwo=",
+ "dev": true,
"requires": {
- "camelcase": "5.3.1",
- "find-up": "4.1.0",
- "js-yaml": "3.13.1",
- "resolve-from": "5.0.0"
+ "isexe": "^2.0.0"
+ }
+ },
+ "which-module": {
+ "version": "2.0.0",
+ "resolved": "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz",
+ "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=",
+ "dev": true
+ },
+ "wide-align": {
+ "version": "1.1.3",
+ "resolved": "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz",
+ "integrity": "sha1-rgdOa9wMFKQx6ATmJFScYzsABFc=",
+ "dev": true,
+ "requires": {
+ "string-width": "^1.0.2 || 2"
},
"dependencies": {
- "find-up": {
- "version": "4.1.0",
- "resolved": "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz",
- "integrity": "sha1-l6/n1s3AvFkoWEt8jXsW6KmqXRk=",
- "requires": {
- "locate-path": "5.0.0",
- "path-exists": "4.0.0"
- }
+ "ansi-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz",
+ "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=",
+ "dev": true
},
- "locate-path": {
- "version": "5.0.0",
- "resolved": "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz",
- "integrity": "sha1-Gvujlq/WdqbUJQTQpno6frn2KqA=",
+ "string-width": {
+ "version": "2.1.1",
+ "resolved": "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz",
+ "integrity": "sha1-q5Pyeo3BPSjKyBXEYhQ6bZASrp4=",
+ "dev": true,
"requires": {
- "p-locate": "4.1.0"
+ "is-fullwidth-code-point": "^2.0.0",
+ "strip-ansi": "^4.0.0"
}
},
- "p-locate": {
- "version": "4.1.0",
- "resolved": "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz",
- "integrity": "sha1-o0KLtwiLOmApL2aRkni3wpetTwc=",
+ "strip-ansi": {
+ "version": "4.0.0",
+ "resolved": "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz",
+ "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=",
+ "dev": true,
"requires": {
- "p-limit": "2.2.2"
+ "ansi-regex": "^3.0.0"
}
- },
- "path-exists": {
- "version": "4.0.0",
- "resolved": "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz",
- "integrity": "sha1-UTvb4tO5XXdi6METfvoZXGxhtbM="
}
}
},
- "@istanbuljs/schema": {
- "version": "0.1.2",
- "resolved": "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.2.tgz",
- "integrity": "sha1-JlIL8Jq+SlZEzVQU43ElqJVCQd0="
+ "word-wrap": {
+ "version": "1.2.3",
+ "resolved": "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz",
+ "integrity": "sha1-YQY29rH3A4kb00dxzLF/uTtHB5w=",
+ "dev": true
},
- "@nodelib/fs.scandir": {
- "version": "2.1.3",
- "resolved": "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.3.tgz",
- "integrity": "sha1-Olgr21OATGum0UZXnEblITDPSjs=",
+ "wordwrap": {
+ "version": "1.0.0",
+ "resolved": "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz",
+ "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=",
+ "dev": true
+ },
+ "wrap-ansi": {
+ "version": "5.1.0",
+ "resolved": "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-5.1.0.tgz",
+ "integrity": "sha1-H9H2cjXVttD+54EFYAG/tpTAOwk=",
+ "dev": true,
"requires": {
- "@nodelib/fs.stat": "2.0.3",
- "run-parallel": "1.1.9"
+ "ansi-styles": "^3.2.0",
+ "string-width": "^3.0.0",
+ "strip-ansi": "^5.0.0"
}
},
- "@nodelib/fs.stat": {
- "version": "2.0.3",
- "resolved": "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.3.tgz",
- "integrity": "sha1-NNxfTKu8cg9OYPdadH5+zWwXW9M="
+ "wrappy": {
+ "version": "1.0.2",
+ "resolved": "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz",
+ "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
+ "dev": true
},
- "@nodelib/fs.walk": {
- "version": "1.2.4",
- "resolved": "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.4.tgz",
- "integrity": "sha1-ARuSAqcKY2bkNspcBlhEUoqwSXY=",
+ "write": {
+ "version": "1.0.3",
+ "resolved": "https://registry.yarnpkg.com/write/-/write-1.0.3.tgz",
+ "integrity": "sha1-CADhRSO5I6OH5BUSPIZWFqrg9cM=",
+ "dev": true,
"requires": {
- "@nodelib/fs.scandir": "2.1.3",
- "fastq": "1.6.1"
+ "mkdirp": "^0.5.1"
}
},
- "@types/color-name": {
- "version": "1.1.1",
- "resolved": "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz",
- "integrity": "sha1-HBJhu+qhCoBVu8XYq4S3sq/IRqA="
+ "write-file-atomic": {
+ "version": "3.0.3",
+ "resolved": "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-3.0.3.tgz",
+ "integrity": "sha1-Vr1cWlxwSBzRnFcb05q5ZaXeVug=",
+ "dev": true,
+ "requires": {
+ "imurmurhash": "^0.1.4",
+ "is-typedarray": "^1.0.0",
+ "signal-exit": "^3.0.2",
+ "typedarray-to-buffer": "^3.1.5"
+ }
},
- "@types/events": {
+ "ws": {
+ "version": "7.2.3",
+ "resolved": "https://registry.yarnpkg.com/ws/-/ws-7.2.3.tgz",
+ "integrity": "sha1-pUEeH7BNXtDv7nbSbVxG2DDDm0Y=",
+ "dev": true
+ },
+ "xml-name-validator": {
"version": "3.0.0",
- "resolved": "https://registry.yarnpkg.com/@types/events/-/events-3.0.0.tgz",
- "integrity": "sha1-KGLz9Yqaf3w+eNefEw3U1xwlwqc="
+ "resolved": "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz",
+ "integrity": "sha1-auc+Bt5NjG5H+fsYH3jWSK1FfGo=",
+ "dev": true
},
- "@types/fs-extra": {
- "version": "8.1.0",
- "resolved": "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-8.1.0.tgz",
- "integrity": "sha1-ERSDS1PDkUgGzQOzMEs3s70iGk0=",
+ "xmlchars": {
+ "version": "2.2.0",
+ "resolved": "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz",
+ "integrity": "sha1-Bg/hvLf5x2/ioX24apvDq4lCEMs=",
+ "dev": true
+ },
+ "y18n": {
+ "version": "4.0.0",
+ "resolved": "https://registry.yarnpkg.com/y18n/-/y18n-4.0.0.tgz",
+ "integrity": "sha1-le+U+F7MgdAHwmThkKEg8KPIVms=",
+ "dev": true
+ },
+ "yallist": {
+ "version": "3.1.1",
+ "resolved": "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz",
+ "integrity": "sha1-27fa+b/YusmrRev2ArjLrQ1dCP0=",
+ "dev": true
+ },
+ "yargs": {
+ "version": "13.3.0",
+ "resolved": "https://registry.yarnpkg.com/yargs/-/yargs-13.3.0.tgz",
+ "integrity": "sha1-TGV6VeB+Xyz5R/ijZlZ8BKDe3IM=",
+ "dev": true,
"requires": {
- "@types/node": "13.9.1"
+ "cliui": "^5.0.0",
+ "find-up": "^3.0.0",
+ "get-caller-file": "^2.0.1",
+ "require-directory": "^2.1.1",
+ "require-main-filename": "^2.0.0",
+ "set-blocking": "^2.0.0",
+ "string-width": "^3.0.0",
+ "which-module": "^2.0.0",
+ "y18n": "^4.0.0",
+ "yargs-parser": "^13.1.1"
}
},
- "@types/glob": {
- "version": "7.1.1",
- "resolved": "https://registry.yarnpkg.com/@types/glob/-/glob-7.1.1.tgz",
- "integrity": "sha1-qlmhxuP7xCHgfM0xqUTDDrpSFXU=",
+ "yargs-parser": {
+ "version": "13.1.2",
+ "resolved": "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-13.1.2.tgz",
+ "integrity": "sha1-Ew8JcC667vJlDVTObj5XBvek+zg=",
+ "dev": true,
"requires": {
- "@types/events": "3.0.0",
- "@types/minimatch": "3.0.3",
- "@types/node": "13.9.1"
+ "camelcase": "^5.0.0",
+ "decamelize": "^1.2.0"
}
},
- "@types/minimatch": {
- "version": "3.0.3",
- "resolved": "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz",
- "integrity": "sha1-PcoOPzOyAPx9ETnAzZbBJoyt/Z0="
- },
- "@types/node": {
- "version": "13.9.1",
- "resolved": "https://registry.yarnpkg.com/@types/node/-/node-13.9.1.tgz",
- "integrity": "sha1-lvYG+M1n+wGIR9m2HpOZfave/HI="
+ "yargs-unparser": {
+ "version": "1.6.0",
+ "resolved": "https://registry.yarnpkg.com/yargs-unparser/-/yargs-unparser-1.6.0.tgz",
+ "integrity": "sha1-7yXCx2n/a9CeSw+dfGBfsnhG6p8=",
+ "dev": true,
+ "requires": {
+ "flat": "^4.1.0",
+ "lodash": "^4.17.15",
+ "yargs": "^13.3.0"
+ },
+ "dependencies": {
+ "yargs": {
+ "version": "13.3.2",
+ "resolved": "https://registry.yarnpkg.com/yargs/-/yargs-13.3.2.tgz",
+ "integrity": "sha1-rX/+/sGqWVZayRX4Lcyzipwxot0=",
+ "dev": true,
+ "requires": {
+ "cliui": "^5.0.0",
+ "find-up": "^3.0.0",
+ "get-caller-file": "^2.0.1",
+ "require-directory": "^2.1.1",
+ "require-main-filename": "^2.0.0",
+ "set-blocking": "^2.0.0",
+ "string-width": "^3.0.0",
+ "which-module": "^2.0.0",
+ "y18n": "^4.0.0",
+ "yargs-parser": "^13.1.2"
+ }
+ }
+ }
}
}
}
diff --git a/test/index.spec.js b/test/index.spec.js
index d8ae19d..6947f43 100644
--- a/test/index.spec.js
+++ b/test/index.spec.js
@@ -149,6 +149,34 @@ describe('Tests', function () {
})
+ it('resize png image file with maxWidth', async () => {
+ const file = new File([PNG_FILE], PNG_NAME, { type: 'image/png' })
+
+ const maxWidth = 400
+
+ const compressedFile = await imageCompression(file, { maxWidth, useWebWorker: false, exifOrientation: -2 })
+
+ const temp = await drawFileInCanvas(compressedFile)
+
+ const img = temp[0]
+ expect(img.width).to.be.at.most(maxWidth)
+
+ })
+
+ it('resize png image file with maxHeight', async () => {
+ const file = new File([PNG_FILE], PNG_NAME, { type: 'image/png' })
+
+ const maxHeight = 400
+
+ const compressedFile = await imageCompression(file, { maxHeight, useWebWorker: false, exifOrientation: -2 })
+
+ const temp = await drawFileInCanvas(compressedFile)
+
+ const img = temp[0]
+ expect(img.height).to.be.at.most(maxHeight)
+
+ })
+
it('compress and resize png image file', async () => {
const file = new File([PNG_FILE], PNG_NAME, { type: 'image/png' })