From 4ee606f2c77125536be23dd2a839208ddc46749d Mon Sep 17 00:00:00 2001 From: jdlrobson Date: Mon, 1 Apr 2019 16:04:05 -0700 Subject: [PATCH] Bump Mustache from 1.0.0 to 3.0.1 Bug: T219839 Change-Id: I76659d57967d9b90f4453c7314b6dcd1f9b8e139 --- resources/lib/foreign-resources.yaml | 8 +- resources/lib/mustache/LICENSE | 1 + resources/lib/mustache/mustache.js | 412 +++++++++++++++++---------- 3 files changed, 263 insertions(+), 158 deletions(-) diff --git a/resources/lib/foreign-resources.yaml b/resources/lib/foreign-resources.yaml index 8dc01ff27c..92a39538ee 100644 --- a/resources/lib/foreign-resources.yaml +++ b/resources/lib/foreign-resources.yaml @@ -184,11 +184,11 @@ mustache: type: multi-file files: mustache.js: - src: https://raw.githubusercontent.com/janl/mustache.js/v1.0.0/mustache.js - integrity: sha384-k2UYqmzoiq/qgIzZvcYBxbXQW4YdPAsXDOTkHTGb9TCZ9sjCkyT4TlaUN0wQRkql + src: https://raw.githubusercontent.com/janl/mustache.js/v3.0.1/mustache.js + integrity: sha384-YjAj6Nll7fkEWzxTlE9o3NWC9qdZt1Upat6Afjib9eLs8lTODpSKEBHeXq8o/VUH LICENSE: - src: https://raw.githubusercontent.com/janl/mustache.js/v1.0.0/LICENSE - integrity: sha384-MYVwXwula9+YkyXexOJVZ0v0DaVvG22uX57mNq5Di+7u8OH9EG9q3yuXkp1Iehiq + src: https://raw.githubusercontent.com/janl/mustache.js/v3.0.1/LICENSE + integrity: sha384-j2EDj6YtCRgFvYDtzo6pXzbskIj/K1Yg65BL0j3/L6UIHxbMtRMJwC/W+XoYx0FZ oojs: type: tar diff --git a/resources/lib/mustache/LICENSE b/resources/lib/mustache/LICENSE index aa1b831603..4df7d1aae6 100644 --- a/resources/lib/mustache/LICENSE +++ b/resources/lib/mustache/LICENSE @@ -2,6 +2,7 @@ The MIT License Copyright (c) 2009 Chris Wanstrath (Ruby) Copyright (c) 2010-2014 Jan Lehnardt (JavaScript) +Copyright (c) 2010-2015 The mustache.js community 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: diff --git a/resources/lib/mustache/mustache.js b/resources/lib/mustache/mustache.js index c7ffbef007..8ec1b44cca 100644 --- a/resources/lib/mustache/mustache.js +++ b/resources/lib/mustache/mustache.js @@ -3,54 +3,86 @@ * http://github.com/janl/mustache.js */ -/*global define: false*/ +/*global define: false Mustache: true*/ -(function (global, factory) { - if (typeof exports === "object" && exports) { +(function defineMustache (global, factory) { + if (typeof exports === 'object' && exports && typeof exports.nodeName !== 'string') { factory(exports); // CommonJS - } else if (typeof define === "function" && define.amd) { + } else if (typeof define === 'function' && define.amd) { define(['exports'], factory); // AMD } else { - factory(global.Mustache = {}); //