Skip to content

Commit

Permalink
update dependency: uuid (#918)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed Jul 12, 2023
1 parent 360cd1f commit 08b38ea
Show file tree
Hide file tree
Showing 12 changed files with 47 additions and 20 deletions.
2 changes: 1 addition & 1 deletion lib/data/analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// including this file, may be copied, modified, propagated, or distributed
// except according to the terms contained in the LICENSE file.

const uuid = require('uuid/v4');
const uuid = require('uuid').v4;

/* eslint-disable quotes, quote-props */
const metricsTemplate = {
Expand Down
2 changes: 1 addition & 1 deletion lib/model/frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

const { raw } = require('slonik-sql-tag-raw');
const { pick, without, remove, indexOf } = require('ramda');
const uuid = require('uuid/v4');
const uuid = require('uuid').v4;
const { pickAll, noargs } = require('../util/util');
const Option = require('../util/option');
const { rejectIf } = require('../util/promise');
Expand Down
2 changes: 1 addition & 1 deletion lib/model/frames/submission.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// including this file, may be copied, modified, propagated, or distributed
// except according to the terms contained in the LICENSE file.

const uuid = require('uuid/v4');
const uuid = require('uuid').v4;
const { Frame, table, readable, writable, embedded, into } = require('../frame');
const { consumeAndBuffer } = require('../../util/stream');
const { resolve } = require('../../util/promise');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// except according to the terms contained in the LICENSE file.
//

const uuid = require('uuid/v4');
const uuid = require('uuid').v4;

/* eslint-disable */ // because eslint's indentation expectations here are insane.
const up = (db) =>
Expand Down
2 changes: 1 addition & 1 deletion lib/model/migrations/20180112-02-add-field-keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// except according to the terms contained in the LICENSE file.
//

const uuid = require('uuid/v4');
const uuid = require('uuid').v4;

const up = (knex) =>
knex.schema.createTable('field_keys', (fk) => {
Expand Down
2 changes: 1 addition & 1 deletion lib/model/migrations/20181206-01-add-projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// including this file, may be copied, modified, propagated, or distributed
// except according to the terms contained in the LICENSE file.

const uuid = require('uuid/v4');
const uuid = require('uuid').v4;

const up = async (db) => {
// first create the projects table itself.
Expand Down
2 changes: 1 addition & 1 deletion lib/model/query/actees.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// including this file, may be copied, modified, propagated, or distributed
// except according to the terms contained in the LICENSE file.

const uuid = require('uuid/v4');
const uuid = require('uuid').v4;
const { sql } = require('slonik');
const { Actee } = require('../frames');
const { construct } = require('../../util/util');
Expand Down
45 changes: 36 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"slonik": "npm:@getodk/slonik@23.6.2-3",
"slonik-sql-tag-raw": "1.0.3",
"tmp-promise": "~3",
"uuid": "~3",
"uuid": "^9.0.0",
"yauzl": "~2.10"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/api/submissions.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const appRoot = require('app-root-path');
const should = require('should');
const uuid = require('uuid/v4');
const uuid = require('uuid').v4;
const { sql } = require('slonik');
const { createReadStream, readFileSync } = require('fs');
const { testService } = require('../setup');
Expand Down
2 changes: 1 addition & 1 deletion test/integration/other/migrations.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { readFileSync } = require('fs');
const appRoot = require('app-root-path');
const uuid = require('uuid/v4');
const uuid = require('uuid').v4;
const config = require('config');
const { testContainerFullTrx, testServiceFullTrx } = require('../setup');
const { sql } = require('slonik');
Expand Down
2 changes: 1 addition & 1 deletion test/unit/data/briefcase.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const appRoot = require('app-root-path');
const uuid = require('uuid/v4');
const uuid = require('uuid').v4;
const streamTest = require('streamtest').v2;
// eslint-disable-next-line import/no-dynamic-require
const testData = require(appRoot + '/test/data/xml');
Expand Down

0 comments on commit 08b38ea

Please sign in to comment.