@abi-software/map-side-bar 1.3.38 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/map-side-bar",
3
- "version": "1.3.38",
3
+ "version": "1.4.0",
4
4
  "main": "./dist/map-side-bar.common.js",
5
5
  "files": [
6
6
  "dist/*",
@@ -14,21 +14,27 @@
14
14
  "build-bundle": "vue-cli-service build --target lib --name map-side-bar ./src/components/index.js ",
15
15
  "build": "vue-cli-service build",
16
16
  "lint": "vue-cli-service lint",
17
- "start": "vue-cli-service serve"
17
+ "start": "vue-cli-service serve",
18
+ "release:beta": "npm version prerelease --preid=beta; npm publish --tag beta",
19
+ "release:minor": "npm version minor; npm publish",
20
+ "release:patch": "npm version patch; npm publish",
21
+ "changelog": "auto-changelog -p --output CHANGELOG.md --template keepachangelog",
22
+ "version": "npm run build-bundle;npm run changelog; git add CHANGELOG.md"
18
23
  },
19
24
  "dependencies": {
20
- "@abi-software/gallery": "^0.3.3",
25
+ "@abi-software/gallery": "^0.4.0",
21
26
  "@abi-software/svg-sprite": "^0.2.0",
22
27
  "algoliasearch": "^4.10.5",
23
- "element-ui": "^2.13.0",
28
+ "element-ui": "^2.15.13",
24
29
  "marked": "^4.1.1",
25
- "vue": "^2.6.10",
30
+ "vue": "2.6.14",
26
31
  "xss": "^1.0.14"
27
32
  },
28
33
  "devDependencies": {
29
- "@vue/cli-plugin-babel": "^4.0.0",
30
- "@vue/cli-plugin-eslint": "^4.0.0",
31
- "@vue/cli-service": "^4.0.0",
34
+ "@vue/cli-plugin-babel": "^4.5.19",
35
+ "@vue/cli-plugin-eslint": "^4.5.19",
36
+ "@vue/cli-service": "^4.5.19",
37
+ "auto-changelog": "^2.4.0",
32
38
  "babel-eslint": "^10.0.3",
33
39
  "babel-plugin-component": "^1.1.1",
34
40
  "eslint": "^5.16.0",
@@ -40,7 +46,7 @@
40
46
  "transform-loader": "^0.2.4",
41
47
  "typescript": "^4.4.3",
42
48
  "vue-custom-element": "^3.3.0",
43
- "vue-template-compiler": "^2.6.10",
49
+ "vue-template-compiler": "2.6.14",
44
50
  "webpack-node-externals": "^2.5.2"
45
51
  },
46
52
  "eslintConfig": {
@@ -180,9 +180,16 @@ export default {
180
180
  const filePathPrefix = `${this.envVars.API_LOCATION}/s3-resource/${this.datasetId}/${this.datasetVersion}/files/`;
181
181
  const sourceUrl = filePathPrefix + plot.dataset.path + this.getS3Args();
182
182
 
183
- const metadata = JSON.parse(
184
- plotAnnotation.supplemental_json_metadata.description
185
- );
183
+ //plotAnnotation.supplemental_json_metadata.description can be undefined or
184
+ //contain an empty string causing an error with JSON.parse
185
+ let metadata = {};
186
+ try {
187
+ metadata = JSON.parse(
188
+ plotAnnotation.supplemental_json_metadata.description
189
+ );
190
+ } catch (error) {
191
+ console.warn(error);
192
+ }
186
193
 
187
194
  let supplementalData = [];
188
195
  if (plotAnnotation.isDescribedBy) {
package/vue.config.js CHANGED
@@ -9,8 +9,6 @@ module.exports = {
9
9
  }
10
10
  },
11
11
  css: {
12
- sourceMap: process.env.NODE_ENV === 'wc',
13
- extract: process.env.NODE_ENV !== 'wc',
14
12
  //Import variables into all stylesheets.
15
13
  loaderOptions: {
16
14
  sass: {