From 375192941145c9605346c41c4a83e7b1ce013d35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20B=C3=B6hm?= Date: Mon, 21 Dec 2020 22:05:31 +0100 Subject: [PATCH] fix(package): Use `cheerio-select-tmp` until naming issue is resolved Fixes #1576 --- lib/api/traversing.js | 2 +- lib/static.js | 2 +- package-lock.json | 7 ++++--- package.json | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/api/traversing.js b/lib/api/traversing.js index 5732e1f64f..8547210d73 100644 --- a/lib/api/traversing.js +++ b/lib/api/traversing.js @@ -4,7 +4,7 @@ * @module cheerio/traversing */ -var select = require('cheerio-select'); +var select = require('cheerio-select-tmp'); var utils = require('../utils'); var domEach = utils.domEach; var uniqueSort = require('htmlparser2').DomUtils.uniqueSort; diff --git a/lib/static.js b/lib/static.js index 7278292712..1a8b40a7f2 100644 --- a/lib/static.js +++ b/lib/static.js @@ -8,7 +8,7 @@ var htmlparser2Adapter = require('parse5-htmlparser2-tree-adapter'); var serialize = require('dom-serializer').default; var defaultOptions = require('./options').default; var flattenOptions = require('./options').flatten; -var select = require('cheerio-select').select; +var select = require('cheerio-select-tmp').select; var parse5 = require('parse5'); var parse = require('./parse'); diff --git a/package-lock.json b/package-lock.json index 8710503c7a..c473071018 100644 --- a/package-lock.json +++ b/package-lock.json @@ -865,9 +865,10 @@ } } }, - "cheerio-select": { - "version": "github:cheeriojs/cheerio-select#b98d6200519fe229904f2ae39ea44ed8e6d19182", - "from": "github:cheeriojs/cheerio-select", + "cheerio-select-tmp": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/cheerio-select-tmp/-/cheerio-select-tmp-0.1.0.tgz", + "integrity": "sha512-kx/pq9hxLo6FhjiYqUheSOV0Eb729ZwkXXPrPTeK6kl/VMgaUlsYoAOv3nOJZcHk++V9pI17YNNngtbLVPTB9A==", "requires": { "css-select": "^3.1.2", "css-what": "^4.0.0", diff --git a/package.json b/package.json index f27e77f785..d199c1adfe 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "node": ">= 0.12" }, "dependencies": { - "cheerio-select": "github:cheeriojs/cheerio-select", + "cheerio-select-tmp": "^0.1.0", "dom-serializer": "~1.2.0", "domhandler": "^4.0.0", "entities": "~2.1.0",