Skip to content
Permalink
Browse files

Upgrade: Bump globby from 9.0.0 to 9.1.0

Bumps [globby](https://github.com/sindresorhus/globby) from 9.0.0 to
9.1.0.

- [Release notes](https://github.com/sindresorhus/globby/releases)
- [Commits](sindresorhus/globby@v9.0.0...v9.1.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
  • Loading branch information...
dependabot-bot authored and molant committed Mar 5, 2019
1 parent 752682c commit 62df2451d64ecaea43325dafad7c5765bbc31273
@@ -8,7 +8,7 @@
},
"dependencies": {
"chokidar": "^2.1.2",
"globby": "^9.0.0"
"globby": "^9.1.0"
},
"description": "hint local connector",
"devDependencies": {
@@ -18,7 +18,7 @@ import { promisify } from 'util';
const readFileAsBuffer = promisify(readFile);

import * as chokidar from 'chokidar';
import * as globby from 'globby';
import globby from 'globby';

import { getAsUri } from 'hint/dist/src/lib/utils/network/as-uri';
import asPathString from 'hint/dist/src/lib/utils/network/as-path-string';
@@ -324,13 +324,12 @@ export default class LocalConnector implements IConnector {
await this.engine.emitAsync('fetch::start::target', initialEvent);
files = [pathString];
} else {
// TODO: the current @types/globby doesn't support gitignore. Remove "as any" when possible
files = await globby(this.filesPattern, ({
absolute: true,
cwd: pathString,
dot: true,
gitignore: true
} as any));
}));

// Ignore options.content when matching multiple files
if (options && options.content) {
@@ -20,7 +20,7 @@
"eventemitter2": "^5.0.1",
"file-type": "^10.8.0",
"file-url": "^2.0.2",
"globby": "^9.0.0",
"globby": "^9.1.0",
"is-ci": "^2.0.0",
"is-svg": "^3.0.0",
"jsonc-parser": "^2.0.3",
@@ -42,8 +42,7 @@
"@types/content-type": "^1.1.3",
"@types/debug": "4.1.2",
"@types/file-type": "^10.6.0",
"@types/file-url": "^2.0.0",
"@types/globby": "^8.0.0",
"@types/file-url": "^2.0.0",
"@types/is-svg": "^3.0.0",
"@types/jsdom": "^12.2.3",
"@types/lodash": "^4.14.122",
@@ -16,7 +16,7 @@ import * as fs from 'fs';
import * as path from 'path';
import { execSync } from 'child_process';

import * as globby from 'globby';
import { sync as globby } from 'globby';
import * as semver from 'semver';

import loadJSONFile from './fs/load-json-file';
@@ -119,7 +119,7 @@ export const getCoreResources = (type: string): string[] => {
return resourceIds.get(type)!;
}

const resourcesFiles: string[] = globby.sync(`dist/src/lib/${type}s/**/*.js`, { cwd: HINT_ROOT });
const resourcesFiles: string[] = globby(`dist/src/lib/${type}s/**/*.js`, { cwd: HINT_ROOT });
const ids: string[] = resourcesFiles.reduce((list: string[], resourceFile: string) => {
const resourceName: string = path.basename(resourceFile, '.js');

@@ -156,7 +156,7 @@ export const getInstalledResources = (type: ResourceType): string[] => {
return resourceIds.get(installedType)!;
}

const resourcesFiles: string[] = globby.sync(`${NODE_MODULES_ROOT}/@hint/${type}-*/package.json`);
const resourcesFiles: string[] = globby(`${NODE_MODULES_ROOT}/@hint/${type}-*/package.json`);

const ids: string[] = resourcesFiles.reduce((list: string[], resourceFile: string) => {
const resource = loadPackage(path.dirname(resourceFile));
@@ -283,7 +283,7 @@ const generateConfigPathsToResources = (configurations: string[], name: string,
try {
const packagePath = path.dirname(resolvePackage(packageName));

const resourcePackages = globby.sync(`node_modules/{@hint/,hint-}${type}-${name}/package.json`, { absolute: true, cwd: packagePath }).map((pkg) => {
const resourcePackages = globby(`node_modules/{@hint/,hint-}${type}-${name}/package.json`, { absolute: true, cwd: packagePath }).map((pkg) => {
return path.dirname(pkg);
});

@@ -134,6 +134,7 @@ test('getInstalledResources should return the installed resources', async (t) =>
cleanCache();

const resourceLoader = await import('../../../src/lib/utils/resource-loader');

const globbyStub = sinon.stub(globby, 'sync').returns(installedConnectors);
const connectors = resourceLoader.getInstalledResources(ResourceType.connector);

@@ -544,7 +544,7 @@
dependencies:
"@types/node" "*"

"@types/glob@*":
"@types/glob@*", "@types/glob@^7.1.1":
version "7.1.1"
resolved "https://registry.yarnpkg.com/@types/glob/-/glob-7.1.1.tgz#aa59a1c6e3fbc421e07ccd31a944c30eba521575"
integrity sha512-1Bh06cbWJUHMC97acuD6UMG29nMt0Aqz1vF3guLfG+kHHJhy3AyohZFFxYk2f7Q1SQIrNwvncxAE0N/9s70F2w==
@@ -553,14 +553,6 @@
"@types/minimatch" "*"
"@types/node" "*"

"@types/globby@^8.0.0":
version "8.0.0"
resolved "https://registry.yarnpkg.com/@types/globby/-/globby-8.0.0.tgz#7bd10eaf802e1e11afdb1e5436cf472ddf4c0dd2"
integrity sha512-xDtsX5tlctxJzvg29r/LN12z30oJpoFP9cE8eJ8nY5cbSvN0c0RdRHrVlEq4LRh362Sd+JsqxJ3QWw0Wnyto8w==
dependencies:
"@types/glob" "*"
fast-glob "^2.0.2"

"@types/har-format@^1.2.4":
version "1.2.4"
resolved "https://registry.yarnpkg.com/@types/har-format/-/har-format-1.2.4.tgz#3275842095abb60d14b47fa798cc9ff708dab6d4"
@@ -4545,11 +4537,12 @@ globby@^8.0.1:
pify "^3.0.0"
slash "^1.0.0"

globby@^9.0.0:
version "9.0.0"
resolved "https://registry.yarnpkg.com/globby/-/globby-9.0.0.tgz#3800df736dc711266df39b4ce33fe0d481f94c23"
integrity sha512-q0qiO/p1w/yJ0hk8V9x1UXlgsXUxlGd0AHUOXZVXBO6aznDtpx7M8D1kBrCAItoPm+4l8r6ATXV1JpjY2SBQOw==
globby@^9.1.0:
version "9.1.0"
resolved "https://registry.yarnpkg.com/globby/-/globby-9.1.0.tgz#e90f4d5134109e6d855abdd31bdb1b085428592e"
integrity sha512-VtYjhHr7ncls724Of5W6Kaahz0ag7dB4G62/2HsN+xEKG6SrPzM1AJMerGxQTwJGnN9reeyxdvXbuZYpfssCvg==
dependencies:
"@types/glob" "^7.1.1"
array-union "^1.0.2"
dir-glob "^2.2.1"
fast-glob "^2.2.6"

0 comments on commit 62df245

Please sign in to comment.
You can’t perform that action at this time.