html-snapshots 0.17.8 → 0.18.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.
Files changed (70) hide show
  1. package/.github/workflows/verify.yml +3 -3
  2. package/LICENSE.md +1 -1
  3. package/README.md +4 -4
  4. package/examples/custom/myFilter.js +1 -1
  5. package/examples/custom/package-lock.json +24 -24
  6. package/examples/custom/package.json +1 -1
  7. package/examples/custom/snapshot.js +1 -1
  8. package/examples/debug-phantomjs/package-lock.json +24 -24
  9. package/examples/debug-phantomjs/package.json +1 -1
  10. package/examples/debug-phantomjs/snapshot.js +1 -1
  11. package/examples/html5rocks/package-lock.json +24 -24
  12. package/examples/html5rocks/package.json +1 -1
  13. package/examples/html5rocks/snapshot.js +1 -1
  14. package/examples/process-limit/package-lock.json +24 -24
  15. package/examples/process-limit/package.json +1 -1
  16. package/examples/process-limit/snapshot.js +1 -1
  17. package/examples/simple-promise/package-lock.json +24 -24
  18. package/examples/simple-promise/package.json +1 -1
  19. package/examples/simple-promise/snapshot.js +1 -1
  20. package/examples/sitemap-index/package-lock.json +91 -91
  21. package/examples/sitemap-index/package.json +1 -1
  22. package/examples/sitemap-index/snapshot.js +1 -1
  23. package/examples/utils/index.js +1 -1
  24. package/examples/verbose/package-lock.json +24 -24
  25. package/examples/verbose/package.json +1 -1
  26. package/examples/verbose/snapshot.js +1 -1
  27. package/lib/async/exists.js +1 -1
  28. package/lib/async/index.js +1 -1
  29. package/lib/common/index.js +1 -1
  30. package/lib/common/node.js +1 -1
  31. package/lib/common/sitemap.js +1 -1
  32. package/lib/html-snapshots.js +1 -1
  33. package/lib/input-generators/_base.js +1 -1
  34. package/lib/input-generators/array.js +1 -1
  35. package/lib/input-generators/index.js +1 -1
  36. package/lib/input-generators/robots.js +1 -1
  37. package/lib/input-generators/sitemap-index.js +1 -1
  38. package/lib/input-generators/sitemap.js +1 -1
  39. package/lib/input-generators/textfile.js +1 -1
  40. package/lib/phantom/customFilter.js +1 -1
  41. package/lib/phantom/default.js +1 -1
  42. package/lib/phantom/modules/cli.js +1 -1
  43. package/lib/phantom/modules/detectors.js +1 -1
  44. package/lib/phantom/modules/globals.js +1 -1
  45. package/lib/phantom/modules/selectorDetect.js +1 -1
  46. package/lib/phantom/modules/verbose.js +1 -1
  47. package/lib/phantom/removeScripts.js +1 -1
  48. package/package.json +18 -18
  49. package/test/helpers/options.js +1 -1
  50. package/test/helpers/result.js +1 -1
  51. package/test/helpers/sitemap.js +1 -1
  52. package/test/mocha/async/test.js +1 -1
  53. package/test/mocha/common/helpers.js +1 -1
  54. package/test/mocha/common/node.js +1 -1
  55. package/test/mocha/common/test.js +1 -1
  56. package/test/mocha/html-snapshots/basics.js +1 -1
  57. package/test/mocha/html-snapshots/myFilter.js +1 -1
  58. package/test/mocha/html-snapshots/phantomjs-options.js +1 -1
  59. package/test/mocha/html-snapshots/process-limit.js +1 -1
  60. package/test/mocha/html-snapshots/robots.js +1 -1
  61. package/test/mocha/html-snapshots/sitemap-index.js +1 -1
  62. package/test/mocha/html-snapshots/sitemap.js +1 -1
  63. package/test/mocha/html-snapshots/snapshot-scripts.js +1 -1
  64. package/test/mocha/html-snapshots/test.js +1 -1
  65. package/test/mocha/html-snapshots/use-jquery.js +1 -1
  66. package/test/mocha/html-snapshots/utils.js +1 -1
  67. package/test/mocha/input-generators/sitemap-index.js +1 -1
  68. package/test/mocha/input-generators/sitemap.js +1 -1
  69. package/test/mocha/input-generators/test.js +1 -1
  70. package/test/server/index.js +1 -1
