@wmfs/smithereens 1.58.0 → 1.59.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/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ # [1.59.0](https://github.com/wmfs/smithereens/compare/v1.58.0...v1.59.0) (2024-11-04)
2
+
1
3
  # [1.58.0](https://github.com/wmfs/smithereens/compare/v1.57.0...v1.58.0) (2024-11-04)
2
4
 
3
5
  # [1.57.0](https://github.com/wmfs/smithereens/compare/v1.56.0...v1.57.0) (2024-11-04)
package/lib/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  const debug = require('debug')('smithereens')
4
4
  const path = require('path')
5
- const glob = require('glob')
5
+ const { glob } = require('glob')
6
6
  const fs = require('fs')
7
7
  const csvParser = require('csv-streamify')
8
8
  const FileBuilder = require('./File-builder')
@@ -48,16 +48,7 @@ async function processFilePaths (sourceFilePaths, options) {
48
48
  }
49
49
 
50
50
  function expandLocation (fileSource) {
51
- return new Promise((resolve, reject) => {
52
- glob(
53
- fileSource,
54
- { nodir: true, windowsPathsNoEscape: true },
55
- (err, files) => {
56
- if (err) return reject(err)
57
- resolve(files)
58
- }
59
- )
60
- })
51
+ return glob(fileSource, { nodir: true, windowsPathsNoEscape: true })
61
52
  } // expandLocation
62
53
 
63
54
  function processFile (filePath, fileBuilder, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wmfs/smithereens",
3
- "version": "1.58.0",
3
+ "version": "1.59.0",
4
4
  "description": "Smash CSV files into more manageable files based on column values",
5
5
  "author": "West Midlands Fire Service",
6
6
  "homepage": "https://github.com/wmfs/smithereens#readme",
@@ -23,7 +23,7 @@
23
23
  "csv-streamify": "4.0.0",
24
24
  "csv-string": "4.1.1",
25
25
  "debug": "4.3.7",
26
- "glob": "8.1.0",
26
+ "glob": "11.0.0",
27
27
  "hash-sum": "2.0.0",
28
28
  "jsonfile": "6.1.0",
29
29
  "make-dir": "3.1.0",