Interactive interface for browsing global, full-resolution satellite imagery
change build nonce to uuid (#4657)
Patrick Moulden8c601a04ac93
diff --git a/package-lock.json b/package-lock.jsonindex d9a0af125..c19c4b29e 100644--- a/package-lock.json+++ b/package-lock.json@@ -136,6 +136,7 @@"stylelint-high-performance-animation": "^1.9.0","tar": "^6.2.0","terser-webpack-plugin": "^5.3.9",+ "uuid": "^9.0.1","webpack": "^5.88.1","webpack-bundle-analyzer": "^4.9.1","webpack-cli": "^5.1.4",@@ -15920,6 +15921,15 @@"websocket-driver": "^0.7.4"}},+ "node_modules/sockjs/node_modules/uuid": {+ "version": "8.3.2",+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",+ "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",+ "dev": true,+ "bin": {+ "uuid": "dist/bin/uuid"+ }+ },"node_modules/sort-asc": {"version": "0.1.0","engines": {@@ -17360,9 +17370,14 @@}},"node_modules/uuid": {- "version": "8.3.2",+ "version": "9.0.1",+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz",+ "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==","dev": true,- "license": "MIT",+ "funding": [+ "https://github.com/sponsors/broofa",+ "https://github.com/sponsors/ctavan"+ ],"bin": {"uuid": "dist/bin/uuid"}@@ -28531,6 +28546,14 @@"faye-websocket": "^0.11.3","uuid": "^8.3.2","websocket-driver": "^0.7.4"+ },+ "dependencies": {+ "uuid": {+ "version": "8.3.2",+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",+ "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",+ "dev": true+ }}},"sort-asc": {@@ -29455,7 +29478,9 @@"dev": true},"uuid": {- "version": "8.3.2",+ "version": "9.0.1",+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz",+ "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==","dev": true},"uuid-v4": {diff --git a/package.json b/package.jsonindex f216b0786..81b2ade17 100644--- a/package.json+++ b/package.json@@ -136,6 +136,7 @@"stylelint-high-performance-animation": "^1.9.0","tar": "^6.2.0","terser-webpack-plugin": "^5.3.9",+ "uuid": "^9.0.1","webpack": "^5.88.1","webpack-bundle-analyzer": "^4.9.1","webpack-cli": "^5.1.4",diff --git a/tasks/util/dist.js b/tasks/util/dist.jsindex c4ce8b103..1ec64cd5e 100755--- a/tasks/util/dist.js+++ b/tasks/util/dist.js@@ -3,6 +3,7 @@ const moment = require('moment')const shell = require('shelljs')const tar = require('tar')const pkg = require('../../package.json')+const { v4: uuidv4 } = require('uuid')console.log('Preparing distribution')shell.rm('-rf', 'build/worldview')@@ -35,7 +36,7 @@ const applyTo = [const buildTimestamp = moment.utc().format('MMMM DD, YYYY [-] HH:mm [UTC]')// Append to all URI references for cache busting-const buildNonce = moment.utc().format('YYYYMMDDHHmmssSSS')+const buildNonce = uuidv4()const officialName = brand.officialName || brand.nameconst longName = brand.longName || brand.name