From 988e902f6532dcb1899d72603f116e0a5522ba12 Mon Sep 17 00:00:00 2001 From: jberg Date: Wed, 22 Aug 2018 18:40:03 -0700 Subject: [PATCH] update to latest preset converter and pass in lambda URL (#641) --- js/components/MilkdropWindow/Presets.js | 7 ++++++- package.json | 2 +- yarn.lock | 6 +++--- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/js/components/MilkdropWindow/Presets.js b/js/components/MilkdropWindow/Presets.js index 2b047444..cc2c3250 100644 --- a/js/components/MilkdropWindow/Presets.js +++ b/js/components/MilkdropWindow/Presets.js @@ -103,7 +103,12 @@ export default class Presets { async require => { const { convertPreset } = require("milkdrop-preset-converter-aws"); try { - resolve(convertPreset(file)); + resolve( + convertPreset( + file, + "https://p2tpeb5v8b.execute-api.us-east-2.amazonaws.com/default/milkdropShaderConverter" + ) + ); } catch (e) { reject(e); } diff --git a/package.json b/package.json index b5ea1167..119ad5d6 100644 --- a/package.json +++ b/package.json @@ -87,7 +87,7 @@ "jest-runner-eslint": "^0.4.0", "jsmediatags": "^3.8.1", "jszip": "^3.1.3", - "milkdrop-preset-converter-aws": "^0.0.10", + "milkdrop-preset-converter-aws": "^0.1.0", "prettier": "^1.13.0", "prop-types": "^15.5.10", "puppeteer": "^1.4.0", diff --git a/yarn.lock b/yarn.lock index 41974245..37c42e56 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5349,9 +5349,9 @@ milkdrop-eel-parser@^0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/milkdrop-eel-parser/-/milkdrop-eel-parser-0.0.1.tgz#1c1a82bb7877d9df6d45e6f0b602b4cd1a5dc26d" -milkdrop-preset-converter-aws@^0.0.10: - version "0.0.10" - resolved "https://registry.yarnpkg.com/milkdrop-preset-converter-aws/-/milkdrop-preset-converter-aws-0.0.10.tgz#0519ec68e6b560e55f3aa0bd399660ba95acf275" +milkdrop-preset-converter-aws@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/milkdrop-preset-converter-aws/-/milkdrop-preset-converter-aws-0.1.0.tgz#d73efc384c04d581d5c16eb713c6b0241286788b" dependencies: babel-runtime "^6.26.0" glsl-optimizer-js "^0.0.2"