build: Update colorbrewer package.
MODIFY
examples/index.js
examples/index.js
@@ -22,7 +22,7 @@ require('codemirror/addon/fold/foldgutter');
require('codemirror/addon/edit/matchbrackets');
// Colorbrewer
-require('colorbrewer');
+window.colorbrewer = require('colorbrewer').default;
// common example code
require('./common/examples.css');

MODIFY
package-lock.json
package-lock.json
"optional": true
},
"colorbrewer": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/colorbrewer/-/colorbrewer-1.3.0.tgz",
- "integrity": "sha512-AzVPpWa+fuO/qY8LxPQjej6F49Lb2Cl+7U9YhPn6y4/SOY6u/EZiXUc7qHzRb6i6fWPStCUdEaU2731QyQKWjg==",
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/colorbrewer/-/colorbrewer-1.5.1.tgz",
+ "integrity": "sha512-Vst8clAzqa10z4MYDfz57WsC0LTbURYDat2+49ETzuUfvugZ5GvKtMnmyMaqFZ3Fwm6hg8oA7uBhmGVSS4Thcw==",
"dev": true
},
"colormin": {
"dev": true
},
"css": {
- "version": "2.2.4",
- "resolved": "https://registry.npmjs.org/css/-/css-2.2.4.tgz",
- "integrity": "sha512-oUnjmWpy0niI3x/mPL8dVEI1l7MnG3+HHyRPHf+YFSbK+svOhXpmSOcDURUh2aOCgl2grzrOPt1nHLuCVFULLw==",
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/css/-/css-3.0.0.tgz",
+ "integrity": "sha512-DG9pFfwOrzc+hawpmqX/dHYHJG+Bsdb0klhyi1sDneOgGOXy9wQIC8hzyVp1e4NRYDBdxcylvywPkkXCHAzTyQ==",
"dev": true,
"requires": {
- "inherits": "^2.0.3",
+ "inherits": "^2.0.4",
"source-map": "^0.6.1",
- "source-map-resolve": "^0.5.2",
- "urix": "^0.1.0"
+ "source-map-resolve": "^0.6.0"
},
"dependencies": {
"source-map": {
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
"dev": true
+ },
+ "source-map-resolve": {
+ "version": "0.6.0",
+ "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.6.0.tgz",
+ "integrity": "sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==",
+ "dev": true,
+ "requires": {
+ "atob": "^2.1.2",
+ "decode-uri-component": "^0.2.0"
+ }
}
}
},
}
},
"stylus": {
- "version": "0.54.8",
- "resolved": "https://registry.npmjs.org/stylus/-/stylus-0.54.8.tgz",
- "integrity": "sha512-vr54Or4BZ7pJafo2mpf0ZcwA74rpuYCZbxrHBsH8kbcXOwSfvBFwsRfpGO5OD5fhG5HDCFW737PKaawI7OqEAg==",
+ "version": "0.56.0",
+ "resolved": "https://registry.npmjs.org/stylus/-/stylus-0.56.0.tgz",
+ "integrity": "sha512-Ev3fOb4bUElwWu4F9P9WjnnaSpc8XB9OFHSFZSKMFL1CE1oM+oFXWEgAqPmmZIyhBihuqIQlFsVTypiiS9RxeA==",
"dev": true,
"requires": {
- "css-parse": "~2.0.0",
- "debug": "~3.1.0",
+ "css": "^3.0.0",
+ "debug": "^4.3.2",
"glob": "^7.1.6",
- "mkdirp": "~1.0.4",
"safer-buffer": "^2.1.2",
"sax": "~1.2.4",
- "semver": "^6.3.0",
"source-map": "^0.7.3"
},
"dependencies": {
- "css-parse": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/css-parse/-/css-parse-2.0.0.tgz",
- "integrity": "sha1-pGjuZnwW2BzPBcWMONKpfHgNv9Q=",
- "dev": true,
- "requires": {
- "css": "^2.0.0"
- }
- },
"debug": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
- "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
+ "version": "4.3.3",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz",
+ "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==",
"dev": true,
"requires": {
- "ms": "2.0.0"
+ "ms": "2.1.2"
}
},
- "mkdirp": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
- "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
- "dev": true
- },
- "semver": {
- "version": "6.3.0",
- "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
- "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
+ "ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
"dev": true
},
"source-map": {

MODIFY
package.json
package.json
"bootstrap": "^3.4.1",
"bootswatch": "^3.4.1",
"codemirror": "^5.65.0",
- "colorbrewer": "1.3.0",
+ "colorbrewer": "1.5.1",
"css-loader": "^0.28.11",
"docco": "^0.9.1",
"eslint": "^8.5.0",
"sinon": "^1.17.7",
"string-replace-webpack-plugin": "^0.1.3",
"style-loader": "^0.23.1",
- "stylus": "^0.54.7",
+ "stylus": "^0.56.0",
"stylus-loader": "^3.0.2",
"touch-emulator": "^1.0.0",
"typeface-lato": "^0.0.75",

MODIFY
tests/cases/colorLegend.js
tests/cases/colorLegend.js
var $ = require('jquery');
var createMap = require('../test-utils').createMap;
-var colorbrewer = require('colorbrewer');
+var colorbrewer = require('colorbrewer/index.js');
describe('color legend', function () {
'use strict';

MODIFY
webpack-examples.config.js
webpack-examples.config.js
@@ -22,9 +22,6 @@ var rules = base.module.rules.concat([{
}, {
test: require.resolve('codemirror'),
use: ['expose-loader?CodeMirror']
-}, {
- test: require.resolve('colorbrewer'),
- use: ['expose-loader?colorbrewer']
}, {
test: /bootstrap.css$/,
use: [StringReplacePlugin.replace({

build: Update colorbrewer package.