raptor-render-context
Advanced tools
Comparing version 0.2.0-beta to 0.2.1-beta
@@ -105,2 +105,3 @@ /* | ||
} | ||
// Keep track of how many asynchronous fragments are in the template | ||
@@ -188,2 +189,3 @@ // NOTE: firstPassComplete changes to true after processing all of the nodes of the template | ||
asyncAttributes.remaining++; | ||
var ready = true; | ||
@@ -268,6 +270,10 @@ var asyncContext = this.createNestedContext(this.writer); | ||
var attributes = this.attributes; | ||
var async = this.attributes.async; | ||
if (!attributes.async) { | ||
if (async) { | ||
async.count++; | ||
} else { | ||
attributes.async = { | ||
remaining: 0 | ||
remaining: 0, | ||
count: 1 | ||
}; | ||
@@ -279,3 +285,3 @@ } | ||
var async = this.attributes.async; | ||
if (!async.firstPassComplete) { | ||
if (--async.count === 0) { | ||
async.firstPassComplete = true; | ||
@@ -290,5 +296,5 @@ if (async.remaining === 0) { | ||
if (typeof window === 'undefined') { | ||
extend(Context.prototype, require('./Context_server.js')); | ||
extend(Context.prototype, require('./Context' + '_server')); // String concatenation to full the optimizers! | ||
} | ||
module.exports = Context; |
{ | ||
"name": "raptor-render-context", | ||
"version": "0.2.0-beta", | ||
"description": "Helper module for working with promises", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/raptorjs/raptor-render-context.git" | ||
}, | ||
"scripts": { | ||
"test": "node_modules/.bin/mocha --ui bdd --reporter spec ./test" | ||
}, | ||
"author": "Patrick Steele-Idem <pnidem@gmail.com>", | ||
"maintainers": "Patrick Steele-Idem <pnidem@gmail.com>", | ||
"dependencies": { | ||
"raptor-util": "^0.2.0-beta", | ||
"raptor-logging": "^0.2.0-beta", | ||
"raptor-detect": "^0.2.0-beta", | ||
"raptor-promises": "^0.2.0-beta", | ||
"raptor-strings": "^0.2.0-beta", | ||
"events-browserify": "0.0.1" | ||
}, | ||
"devDependencies": { | ||
"mocha": "~1.15.1", | ||
"chai": "~1.8.1" | ||
}, | ||
"license": "Apache License v2.0", | ||
"bin": {}, | ||
"main": "lib/raptor-render-context.js", | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"browser": { | ||
"./lib/Context_server.js": null, | ||
"events": "events-browserify" | ||
} | ||
} | ||
"path": "/Users/psteeleidem/development/github/raptorjs3/raptor-render-context/package.json", | ||
"name": "raptor-render-context", | ||
"description": "Helper module for working with promises", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/raptorjs/raptor-render-context.git" | ||
}, | ||
"scripts": { | ||
"test": "node_modules/.bin/mocha --ui bdd --reporter spec ./test" | ||
}, | ||
"author": "Patrick Steele-Idem <pnidem@gmail.com>", | ||
"maintainers": "Patrick Steele-Idem <pnidem@gmail.com>", | ||
"dependencies": { | ||
"raptor-util": "^0.2.0-beta", | ||
"raptor-logging": "^0.2.0-beta", | ||
"raptor-detect": "^0.2.0-beta", | ||
"raptor-promises": "^0.2.0-beta", | ||
"raptor-strings": "^0.2.0-beta", | ||
"events-browserify": "0.0.1" | ||
}, | ||
"devDependencies": { | ||
"mocha": "~1.15.1", | ||
"chai": "~1.8.1" | ||
}, | ||
"license": "Apache License v2.0", | ||
"bin": {}, | ||
"main": "lib/raptor-render-context.js", | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"browser": { | ||
"./lib/Context_server.js": null, | ||
"events": "events-browserify" | ||
}, | ||
"version": "0.2.1-beta" | ||
} |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
13367
309
1