@@ -11,7 +11,7 @@
11
11
  *
12
12
  * This is a module for a phantomJS script that runs in phantomjs.
13
13
  *
14
- * Copyright (c) 2013 - 2021 Alex Grant, LocalNerve, contributors
14
+ * Copyright (c) 2013 - 2022 Alex Grant, LocalNerve, contributors
15
15
  * Licensed under the MIT license.
16
16
  */
17
17
  /* global document, $ */
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * This is a module for a phantomJS script that runs in phantomjs.
7
7
  *
8
- * Copyright (c) 2013 - 2021 Alex Grant, LocalNerve, contributors
8
+ * Copyright (c) 2013 - 2022 Alex Grant, LocalNerve, contributors
9
9
  * Licensed under the MIT license.
10
10
  */
11
11
  /* global phantom */
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * This is a module for a phantomJS script that runs in phantomjs.
7
7
  *
8
- * Copyright (c) 2013 - 2021 Alex Grant, LocalNerve, contributors
8
+ * Copyright (c) 2013 - 2022 Alex Grant, LocalNerve, contributors
9
9
  * Licensed under the MIT license.
10
10
  */
11
11
 
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * This is a module for a phantomJS script that runs in phantomjs.
7
7
  *
8
- * Copyright (c) 2013 - 2021 Alex Grant, LocalNerve, contributors
8
+ * Copyright (c) 2013 - 2022 Alex Grant, LocalNerve, contributors
9
9
  * Licensed under the MIT license.
10
10
  */
11
11
  /* global window */
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * This is a phantomJS script that runs in phantomjs.
9
9
  *
10
- * Copyright (c) 2013 - 2021 Alex Grant, LocalNerve, contributors
10
+ * Copyright (c) 2013 - 2022 Alex Grant, LocalNerve, contributors
11
11
  * Licensed under the MIT license.
12
12
  */
13
13
  var selectorDetect = require("./modules/selectorDetect");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "html-snapshots",
3
- "version": "0.17.8",
3
+ "version": "0.18.0",
4
4
  "author": {
5
5
  "name": "Alex Grant",
6
6
  "email": "alex@localnerve.com",
@@ -46,29 +46,29 @@
46
46
  "sitemap.xml"
47
47
  ],
48
48
  "dependencies": {
49
- "async": "3.2.0",
50
- "async-lock": "1.2.8",
49
+ "async": "3.2.3",
50
+ "async-lock": "1.3.1",
51
51
  "combine-errors": "3.0.3",
52
- "lodash": "^4.17.20",
53
- "mkdirp": "^1.0.4",
52
+ "lodash": "4.17.21",
53
+ "mkdirp": "1.0.4",
54
54
  "phantomjs-prebuilt": "2.1.16",
55
- "request": "^2.88.2",
56
- "rimraf": "^3.0.2",
57
- "xml2js": "~0.4.23"
55
+ "request": "2.88.2",
56
+ "rimraf": "3.0.2",
57
+ "xml2js": "0.4.23"
58
58
  },
59
59
  "devDependencies": {
60
- "coveralls": "^3.1.0",
61
- "eslint": "^7.19.0",
62
- "express": "^4.17.1",
63
- "mocha": "^8.2.1",
64
- "istanbul": "^0.4.5",
65
- "precommit-hook": "^3.0.0",
66
- "server-destroy": "^1.0.1",
67
- "sitemap-xml": "~0.1.0",
68
- "handlebars": "4.7.6"
60
+ "coveralls": "3.1.1",
61
+ "eslint": "8.12.0",
62
+ "express": "4.17.3",
63
+ "mocha": "9.2.2",
64
+ "istanbul": "0.4.5",
65
+ "precommit-hook": "3.0.0",
66
+ "server-destroy": "1.0.1",
67
+ "sitemap-xml": "0.1.0",
68
+ "handlebars": "4.7.7"
69
69
  },
