Updateto 0.2.12

This commit is contained in:
chen-jan 2022-06-30 08:47:50 +00:00
parent 77fd98eaa9
commit 4f957ffa3a
4 changed files with 14 additions and 7 deletions

View File

@ -5,21 +5,22 @@ Date: Thu Apr 24 00:18:35 2014 +0100
Use closure-compiler wrapper script to get correct class path
diff --git a/src/index.coffee b/src/index.coffee
index c9dea72..8a85770 100644
index dddddb5..8a85770 100644
--- a/src/index.coffee
+++ b/src/index.coffee
@@ -22,10 +22,7 @@
@@ -22,11 +22,7 @@
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
spawn = require('child_process').spawn
-path = require 'path'
-JAVA_PATH = exports.JAVA_PATH = 'java'
-JAR_PATH = exports.JAR_PATH = path.join __dirname, '../node_modules/google-closure-compiler/compiler.jar'
-# Load `compiler.jar` using Node's regular lookup mechanism.
-JAR_PATH = exports.JAR_PATH = require.resolve('google-closure-compiler/compiler.jar');
OPTIONS = exports.OPTIONS = {}
exports.compile = (input, options, callback) ->
@@ -42,11 +39,6 @@ exports.compile = (input, options, callback) ->
@@ -43,11 +39,6 @@ exports.compile = (input, options, callback) ->
args = []
@ -31,7 +32,7 @@ index c9dea72..8a85770 100644
delete options.jar
Object.keys(options).forEach (key) ->
@@ -67,7 +59,7 @@ exports.compile = (input, options, callback) ->
@@ -68,7 +59,7 @@ exports.compile = (input, options, callback) ->
if value != true
args.push value
@ -40,3 +41,6 @@ index c9dea72..8a85770 100644
stdout = ''
stderr = ''
--
2.30.0

View File

@ -1,6 +1,6 @@
Name: nodejs-closure-compiler
Version: 0.2.10
Release: 2
Version: 0.2.12
Release: 1
Summary: Bindings to Google's Closure Compiler for Node.js
License: MIT
URL: https://github.com/tim-smart/node-closure
@ -32,6 +32,9 @@ cp -pr package.json lib %{buildroot}%{nodejs_sitelib}/closure-compiler
%{nodejs_sitelib}/closure-compiler
%changelog
* Thu Jun 30 2022 chenchen <chen_aka_jan@163.com> - 0.2.12-1
- Update to 0.2.12
* Wed Jun 09 2021 zhaoyao <zhaoyao32@huawei.com> - 0.2.10-2
- %prep no longer patch with git

Binary file not shown.

BIN
v0.2.12.tar.gz Normal file

Binary file not shown.