Skip to content

Commit 44524dc

Browse files
authored
Merge pull request #1006 from dimagi/dependabot/npm_and_yarn/underscore-1.13.1
Bump underscore from 1.8.3 to 1.13.1
2 parents 30c9763 + 45c030d commit 44524dc

File tree

4 files changed

+25
-46
lines changed

4 files changed

+25
-46
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@
3333
"requirejs": "2.3.6",
3434
"requirejs-plugins": "1.0.2",
3535
"requirejs-text": "2.0.15",
36-
"requirejs-undertemplate": "0.0.4",
37-
"underscore": "1.8.3",
36+
"requirejs-undertemplate": "dimagi/requirejs-tpl#v0.0.5",
37+
"underscore": "1.13.1",
3838
"xpath": "dimagi/js-xpath#v0.0.4",
3939
"xrayquire": "npm:xrayquire-for-npm#^0.1.1"
4040
},
4141
"devDependencies": {
4242
"chai": "4.2.0",
4343
"csso": ">=1.3.11",
44-
"equivalent-xml-js": "mwhite/equivalent-xml-js#master",
44+
"equivalent-xml-js": "dimagi/equivalent-xml-js#master",
4545
"grunt": "1.3.0",
4646
"grunt-contrib-connect": "1.0.2",
4747
"grunt-contrib-jshint": "2.1.0",

src/main.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ requirejs.config({
8989
deps: ['jquery'],
9090
exports: '$.fn.popover'
9191
},
92-
'underscore': {
93-
exports: '_'
94-
},
9592
'XMLWriter': {
9693
exports: 'XMLWriter'
9794
},

tests/main.js

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ if (useBuilt) {
2121
}
2222
console.log("loading Vellum from " + baseUrl);
2323

24-
// comment these to use built versions
25-
define("jquery", [testBase + 'node_modules/jquery/dist/jquery'], function () { return window.jQuery; });
26-
define("jquery.bootstrap", ["jquery", testBase + 'node_modules/bootstrap/dist/js/bootstrap'], function () {});
27-
define("underscore", [testBase + 'node_modules/underscore/underscore'], function () { return window._; });
28-
2924
requirejs.config({
3025
baseUrl: baseUrl,
3126
paths: {
@@ -37,7 +32,7 @@ requirejs.config({
3732
// load jquery.vellum before loading tests because some tests depend on
3833
// jquery.vellum components and would try to load them at the wrong path
3934
// (this is only important when using the built version)
40-
requirejs(['jquery', 'jquery.vellum'], function ($) {
35+
requirejs(['jquery.vellum'], function () {
4136
// define our own paths for test dependencies that are also dependencies of
4237
// vellum that get excluded from the built version of vellum, to ensure that
4338
// the built version is tested correctly
@@ -48,32 +43,23 @@ requirejs(['jquery', 'jquery.vellum'], function ($) {
4843
'static': testBase + 'tests/static',
4944
'chai': testBase + 'node_modules/chai/chai',
5045
'equivalent-xml': testBase + 'node_modules/equivalent-xml-js/src/equivalent-xml'
51-
},
52-
shim: {
53-
'equivalent-xml': {
54-
deps: ['underscore'],
55-
exports: 'EquivalentXml'
56-
}
5746
}
5847
});
5948

6049
if (useBuilt) {
6150
requirejs.config({
6251
paths: {
6352
'text': '../node_modules/requirejs-text',
64-
// for some reason this is necessary in firefox only for built
65-
// version test page. It shouldn't be
66-
'tpl': '../node_modules/requirejs-tpl',
6753
// https://github.com/guybedford/require-css/issues/133
6854
//'css': 'error',
6955
'less': 'error',
7056
'json': 'error'
7157
}
7258
});
73-
$('head').append('<link rel="stylesheet" type="text/css" href="_build/style.css">');
7459
}
7560

7661
requirejs([
62+
'jquery',
7763
'tests/options',
7864

7965
// tests for profiling load times
@@ -119,11 +105,13 @@ requirejs(['jquery', 'jquery.vellum'], function ($) {
119105
'tests/escapedHashtags',
120106
'tests/bulkActions',
121107
'tests/undomanager',
122-
], function (
123-
options
124-
) {
108+
], function ($, options) {
125109
var session = window.sessionStorage;
126110

111+
if (useBuilt) {
112+
$('head').append('<link rel="stylesheet" type="text/css" href="_build/style.css">');
113+
}
114+
127115
function runTests() {
128116
function showTestResults() {
129117
$("#resultsTab").click();

yarn.lock

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -794,9 +794,9 @@ entities@^2.0.0, entities@~2.1.0:
794794
resolved "https://registry.yarnpkg.com/entities/-/entities-2.1.0.tgz#992d3129cf7df6870b96c57858c249a120f8b8b5"
795795
integrity sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==
796796

797-
equivalent-xml-js@mwhite/equivalent-xml-js#master:
797+
equivalent-xml-js@dimagi/equivalent-xml-js#master:
798798
version "0.0.0"
799-
resolved "https://codeload.github.com/mwhite/equivalent-xml-js/tar.gz/7de21be29567a06535309b9ee969b97abcfbcb21"
799+
resolved "https://codeload.github.com/dimagi/equivalent-xml-js/tar.gz/9fbcbf920ec8628264ab94f8e55bc5772bb76911"
800800

801801
errno@^0.1.1:
802802
version "0.1.8"
@@ -2698,25 +2698,24 @@ [email protected], requirejs-text@~2.0.12:
26982698
resolved "https://registry.yarnpkg.com/requirejs-text/-/requirejs-text-2.0.15.tgz#13138733613fc4457b7e1247e8cb751df7aa5429"
26992699
integrity sha1-ExOHM2E/xEV7fhJH6Mt1HfeqVCk=
27002700

2701-
2702-
version "0.0.4"
2703-
resolved "https://registry.yarnpkg.com/requirejs-undertemplate/-/requirejs-undertemplate-0.0.4.tgz#c206453dcb5fa3d396399d2e3cf2e9f1c298209b"
2704-
integrity sha1-wgZFPctfo9OWOZ0uPPLp8cKYIJs=
2701+
requirejs-undertemplate@dimagi/requirejs-tpl#v0.0.5:
2702+
version "0.0.5"
2703+
resolved "https://codeload.github.com/dimagi/requirejs-tpl/tar.gz/e2e00a613c7dccff092bfd48bd58d4f949a5dfb4"
27052704
dependencies:
2706-
requirejs "~2.2.0"
2705+
requirejs "2.3.3"
27072706
requirejs-text "~2.0.12"
27082707
underscore "^1.8.3"
27092708

2709+
2710+
version "2.3.3"
2711+
resolved "https://registry.yarnpkg.com/requirejs/-/requirejs-2.3.3.tgz#aa59fd3a0287eaf407959a138228044b5dd6a6a3"
2712+
integrity sha1-qln9OgKH6vQHlZoTgigES13WpqM=
2713+
27102714
27112715
version "2.3.6"
27122716
resolved "https://registry.yarnpkg.com/requirejs/-/requirejs-2.3.6.tgz#e5093d9601c2829251258c0b9445d4d19fa9e7c9"
27132717
integrity sha512-ipEzlWQe6RK3jkzikgCupiTbTvm4S0/CAU5GlgptkN5SO6F3u0UD0K18wy6ErDqiCyP4J4YYe1HuAShvsxePLg==
27142718

2715-
requirejs@~2.2.0:
2716-
version "2.2.0"
2717-
resolved "https://registry.yarnpkg.com/requirejs/-/requirejs-2.2.0.tgz#0f2b1538af2b8d0a4fffffde5d367aa9cd4cfe84"
2718-
integrity sha1-DysVOK8rjQpP///eXTZ6qc1M/oQ=
2719-
27202719
requires-port@^1.0.0:
27212720
version "1.0.0"
27222721
resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff"
@@ -3186,15 +3185,10 @@ underscore.string@~3.3.4, underscore.string@~3.3.5:
31863185
sprintf-js "^1.0.3"
31873186
util-deprecate "^1.0.2"
31883187

3189-
3190-
version "1.8.3"
3191-
resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.8.3.tgz#4f3fb53b106e6097fcf9cb4109f2a5e9bdfa5022"
3192-
integrity sha1-Tz+1OxBuYJf8+ctBCfKl6b36UCI=
3193-
3194-
underscore@^1.8.3:
3195-
version "1.12.0"
3196-
resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.12.0.tgz#4814940551fc80587cef7840d1ebb0f16453be97"
3197-
integrity sha512-21rQzss/XPMjolTiIezSu3JAjgagXKROtNrYFEOWK109qY1Uv2tVjPTZ1ci2HgvQDA16gHYSthQIJfB+XId/rQ==
3188+
[email protected], underscore@^1.8.3:
3189+
version "1.13.1"
3190+
resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.13.1.tgz#0c1c6bd2df54b6b69f2314066d65b6cde6fcf9d1"
3191+
integrity sha512-hzSoAVtJF+3ZtiFX0VgfFPHEDRm7Y/QPjGyNo4TVdnDTdft3tr8hEkD25a1jC+TjTuE7tkHGKkhwCgs9dgBB2g==
31983192

31993193
union-value@^1.0.0:
32003194
version "1.0.1"

0 commit comments

Comments
 (0)