From 6a0a622d17d5367d7c1dbc0990530f3905cac2a3 Mon Sep 17 00:00:00 2001 From: Mateus Maso Date: Wed, 24 May 2017 02:53:25 -0300 Subject: [PATCH] (last version before deprecation) update dev dependencies + update .travis.yml --- .travis.yml | 2 +- README.md | 2 +- dist/handlebars.nested.js | 4 ++-- dist/handlebars.nested.min.js | 7 ++++--- package.json | 25 +++++++++++-------------- spec/index.js | 5 +++-- 6 files changed, 22 insertions(+), 23 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8ee6a7e..5bc6317 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: node_js node_js: - - "5.9.0" + - "7.10.0" before_install: - npm install -g grunt-cli diff --git a/README.md b/README.md index 59682ed..a51133b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ handlebars.nested [![Build Status](https://travis-ci.org/mateusmaso/handlebars.nested.svg?branch=master)](https://travis-ci.org/mateusmaso/handlebars.nested) ================= -This is a Handlebars plugin which allows nesting helpers and expressions in one level deep. For latest versions of Handlebars, please consider using [subexpressions](http://handlebarsjs.com/expressions.html) instead. +[DEPRECATED] This is a Handlebars plugin which allows nesting helpers and expressions in one level deep. For latest versions of Handlebars, please consider using [subexpressions](http://handlebarsjs.com/expressions.html) instead. ## Install diff --git a/dist/handlebars.nested.js b/dist/handlebars.nested.js index 614f20c..7323403 100644 --- a/dist/handlebars.nested.js +++ b/dist/handlebars.nested.js @@ -1,8 +1,8 @@ // handlebars.nested // ----------------- -// v0.2.1 +// v0.2.2 // -// Copyright (c) 2012-2016 Mateus Maso +// Copyright (c) 2012-2017 Mateus Maso // Distributed under MIT license // // http://github.com/mateusmaso/handlebars.nested diff --git a/dist/handlebars.nested.min.js b/dist/handlebars.nested.min.js index 022d33d..0368206 100644 --- a/dist/handlebars.nested.min.js +++ b/dist/handlebars.nested.min.js @@ -1,10 +1,11 @@ // handlebars.nested // ----------------- -// v0.2.1 +// v0.2.2 // -// Copyright (c) 2012-2016 Mateus Maso +// Copyright (c) 2012-2017 Mateus Maso // Distributed under MIT license // // http://github.com/mateusmaso/handlebars.nested -!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g=0&&(a=h["default"].Handlebars.compile(a)(this)),a}Object.defineProperty(c,"__esModule",{value:!0}),c.registerHelper=e,c.resolveNested=f;var g=a("../deps"),h=d(g)},{"../deps":2}],2:[function(a,b,c){"use strict";function d(){return e.Handlebars.Utils}Object.defineProperty(c,"__esModule",{value:!0}),c.getUtils=d;var e={};c["default"]=e},{}],3:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){if(!i["default"].Handlebars){var b=a.Utils.extend;b(i["default"],{Handlebars:a}),b(a,{resolveNested:g.resolveNested,registerHelper:g.registerHelper,_registerHelper:a.registerHelper}),b(a.Utils,{isString:f.isString})}return a}Object.defineProperty(c,"__esModule",{value:!0}),c["default"]=e;var f=a("./utils"),g=a("./core"),h=a("./deps"),i=d(h);"undefined"!=typeof window&&window.Handlebars&&e(window.Handlebars)},{"./core":1,"./deps":2,"./utils":4}],4:[function(a,b,c){"use strict";function d(a){return"[object String]"==toString.call(a)}Object.defineProperty(c,"__esModule",{value:!0}),c.isString=d},{}]},{},[3]); \ No newline at end of file + +!function e(r,t,n){function i(u,l){if(!t[u]){if(!r[u]){var o="function"==typeof require&&require;if(!l&&o)return o(u,!0);if(s)return s(u,!0);var a=new Error("Cannot find module '"+u+"'");throw a.code="MODULE_NOT_FOUND",a}var f=t[u]={exports:{}};r[u][0].call(f.exports,function(e){var t=r[u][1][e];return i(t||e)},f,f.exports,e,r,t,n)}return t[u].exports}for(var s="function"==typeof require&&require,u=0;u=0&&(e=u.default.Handlebars.compile(e)(this)),e}Object.defineProperty(t,"__esModule",{value:!0}),t.registerHelper=n,t.resolveNested=i;var s=e("../deps"),u=function(e){return e&&e.__esModule?e:{default:e}}(s)},{"../deps":2}],2:[function(e,r,t){"use strict";function n(){return i.Handlebars.Utils}Object.defineProperty(t,"__esModule",{value:!0}),t.getUtils=n;var i={};t.default=i},{}],3:[function(e,r,t){"use strict";function n(e){if(!u.default.Handlebars){var r=e.Utils.extend;r(u.default,{Handlebars:e}),r(e,{resolveNested:s.resolveNested,registerHelper:s.registerHelper,_registerHelper:e.registerHelper}),r(e.Utils,{isString:i.isString})}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var i=e("./utils"),s=e("./core"),u=function(e){return e&&e.__esModule?e:{default:e}}(e("./deps"));"undefined"!=typeof window&&window.Handlebars&&n(window.Handlebars)},{"./core":1,"./deps":2,"./utils":4}],4:[function(e,r,t){"use strict";function n(e){return"[object String]"==toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isString=n},{}]},{},[3]); \ No newline at end of file diff --git a/package.json b/package.json index 8d0ca95..03c3c2d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "handlebars.nested", "description": "Handlebars plugin for nesting helpers and expressions", - "version": "0.2.1", + "version": "0.2.2", "author": "mateusmaso", "license": "MIT", "keywords": [ @@ -10,18 +10,18 @@ "subexpressions" ], "devDependencies": { + "babel-preset-es2015": "^6.24.1", + "babelify": "^7.3.0", "chai": "*", - "mocha": "*", - "grunt": "~0.4.5", + "grunt": "^1.0.1", "grunt-babel": "^6.0.0", - "grunt-browserify": "~4.0.1", - "grunt-contrib-uglify": "~0.5.0", - "grunt-mocha-test": "~0.11.0", - "grunt-mocha-phantomjs": "~3.0.0", - "babel-preset-es2015": "^6.5.0", - "babelify": "^7.2.0", - "jsdom": "^9.1.0", - "handlebars": "~4.0.5" + "grunt-browserify": "^5.0.0", + "grunt-contrib-uglify": "^3.0.1", + "grunt-mocha-phantomjs": "^4.0.0", + "grunt-mocha-test": "^0.13.2", + "handlebars": "^4.0.10", + "jsdom": "^11.0.0", + "mocha": "*" }, "repository": { "type" : "git", @@ -30,8 +30,5 @@ "scripts": { "test": "grunt mochaTest mocha_phantomjs" }, - "engines": { - "node" : "~5.9.0" - }, "main": "lib/index.js" } diff --git a/spec/index.js b/spec/index.js index 1290777..e16fed1 100644 --- a/spec/index.js +++ b/spec/index.js @@ -1,6 +1,7 @@ if (typeof window === "undefined") { - var jsdom = require("jsdom").jsdom; - var document = global.document = jsdom("test"); + var JSDOM = require("jsdom").JSDOM; + var dom = new JSDOM("test"); + var document = global.document = dom.window.document; var window = global.window = document.defaultView; var chai = require("chai"); var Handlebars = require("handlebars");