You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@magpie.apache.org by po...@apache.org on 2026/09/17 13:37:10 UTC

(magpie-site) 03/16: chore: vendor html2canvas 1.4.1 and add LICENSE entry

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/magpie-site.git

commit a25fc25487c2a9f9f2fa9c73641061b20df53cda
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Thu Sep 17 12:55:26 2026 +0200

    chore: vendor html2canvas 1.4.1 and add LICENSE entry
    
    Vendors html2canvas 1.4.1 (dist/html2canvas.min.js + upstream LICENSE)
    under vendor/html2canvas/ for the preview publisher to copy into
    previews at publish time. It is not a package.json dependency.
    
    Excludes vendor/ from the three pre-commit hooks that mutate file
    bytes (end-of-file-fixer, mixed-line-ending, trailing-whitespace) so
    the vendored file stays byte-identical to what npm distributes and
    its checksum stays verifiable. detect-private-key and
    check-added-large-files still run over vendor/.
    
    Provenance:
      npm registry integrity (html2canvas@1.4.1 tarball):
        sha512-fPU6BHNpsyIhr8yyMpTLLxAbkaK8ArIBcmZIRiBLiDhjeqvXolaEmDGmELFuX9I4xDcaKKcJl+TKZLqruBbmWA==
      sha256 of vendor/html2canvas/html2canvas.min.js:
        e87e550794322e574a1fda0c1549a3c70dae5a93d9113417a429016838eab8cb
    
    Generated-by: Claude Opus 5
---
 .pre-commit-config.yaml               |  3 +++
 LICENSE                               |  6 ++++++
 vendor/html2canvas/LICENSE            | 22 ++++++++++++++++++++++
 vendor/html2canvas/html2canvas.min.js | 20 ++++++++++++++++++++
 4 files changed, 51 insertions(+)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c21e8c5..0910124 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -46,9 +46,12 @@ repos:
       - id: check-yaml
       - id: detect-private-key
       - id: end-of-file-fixer
+        exclude: ^vendor/
       - id: mixed-line-ending
+        exclude: ^vendor/
       - id: trailing-whitespace
         args: [--markdown-linebreak-ext=md]
+        exclude: ^vendor/
   - repo: local
     hooks:
       # Guard against the Astro/JSX whitespace-collapse bug (#10, #29): a prose
diff --git a/LICENSE b/LICENSE
index d645695..46781af 100644
--- a/LICENSE
+++ b/LICENSE
@@ -200,3 +200,9 @@
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
+
+=======================================================================
+This product bundles html2canvas 1.4.1, which is available under the MIT
+licence. See vendor/html2canvas/LICENSE for the full text.
+  https://github.com/niklasvh/html2canvas
+=======================================================================
diff --git a/vendor/html2canvas/LICENSE b/vendor/html2canvas/LICENSE
new file mode 100644
index 0000000..a73ffc9
--- /dev/null
+++ b/vendor/html2canvas/LICENSE
@@ -0,0 +1,22 @@
+Copyright (c) 2012 Niklas von Hertzen
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/vendor/html2canvas/html2canvas.min.js b/vendor/html2canvas/html2canvas.min.js
new file mode 100644
index 0000000..aed6bfd
--- /dev/null
+++ b/vendor/html2canvas/html2canvas.min.js
@@ -0,0 +1,20 @@
+/*!
+ * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
+ * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
+ * Released under MIT License
+ */
+!function(A,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(A="undefined"!=typeof globalThis?globalThis:A||self).html2canvas=e()}(this,function(){"use strict";
+/*! *****************************************************************************
+    Copyright (c) Microsoft Corporation.
+
+    Permission to use, copy, modify, and/or distribute this software for any
+    purpose with or without fee is hereby granted.
+
+    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+    PERFORMANCE OF THIS SOFTWARE.
+    ***************************************************************************** */var r=function(A,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])})(A,e)};function A(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=A}r(A,e),A.prototype=null===e?Object [...]
\ No newline at end of file