diff --git a/.gitpod.dockerfile b/.gitpod.dockerfile index a2740464..063f02d0 100644 --- a/.gitpod.dockerfile +++ b/.gitpod.dockerfile @@ -30,19 +30,24 @@ RUN sudo apt-get update && apt-get install -y apt-transport-https \ libatk1.0-0 \ libc6 \ libcairo2 \ + libcairo2-dev \ libcups2 \ libdbus-1-3 \ libexpat1 \ libfontconfig1 \ libgbm1 \ libgcc1 \ + libgif-dev \ libglib2.0-0 \ libgtk-3-0 \ + libjpeg-dev \ libnspr4 \ libnss3 \ libpango-1.0-0 \ + libpango-1.0-dev \ libpangocairo-1.0-0 \ libstdc++6 \ + librsvg2-dev \ libx11-6 \ libx11-xcb1 \ libxcb1 \ diff --git a/examples/sw.js b/examples/sw.js index ea874487..50317876 100644 --- a/examples/sw.js +++ b/examples/sw.js @@ -1,4 +1,4 @@ -const staticCacheName = 'image-sequencer-static-v3.6.0'; +const staticCacheName = 'image-sequencer-static-v3.7.0'; self.addEventListener('install', function(e) { e.waitUntil( caches.open(staticCacheName).then(function(cache) { @@ -38,19 +38,19 @@ self.addEventListener('fetch', function(event) { cache.put(event.request.url, response.clone()); } return response; - }) + }); }) .catch(function(err) { // Now the request has been failed so show cached data. return caches.match(event.request).then(function(res){ - if (res === undefined) { + if (res === undefined) { // Display offline page return caches.match('offline.html'); } return res; }); - }) - ) + }) + ); }); // When the update modal sends a 'skipWaiting' message, call the skipWaiting method. diff --git a/package.json b/package.json index 5627b39c..46731134 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "image-sequencer", - "version": "3.6.0", + "version": "3.7.0", "description": "A modular JavaScript image manipulation library modeled on a storyboard.", "main": "src/ImageSequencer.js", "scripts": { @@ -88,6 +88,7 @@ "@babel/plugin-syntax-object-rest-spread": "^7.2.0", "babelify": "^10.0.0", "browserify": "17.0.0", + "canvas": "^2.8.0", "eslint": "^8.0.0", "grunt": "^1.0.3", "grunt-browser-sync": "^2.2.0",