Skip to content

Commit

Permalink
deps: update robots-parser to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
brendankenny committed Jan 10, 2022
1 parent ca4eab4 commit b781b25
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 27 deletions.
1 change: 0 additions & 1 deletion build/build-bundle.js
Expand Up @@ -155,7 +155,6 @@ async function build(entryPath, distPath, opts = {minify: true}) {
// that's all that's needed, so make a mini-polyfill.
// @see https://github.com/GoogleChrome/lighthouse/issues/5273
// TODO: remove when not needed for pubads (https://github.com/googleads/publisher-ads-lighthouse-plugin/pull/325)
// and robots-parser (https://github.com/samclarke/robots-parser/pull/23)
'url': 'export const URL = globalThis.URL;',
}),
rollupPlugins.json(),
Expand Down
3 changes: 2 additions & 1 deletion lighthouse-core/audits/seo/is-crawlable.js
Expand Up @@ -6,7 +6,8 @@
'use strict';

const Audit = require('../audit.js');
const robotsParser = require('robots-parser');
// TODO(esmodules): cast can be removed when this switches to import.
const robotsParser = /** @type {typeof import('robots-parser').default} */ (/** @type {unknown} */(require('robots-parser'))); // eslint-disable-line max-len
const URL = require('../../lib/url-shim.js');
const MainResource = require('../../computed/main-resource.js');
const BLOCKLIST = new Set([
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -205,7 +205,7 @@
"parse-cache-control": "1.0.1",
"ps-list": "^8.0.0",
"raven": "^2.2.1",
"robots-parser": "^2.3.0",
"robots-parser": "^3.0.0",
"semver": "^5.3.0",
"speedline-core": "^1.4.3",
"third-party-web": "^0.12.7",
Expand Down
20 changes: 0 additions & 20 deletions types/robots-parser/index.d.ts

This file was deleted.

8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -7134,10 +7134,10 @@ rimraf@^2.7.1:
dependencies:
glob "^7.1.3"

robots-parser@^2.3.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/robots-parser/-/robots-parser-2.3.0.tgz#d79e86e26e13fa0a806adbc37f4cf1b96aebc8c3"
integrity sha512-RvuCITckrHM9k8DxCCU9rqWpuuKRfVX9iHG751dC3/EdERxp9gJATxYYdYOT3L0T+TAT4+27lENisk/VbHm47A==
robots-parser@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/robots-parser/-/robots-parser-3.0.0.tgz#66af89306302ecd004455f2f24298310d0966631"
integrity sha512-6xkze3WRdneibICBAzMKcXyTKQw5shA3GbwoEJy7RSvxpZNGF0GMuYKE1T0VMP4fwx/fQs0n0mtriOqRtk5L1w==

rollup-plugin-node-resolve@^5.2.0:
version "5.2.0"
Expand Down

0 comments on commit b781b25

Please sign in to comment.