From f183a1fa2142173dbf0fed8c15d02011fa862bb7 Mon Sep 17 00:00:00 2001 From: Ryan Haskell-Glatz Date: Sun, 2 May 2021 10:42:51 -0500 Subject: [PATCH] release 6.0.3 --- src/cli/package-lock.json | 6 ++++-- src/cli/package.json | 2 +- src/cli/src/templates/utils.ts | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/cli/package-lock.json b/src/cli/package-lock.json index 8f61cc4..6e61cac 100644 --- a/src/cli/package-lock.json +++ b/src/cli/package-lock.json @@ -1,12 +1,12 @@ { "name": "elm-spa", - "version": "6.0.2", + "version": "6.0.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "elm-spa", - "version": "6.0.2", + "version": "6.0.3", "license": "BSD-3-Clause", "dependencies": { "chokidar": "3.4.2", @@ -1650,6 +1650,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.2.tgz", "integrity": "sha512-AtnG3W6M8B2n4xDQ5R+70EXvOpnXsFYg/AK2yTZd+HQ/oxAdz+GI+DvjmhBw3L0ole+LJ0ngqY4JMbDzkfNzhA==", + "hasInstallScript": true, "dependencies": { "node-gyp-build": "^4.2.0" } @@ -7166,6 +7167,7 @@ "version": "5.0.3", "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.3.tgz", "integrity": "sha512-jtJM6fpGv8C1SoH4PtG22pGto6x+Y8uPprW0tw3//gGFhDDTiuksgradgFN6yRayDP4SyZZa6ZMGHLIa17+M8A==", + "hasInstallScript": true, "dependencies": { "node-gyp-build": "^4.2.0" } diff --git a/src/cli/package.json b/src/cli/package.json index 8a4388f..3d4c313 100644 --- a/src/cli/package.json +++ b/src/cli/package.json @@ -1,6 +1,6 @@ { "name": "elm-spa", - "version": "6.0.2", + "version": "6.0.3", "description": "single page apps made easy", "bin": "dist/src/index.js", "scripts": { diff --git a/src/cli/src/templates/utils.ts b/src/cli/src/templates/utils.ts index 852cb2f..8e55cf8 100644 --- a/src/cli/src/templates/utils.ts +++ b/src/cli/src/templates/utils.ts @@ -317,7 +317,7 @@ const pageModelArguments = (path: string[], options : Options) : string => { } const exposes = (value : string) => (str : string) : boolean => { - const regex = new RegExp('^module\\s+[^\\s]+\\s+exposing\\s+\\((([^\\\\])+)\\)') + const regex = new RegExp('^module\\s+[^\\s]+\\s+exposing\\s+\\(((?:\\.\\)|[^)])+)\\)') const match = (str.match(regex) || [])[1] if (match) { return match.split(',').filter(a => a).map(a => a.trim()).includes(value)