70
70
  "license": "MIT",
71
71
  "engines": {
72
- "node": ">= 10"
72
+ "node": ">= 14"
73
73
  }
74
74
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * options.js
3
3
  *
4
- * Copyright (c) 2013 - 2021, Alex Grant, LocalNerve, contributors
4
+ * Copyright (c) 2013 - 2022, Alex Grant, LocalNerve, contributors
5
5
  *
6
6
  * A test helper to decorate html-snapshots options
7
7
  *
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Asserts error is error.
3
3
  *
4
- * Copyright (c) 2013 - 2021, Alex Grant, LocalNerve, contributors
4
+ * Copyright (c) 2013 - 2022, Alex Grant, LocalNerve, contributors
5
5
  */
6
6
  var assert = require("assert");
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Helper to add dynamic url nodes to a test sitemap.
3
3
  *
4
- * Copyright (c) 2013 - 2021, Alex Grant, LocalNerve, contributors
4
+ * Copyright (c) 2013 - 2022, Alex Grant, LocalNerve, contributors
5
5
  */
6
6
  var smLib = require("sitemap-xml");
7
7
  var urlLib = require("url");
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Async module tests.
3
3
  *
4
- * Copyright (c) 2013 - 2021, Alex Grant, LocalNerve, contributors
4
+ * Copyright (c) 2013 - 2022, Alex Grant, LocalNerve, contributors
5
5
  */
6
6
  /* global describe, beforeEach, it */
7
7
  var assert = require("assert");
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Helpers tests.
3
3
  *
4
- * Copyright (c) 2013 - 2021, Alex Grant, LocalNerve, contributors
4
+ * Copyright (c) 2013 - 2022, Alex Grant, LocalNerve, contributors
5
5
  */
6
6
  /* global describe, it */
7
7
  var assert = require("assert");
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Common node tests.
3
3
  *
4
- * Copyright (c) 2013 - 2021, Alex Grant, LocalNerve, contributors
4
+ * Copyright (c) 2013 - 2022, Alex Grant, LocalNerve, contributors
5
5
  */
6
6
  /* global describe, it */
7
7
  var assert = require("assert");
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Common module tests.
3
3
  *
4
- * Copyright (c) 2013 - 2021, Alex Grant, LocalNerve, contributors
4
+ * Copyright (c) 2013 - 2022, Alex Grant, LocalNerve, contributors
5
5
  */
6
6
  /* global describe, it */
7
7
  var assert = require("assert");
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Basic library tests.
3
3
  *
4
- * Copyright (c) 2013 - 2021, Alex Grant, LocalNerve, contributors
4
+ * Copyright (c) 2013 - 2022, Alex Grant, LocalNerve, contributors
5
5
  */
6
6
  /* global it */
7
7
  var assert = require("assert");
@@ -2,7 +2,7 @@
2
2
  * In-test, custom filter script.
3
3
  * Adds a custom tag onto the body.
4
4
  *
5
- * Copyright (c) 2013 - 2021, Alex Grant, LocalNerve, contributors
5
+ * Copyright (c) 2013 - 2022, Alex Grant, LocalNerve, contributors
6
6
  */
