зеркало из https://github.com/mozilla/mozjexl.git
Convert jexl to mozjexl
This commit is contained in:
Родитель
2866a4aca9
Коммит
81f024023b
|
@ -1,4 +1,5 @@
|
|||
Copyright (c) 2015 TechnologyAdvice
|
||||
Copyright for portions of mozJexl are held by TechnologyAdvice, 2015 as part of Jexl.
|
||||
All other copyright for mozJexl are held by the Mozilla Foundation, 2017.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
mozJexl is a fork of Jexl for use at Mozilla, specifically as a part
|
||||
of SHIELD and Normandy.
|
||||
|
||||
---
|
||||
|
||||
<a href="http://promisesaplus.com/">
|
||||
<img src="https://promises-aplus.github.io/promises-spec/assets/logo-small.png"
|
||||
align="right" valign="top" alt="Promises/A+ logo" />
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -26,7 +26,7 @@ gulp.task('dist', function() {
|
|||
.pipe(browserified)
|
||||
.pipe(uglify())
|
||||
.pipe(rename({
|
||||
basename: 'jexl',
|
||||
basename: 'mozjexl',
|
||||
extname: '.min.js'
|
||||
}))
|
||||
.pipe(gulp.dest('./dist/'));
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "jexl",
|
||||
"version": "1.1.4",
|
||||
"name": "mozjexl",
|
||||
"description": "Javascript Expression Language: Powerful context-based expression parser and evaluator",
|
||||
"main": "lib/Jexl.js",
|
||||
"directories": {
|
||||
|
@ -12,7 +12,7 @@
|
|||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/TechnologyAdvice/jexl"
|
||||
"url": "https://github.com/mozilla/mozjexl"
|
||||
},
|
||||
"keywords": [
|
||||
"JSON",
|
||||
|
@ -28,9 +28,9 @@
|
|||
"author": "Tom Shawver <tom@frosteddesign.com>",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/TechnologyAdvice/jexl/issues"
|
||||
"url": "https://github.com/mozilla/mozjexl/issues"
|
||||
},
|
||||
"homepage": "https://github.com/TechnologyAdvice/jexl",
|
||||
"homepage": "https://github.com/mozilla/mozjexl",
|
||||
"devDependencies": {
|
||||
"browserify": "=9.0.3",
|
||||
"chai": "^2.0.0",
|
||||
|
|
|
@ -23,7 +23,7 @@ function toTree(exp) {
|
|||
|
||||
describe('Evaluator', function() {
|
||||
it('should evaluate an arithmetic expression', function() {
|
||||
var e = new Evaluator(grammar);
|
||||
const e = new Evaluator(grammar);
|
||||
return e.eval(toTree('(2 + 3) * 4')).should.become(20);
|
||||
});
|
||||
it('should evaluate a string concat', function() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче