hunk.code_window:  *
    * @param {object} dom - The htmlparser2-compliant DOM structure.
    * @private
    */
   exports.cloneDom = function (dom) {
     var parents =
       'length' in dom
         ? Array.prototype.map.call(dom, function (el) {
  
hunk.labels: keep keep keep keep keep replace keep keep
hunk.after_edit:   var clone =
  
hunk.file_path: lib/utils.js
hunk.type: replace
file: {
    "name": "cheerio",
    "version": "1.0.0-rc.4",
    "description": "Tiny, fast, and elegant implementation of core jQuery designed specifically for the server",
    "author": "Matt Mueller <mattmuelle@gmail.com> (mat.io)",
    "license": "MIT",
    "keywords": [
      "htmlparser",
      "jquery",
      "selector",
      "scraper",
      "parser",
      "html"
    ],
    "repository": {
      "type": "git",
      "url": "git://github.com/cheeriojs/cheerio.git"
    },
    "main": "./index.js",
    "types": "types/index.d.ts",
    "files": [
      "index.js",
      "types/index.d.ts",
      "lib"
    ],
    "engines": {
      "node": ">= 0.6"
    },
    "dependencies": {
      "css-select": "^3.1.2",
      "dom-serializer": "~1.2.0",
      "entities": "~2.1.0",
      "htmlparser2": "^6.0.0",
      "lodash": "^4.17.20",
      "parse5": "^6.0.0",
      "parse5-htmlparser2-tree-adapter": "^6.0.0"
    },
    "devDependencies": {
      "@types/node": "^14.14.10",
      "benchmark": "^2.1.4",
      "coveralls": "^3.0.2",
      "eslint": "^7.10.0",
      "eslint-config-prettier": "^7.0.0",
      "eslint-plugin-jsdoc": "^30.6.2",
      "expect.js": "~0.3.1",
      "husky": "^4.2.5",
      "jquery": "^3.0.0",
      "jsdoc": "https://github.com/cheeriojs/jsdoc.git#exports-mixin",
      "jsdom": "^16.2.2",
      "lint-staged": "^10.2.2",
      "mocha": "^8.1.1",
      "nyc": "^15.0.1",
      "prettier": "^2.1.1",
      "tsd": "^0.14.0",
      "xyz": "~4.0.0"
    },
    "scripts": {
      "test": "npm run lint && npm run test:mocha && npm run test:types",
      "test:mocha": "mocha --recursive --reporter dot --parallel",
      "test:types": "tsd",
      "lint": "npm run lint:es && npm run lint:prettier",
      "lint:es": "eslint --ignore-path .prettierignore .",
      "lint:prettier": "npm run format:prettier:raw -- --check",
      "format": "npm run format:es && npm run format:prettier",
      "format:es": "npm run lint:es -- --fix",
      "format:prettier": "npm run format:prettier:raw -- --write",
      "format:prettier:raw": "prettier '**/*.{js,ts,md,json,yml}' --ignore-path .prettierignore",
      "pre-commit": "lint-staged"
    },
    "prettier": {
      "singleQuote": true,
      "tabWidth": 2
    },
    "lint-staged": {
      "*.js": [
        "prettier --write",
        "npm run test:lint -- --fix"
      ],
      "*.{json,md,ts,yml}": [
        "prettier --write"
      ]
    }
  }
  