7
7
  module.exports = function(content) {
8
8
  console.log("IN THE CUSTOMFILTER");
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Library tests focused on the phantomjsOptions option.
3
3
  *
4
- * Copyright (c) 2013 - 2021, Alex Grant, LocalNerve, contributors
4
+ * Copyright (c) 2013 - 2022, Alex Grant, LocalNerve, contributors
5
5
  */
6
6
  /* global it */
7
7
  var path = require("path");
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Library tests focused on the processLimit option.
3
3
  *
4
- * Copyright (c) 2013 - 2021, Alex Grant, LocalNerve, contributors
4
+ * Copyright (c) 2013 - 2022, Alex Grant, LocalNerve, contributors
5
5
  */
6
6
  /* global it */
7
7
  var assert = require("assert");
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Library tests that use robots.
3
3
  *
4
- * Copyright (c) 2013 - 2021, Alex Grant, LocalNerve, contributors
4
+ * Copyright (c) 2013 - 2022, Alex Grant, LocalNerve, contributors
5
5
  */
6
6
  /* global it */
7
7
  var path = require("path");
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Library tests that use sitemap-index.
3
3
  *
4
- * Copyright (c) 2013 - 2021, Alex Grant, LocalNerve, contributors
4
+ * Copyright (c) 2013 - 2022, Alex Grant, LocalNerve, contributors
5
5
  */
6
6
  /* global it */
7
7
  var assert = require("assert");
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Library tests that use sitemap.
3
3
  *
4
- * Copyright (c) 2013 - 2021, Alex Grant, LocalNerve, contributors
4
+ * Copyright (c) 2013 - 2022, Alex Grant, LocalNerve, contributors
5
5
  */
6
6
  /* global it */
7
7
  var assert = require("assert");
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Library tests focused on the phantomjsOptions option.
3
3
  *
4
- * Copyright (c) 2013 - 2021, Alex Grant, LocalNerve, contributors
4
+ * Copyright (c) 2013 - 2022, Alex Grant, LocalNerve, contributors
5
5
  */
6
6
  /* global beforeEach, describe, it */
7
7
  // var assert = require("assert");
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Driver for html-snapshots library tests.
3
3
  *
4
- * Copyright (c) 2013 - 2021, Alex Grant, LocalNerve, contributors
4
+ * Copyright (c) 2013 - 2022, Alex Grant, LocalNerve, contributors
5
5
  */
6
6
  /* global describe, before, after */
7
7
  var path = require("path");
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Library tests focused on the useJQuery option.
3
3
  *
4
- * Copyright (c) 2013 - 2021, Alex Grant, LocalNerve, contributors
4
+ * Copyright (c) 2013 - 2022, Alex Grant, LocalNerve, contributors
5
5
  */
6
6
  /* global it */
7
7
  var assert = require("assert");
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * html-snapshots test utilities and constants.
3
3
  *
4
- * Copyright (c) 2013 - 2021, Alex Grant, LocalNerve, contributors
4
+ * Copyright (c) 2013 - 2022, Alex Grant, LocalNerve, contributors
5
5
  */
6
6
  /* global Promise */
7
7
  var path = require("path");
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Sitemap-index tests.
3
3
  *
4
- * Copyright (c) 2013 - 2021, Alex Grant, LocalNerve, contributors
4
+ * Copyright (c) 2013 - 2022, Alex Grant, LocalNerve, contributors
5
5
  */
6
6
  /* global describe, it, before */
7
7
  var assert = require("assert");
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Sitemap tests.
3
3
  *
4
- * Copyright (c) 2013 - 2021, Alex Grant, LocalNerve, contributors
4
+ * Copyright (c) 2013 - 2022, Alex Grant, LocalNerve, contributors
5
5
  */
6
6
  /* global describe, it, before */
7
7
  var assert = require("assert");
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * General input generator tests.
3
3
  *
4
- * Copyright (c) 2013 - 2021, Alex Grant, LocalNerve, contributors
4
+ * Copyright (c) 2013 - 2022, Alex Grant, LocalNerve, contributors
5
5
  */
6
6
  /* global describe, it, before */
7
7
  var assert = require("assert");
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Create a local web server for tests.
3
3
  *
4
- * Copyright (c) 2013 - 2021, Alex Grant, LocalNerve, contributors
4
+ * Copyright (c) 2013 - 2022, Alex Grant, LocalNerve, contributors
5
5
  */
6
6
  var pathm = require("path");
7
7
  var express = require("express");