Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aurelia-testing

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aurelia-testing - npm Package Compare versions

Comparing version 0.3.1 to 0.4.0

.eslintrc.json

2

bower.json
{
"name": "aurelia-testing",
"version": "0.3.1",
"version": "0.4.0",
"description": "A collection of helpers for testing Aurelia apps and components.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -5,3 +5,3 @@ var path = require('path');

exports.base = function() {
return {
var config = {
filename: '',

@@ -15,7 +15,11 @@ filenameRelative: '',

compact: false,
code:true,
presets: [ 'es2015-loose', 'stage-1'],
code: true,
presets: [ 'es2015-loose', 'stage-1' ],
plugins: [
'syntax-flow',
'transform-decorators-legacy',
]
};
if (!paths.useTypeScriptForDTS) {
config.plugins.push(
['babel-dts-generator', {

@@ -26,7 +30,9 @@ packageName: paths.packageName,

suppressComments: false,
memberOutputFilter: /^_.*/
}],
'transform-flow-strip-types'
]
memberOutputFilter: /^_.*/,
suppressAmbientDeclaration: true
}]
);
};
config.plugins.push('transform-flow-strip-types');
return config;
}

@@ -57,1 +63,7 @@

};
exports['native-modules'] = function() {
var options = exports.base();
options.presets[0] = 'es2015-loose-native-modules';
return options;
}
var path = require('path');
var fs = require('fs');
// hide warning //
var emitter = require('events');
emitter.defaultMaxListeners = 20;
var appRoot = 'src/';
var pkg = JSON.parse(fs.readFileSync('./package.json', 'utf-8'));
module.exports = {
var paths = {
root: appRoot,

@@ -16,3 +20,13 @@ source: appRoot + '**/*.js',

e2eSpecsDist: 'test/e2e/dist/',
packageName: pkg.name
packageName: pkg.name,
useTypeScriptForDTS: false,
importsToAdd: [],
sort: true
};
paths.ignore = ['aurelia-testing.js'];
paths.files = [
paths.source
];
module.exports = paths;

@@ -6,2 +6,3 @@ var gulp = require('gulp');

var compilerOptions = require('../babel-options');
var compilerTsOptions = require('../typescript-options');
var assign = Object.assign || require('object.assign');

@@ -13,6 +14,17 @@ var through2 = require('through2');

var tools = require('aurelia-tools');
var ts = require('gulp-typescript');
var gutil = require('gulp-util');
var gulpIgnore = require('gulp-ignore');
var merge = require('merge2');
var jsName = paths.packageName + '.js';
var compileToModules = ['es2015', 'commonjs', 'amd', 'system', 'native-modules'];
function cleanGeneratedCode() {
return through2.obj(function(file, enc, callback) {
file.contents = new Buffer(tools.cleanGeneratedCode(file.contents.toString('utf8')));
this.push(file);
return callback();
});
}
function removeDTSPlugin(options) {

@@ -28,10 +40,19 @@ var found = options.plugins.find(function(x){

gulp.task('build-index', function(){
var importsToAdd = [];
gulp.task('build-index', function() {
var importsToAdd = paths.importsToAdd.slice();
return gulp.src(paths.source)
.pipe(tools.sortFiles())
.pipe(gulpIgnore.exclude('aurelia-testing.js'))
.pipe(through2.obj(function(file, enc, callback) {
file.contents = new Buffer(tools.extractImports(file.contents.toString("utf8"), importsToAdd));
var src = gulp.src(paths.files);
if (paths.sort) {
src = src.pipe(tools.sortFiles());
}
if (paths.ignore) {
paths.ignore.forEach(function(filename){
src = src.pipe(gulpIgnore.exclude(filename));
});
}
return src.pipe(through2.obj(function(file, enc, callback) {
file.contents = new Buffer(tools.extractImports(file.contents.toString('utf8'), importsToAdd));
this.push(file);

@@ -53,33 +74,53 @@ return callback();

gulp.task('build-es2015', function () {
return gulp.src(paths.source)
.pipe(to5(assign({}, removeDTSPlugin(compilerOptions.es2015()))))
.pipe(gulp.dest(paths.output + 'es2015'));
});
function gulpFileFromString(filename, string) {
var src = require('stream').Readable({ objectMode: true });
src._read = function() {
this.push(new gutil.File({ cwd: paths.appRoot, base: paths.output, path: filename, contents: new Buffer(string) }))
this.push(null)
}
return src;
}
gulp.task('build-commonjs', function () {
return gulp.src(paths.source)
.pipe(to5(assign({}, removeDTSPlugin(compilerOptions.commonjs()))))
.pipe(gulp.dest(paths.output + 'commonjs'));
});
function srcForBabel() {
return merge(
gulp.src(paths.source),
gulpFileFromString(paths.output + 'index.js', "export * from './" + paths.packageName + "';")
);
}
gulp.task('build-amd', function () {
return gulp.src(paths.source)
.pipe(to5(assign({}, removeDTSPlugin(compilerOptions.amd()))))
.pipe(gulp.dest(paths.output + 'amd'));
});
function srcForTypeScript() {
return gulp
.src(paths.output + paths.packageName + '.js')
.pipe(rename(function (path) {
if (path.extname == '.js') {
path.extname = '.ts';
}
}));
}
gulp.task('build-system', function () {
return gulp.src(paths.source)
.pipe(to5(assign({}, removeDTSPlugin(compilerOptions.system()))))
.pipe(gulp.dest(paths.output + 'system'));
compileToModules.forEach(function(moduleType){
gulp.task('build-babel-' + moduleType, function () {
return srcForBabel()
.pipe(to5(assign({}, removeDTSPlugin(compilerOptions[moduleType]()))))
.pipe(cleanGeneratedCode())
.pipe(gulp.dest(paths.output + moduleType));
});
if (moduleType === 'native-modules') return; // typescript doesn't support the combination of: es5 + native modules
gulp.task('build-ts-' + moduleType, function () {
var tsProject = ts.createProject(
compilerTsOptions({ module: moduleType, target: moduleType == 'es2015' ? 'es2015' : 'es5' }), ts.reporter.defaultReporter());
var tsResult = srcForTypeScript().pipe(ts(tsProject));
return tsResult.js
.pipe(gulp.dest(paths.output + moduleType));
});
});
gulp.task('build-dts', function(){
return gulp.src(paths.output + paths.packageName + '.d.ts')
.pipe(rename(paths.packageName + '.d.ts'))
.pipe(gulp.dest(paths.output + 'es2015'))
.pipe(gulp.dest(paths.output + 'commonjs'))
.pipe(gulp.dest(paths.output + 'amd'))
.pipe(gulp.dest(paths.output + 'system'));
gulp.task('build-dts', function() {
var tsProject = ts.createProject(
compilerTsOptions({ removeComments: false, target: "es2015", module: "es2015" }), ts.reporter.defaultReporter());
var tsResult = srcForTypeScript().pipe(ts(tsProject));
return tsResult.dts
.pipe(gulp.dest(paths.output));
});

@@ -91,6 +132,21 @@

'build-index',
['build-es2015-temp', 'build-es2015', 'build-commonjs', 'build-amd', 'build-system'],
'build-dts',
'build-es2015-temp',
compileToModules
.map(function(moduleType) { return 'build-babel-' + moduleType })
.concat(paths.useTypeScriptForDTS ? ['build-dts'] : []),
callback
);
});
gulp.task('build-ts', function(callback) {
return runSequence(
'clean',
'build-index',
'build-babel-native-modules',
compileToModules
.filter(function(moduleType) { return moduleType !== 'native-modules' })
.map(function(moduleType) { return 'build-ts-' + moduleType })
.concat(paths.useTypeScriptForDTS ? ['build-dts'] : []),
callback
);
});
var gulp = require('gulp');
var paths = require('../paths');
var typedoc = require('gulp-typedoc');
var typedocExtractor = require('gulp-typedoc-extractor');
var runSequence = require('run-sequence');
var through2 = require('through2');
gulp.task('doc-generate', function(){
return gulp.src([paths.output + '*.d.ts', paths.doc + '/core-js.d.ts', './jspm_packages/npm/*/*.d.ts'])
return gulp.src([paths.output + paths.packageName + '.d.ts'])
.pipe(typedoc({
target: 'es6',
includeDeclarations: true,
moduleResolution: 'node',
json: paths.doc + '/api.json',

@@ -21,5 +22,17 @@ name: paths.packageName + '-docs',

gulp.task('doc-extract', function(){
gulp.task('doc-shape', function(){
return gulp.src([paths.doc + '/api.json'])
.pipe(typedocExtractor(paths.packageName))
.pipe(through2.obj(function(file, enc, callback) {
var json = JSON.parse(file.contents.toString('utf8')).children[0];
json = {
name: paths.packageName,
children: json.children,
groups: json.groups
};
file.contents = new Buffer(JSON.stringify(json));
this.push(file);
return callback();
}))
.pipe(gulp.dest(paths.doc));

@@ -31,5 +44,5 @@ });

'doc-generate',
'doc-extract',
'doc-shape',
callback
);
});

@@ -16,8 +16,8 @@ System.config({

map: {
"aurelia-bootstrapper": "npm:aurelia-bootstrapper@1.0.0-beta.1.2.1",
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0-beta.1.2.3",
"aurelia-framework": "npm:aurelia-framework@1.0.0-beta.1.2.5",
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.1.2.1",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.2.2",
"aurelia-templating": "npm:aurelia-templating@1.0.0-beta.1.2.7",
"aurelia-bootstrapper": "npm:aurelia-bootstrapper@1.0.0-beta.2.0.0",
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0-beta.2.1.0",
"aurelia-framework": "npm:aurelia-framework@1.0.0-beta.2.0.0",
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.2.0.0",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.3.0",
"aurelia-templating": "npm:aurelia-templating@1.0.0-beta.3.0.2",
"babel": "npm:babel-core@5.8.38",

@@ -36,3 +36,3 @@ "babel-runtime": "npm:babel-runtime@5.8.38",

"github:jspm/nodelibs-process@0.1.2": {
"process": "npm:process@0.11.3"
"process": "npm:process@0.11.5"
},

@@ -42,2 +42,5 @@ "github:jspm/nodelibs-util@0.1.0": {

},
"github:jspm/nodelibs-vm@0.1.0": {
"vm-browserify": "npm:vm-browserify@0.0.4"
},
"npm:assert@1.4.1": {

@@ -49,116 +52,115 @@ "assert": "github:jspm/nodelibs-assert@0.1.0",

},
"npm:aurelia-binding@1.0.0-beta.1.3.6": {
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.1.2.1",
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1.2.1",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.2.2",
"aurelia-task-queue": "npm:aurelia-task-queue@1.0.0-beta.1.2.1"
"npm:aurelia-binding@1.0.0-beta.2.0.5": {
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.2.0.0",
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.2.0.0",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.3.0",
"aurelia-task-queue": "npm:aurelia-task-queue@1.0.0-beta.2.0.0"
},
"npm:aurelia-bootstrapper@1.0.0-beta.1.2.1": {
"aurelia-event-aggregator": "npm:aurelia-event-aggregator@1.0.0-beta.1.2.1",
"aurelia-framework": "npm:aurelia-framework@1.0.0-beta.1.2.5",
"aurelia-history": "npm:aurelia-history@1.0.0-beta.1.2.1",
"aurelia-history-browser": "npm:aurelia-history-browser@1.0.0-beta.1.2.1",
"aurelia-loader-default": "npm:aurelia-loader-default@1.0.0-beta.1.2.2",
"aurelia-logging-console": "npm:aurelia-logging-console@1.0.0-beta.1.2.2",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.2.2",
"aurelia-pal-browser": "npm:aurelia-pal-browser@1.0.0-beta.2.0.1",
"aurelia-polyfills": "npm:aurelia-polyfills@1.0.0-beta.1.1.6",
"aurelia-router": "npm:aurelia-router@1.0.0-beta.1.2.4",
"aurelia-templating": "npm:aurelia-templating@1.0.0-beta.1.2.7",
"aurelia-templating-binding": "npm:aurelia-templating-binding@1.0.0-beta.1.2.4",
"aurelia-templating-resources": "npm:aurelia-templating-resources@1.0.0-beta.1.2.6",
"aurelia-templating-router": "npm:aurelia-templating-router@1.0.0-beta.1.2.1"
"npm:aurelia-bootstrapper@1.0.0-beta.2.0.0": {
"aurelia-event-aggregator": "npm:aurelia-event-aggregator@1.0.0-beta.2.0.0",
"aurelia-framework": "npm:aurelia-framework@1.0.0-beta.2.0.0",
"aurelia-history": "npm:aurelia-history@1.0.0-beta.2.0.0",
"aurelia-history-browser": "npm:aurelia-history-browser@1.0.0-beta.2.0.0",
"aurelia-loader-default": "npm:aurelia-loader-default@1.0.0-beta.2.0.0",
"aurelia-logging-console": "npm:aurelia-logging-console@1.0.0-beta.2.0.0",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.3.0",
"aurelia-pal-browser": "npm:aurelia-pal-browser@1.0.0-beta.3.0.0",
"aurelia-polyfills": "npm:aurelia-polyfills@1.0.0-beta.2.0.0",
"aurelia-router": "npm:aurelia-router@1.0.0-beta.2.0.0",
"aurelia-templating": "npm:aurelia-templating@1.0.0-beta.3.0.2",
"aurelia-templating-binding": "npm:aurelia-templating-binding@1.0.0-beta.2.0.0",
"aurelia-templating-resources": "npm:aurelia-templating-resources@1.0.0-beta.3.0.0",
"aurelia-templating-router": "npm:aurelia-templating-router@1.0.0-beta.2.0.0"
},
"npm:aurelia-dependency-injection@1.0.0-beta.1.2.3": {
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.1.2.1",
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1.2.1",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.2.2"
"npm:aurelia-dependency-injection@1.0.0-beta.2.1.0": {
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.2.0.0",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.3.0"
},
"npm:aurelia-event-aggregator@1.0.0-beta.1.2.1": {
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.1.2.1"
"npm:aurelia-event-aggregator@1.0.0-beta.2.0.0": {
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.2.0.0"
},
"npm:aurelia-framework@1.0.0-beta.1.2.5": {
"aurelia-binding": "npm:aurelia-binding@1.0.0-beta.1.3.6",
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0-beta.1.2.3",
"aurelia-loader": "npm:aurelia-loader@1.0.0-beta.1.2.0",
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.1.2.1",
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1.2.1",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.2.2",
"aurelia-path": "npm:aurelia-path@1.0.0-beta.1.2.2",
"aurelia-task-queue": "npm:aurelia-task-queue@1.0.0-beta.1.2.1",
"aurelia-templating": "npm:aurelia-templating@1.0.0-beta.1.2.7"
"npm:aurelia-framework@1.0.0-beta.2.0.0": {
"aurelia-binding": "npm:aurelia-binding@1.0.0-beta.2.0.5",
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0-beta.2.1.0",
"aurelia-loader": "npm:aurelia-loader@1.0.0-beta.2.0.0",
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.2.0.0",
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.2.0.0",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.3.0",
"aurelia-path": "npm:aurelia-path@1.0.0-beta.2.0.0",
"aurelia-task-queue": "npm:aurelia-task-queue@1.0.0-beta.2.0.0",
"aurelia-templating": "npm:aurelia-templating@1.0.0-beta.3.0.2"
},
"npm:aurelia-history-browser@1.0.0-beta.1.2.1": {
"aurelia-history": "npm:aurelia-history@1.0.0-beta.1.2.1",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.2.2"
"npm:aurelia-history-browser@1.0.0-beta.2.0.0": {
"aurelia-history": "npm:aurelia-history@1.0.0-beta.2.0.0",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.3.0"
},
"npm:aurelia-loader-default@1.0.0-beta.1.2.2": {
"aurelia-loader": "npm:aurelia-loader@1.0.0-beta.1.2.0",
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1.2.1",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.2.2"
"npm:aurelia-loader-default@1.0.0-beta.2.0.0": {
"aurelia-loader": "npm:aurelia-loader@1.0.0-beta.2.0.0",
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.2.0.0",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.3.0"
},
"npm:aurelia-loader@1.0.0-beta.1.2.0": {
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1.2.1",
"aurelia-path": "npm:aurelia-path@1.0.0-beta.1.2.2"
"npm:aurelia-loader@1.0.0-beta.2.0.0": {
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.2.0.0",
"aurelia-path": "npm:aurelia-path@1.0.0-beta.2.0.0"
},
"npm:aurelia-logging-console@1.0.0-beta.1.2.2": {
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.1.2.1"
"npm:aurelia-logging-console@1.0.0-beta.2.0.0": {
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.2.0.0"
},
"npm:aurelia-metadata@1.0.0-beta.1.2.1": {
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.2.2"
"npm:aurelia-metadata@1.0.0-beta.2.0.0": {
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.3.0"
},
"npm:aurelia-pal-browser@1.0.0-beta.2.0.1": {
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.2.2"
"npm:aurelia-pal-browser@1.0.0-beta.3.0.0": {
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.3.0"
},
"npm:aurelia-polyfills@1.0.0-beta.1.1.6": {
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.2.2"
"npm:aurelia-polyfills@1.0.0-beta.2.0.0": {
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.3.0"
},
"npm:aurelia-route-recognizer@1.0.0-beta.1.2.1": {
"aurelia-path": "npm:aurelia-path@1.0.0-beta.1.2.2"
"npm:aurelia-route-recognizer@1.0.0-beta.2.0.0": {
"aurelia-path": "npm:aurelia-path@1.0.0-beta.2.0.0"
},
"npm:aurelia-router@1.0.0-beta.1.2.4": {
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0-beta.1.2.3",
"aurelia-event-aggregator": "npm:aurelia-event-aggregator@1.0.0-beta.1.2.1",
"aurelia-history": "npm:aurelia-history@1.0.0-beta.1.2.1",
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.1.2.1",
"aurelia-path": "npm:aurelia-path@1.0.0-beta.1.2.2",
"aurelia-route-recognizer": "npm:aurelia-route-recognizer@1.0.0-beta.1.2.1"
"npm:aurelia-router@1.0.0-beta.2.0.0": {
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0-beta.2.1.0",
"aurelia-event-aggregator": "npm:aurelia-event-aggregator@1.0.0-beta.2.0.0",
"aurelia-history": "npm:aurelia-history@1.0.0-beta.2.0.0",
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.2.0.0",
"aurelia-path": "npm:aurelia-path@1.0.0-beta.2.0.0",
"aurelia-route-recognizer": "npm:aurelia-route-recognizer@1.0.0-beta.2.0.0"
},
"npm:aurelia-task-queue@1.0.0-beta.1.2.1": {
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.2.2"
"npm:aurelia-task-queue@1.0.0-beta.2.0.0": {
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.3.0"
},
"npm:aurelia-templating-binding@1.0.0-beta.1.2.4": {
"aurelia-binding": "npm:aurelia-binding@1.0.0-beta.1.3.6",
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.1.2.1",
"aurelia-templating": "npm:aurelia-templating@1.0.0-beta.1.2.7"
"npm:aurelia-templating-binding@1.0.0-beta.2.0.0": {
"aurelia-binding": "npm:aurelia-binding@1.0.0-beta.2.0.5",
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.2.0.0",
"aurelia-templating": "npm:aurelia-templating@1.0.0-beta.3.0.2"
},
"npm:aurelia-templating-resources@1.0.0-beta.1.2.6": {
"aurelia-binding": "npm:aurelia-binding@1.0.0-beta.1.3.6",
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0-beta.1.2.3",
"aurelia-loader": "npm:aurelia-loader@1.0.0-beta.1.2.0",
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.1.2.1",
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1.2.1",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.2.2",
"aurelia-path": "npm:aurelia-path@1.0.0-beta.1.2.2",
"aurelia-task-queue": "npm:aurelia-task-queue@1.0.0-beta.1.2.1",
"aurelia-templating": "npm:aurelia-templating@1.0.0-beta.1.2.7"
"npm:aurelia-templating-resources@1.0.0-beta.3.0.0": {
"aurelia-binding": "npm:aurelia-binding@1.0.0-beta.2.0.5",
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0-beta.2.1.0",
"aurelia-loader": "npm:aurelia-loader@1.0.0-beta.2.0.0",
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.2.0.0",
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.2.0.0",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.3.0",
"aurelia-path": "npm:aurelia-path@1.0.0-beta.2.0.0",
"aurelia-task-queue": "npm:aurelia-task-queue@1.0.0-beta.2.0.0",
"aurelia-templating": "npm:aurelia-templating@1.0.0-beta.3.0.2"
},
"npm:aurelia-templating-router@1.0.0-beta.1.2.1": {
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0-beta.1.2.3",
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.1.2.1",
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1.2.1",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.2.2",
"aurelia-path": "npm:aurelia-path@1.0.0-beta.1.2.2",
"aurelia-router": "npm:aurelia-router@1.0.0-beta.1.2.4",
"aurelia-templating": "npm:aurelia-templating@1.0.0-beta.1.2.7"
"npm:aurelia-templating-router@1.0.0-beta.2.0.0": {
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0-beta.2.1.0",
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.2.0.0",
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.2.0.0",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.3.0",
"aurelia-path": "npm:aurelia-path@1.0.0-beta.2.0.0",
"aurelia-router": "npm:aurelia-router@1.0.0-beta.2.0.0",
"aurelia-templating": "npm:aurelia-templating@1.0.0-beta.3.0.2"
},
"npm:aurelia-templating@1.0.0-beta.1.2.7": {
"aurelia-binding": "npm:aurelia-binding@1.0.0-beta.1.3.6",
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0-beta.1.2.3",
"aurelia-loader": "npm:aurelia-loader@1.0.0-beta.1.2.0",
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.1.2.1",
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1.2.1",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.2.2",
"aurelia-path": "npm:aurelia-path@1.0.0-beta.1.2.2",
"aurelia-task-queue": "npm:aurelia-task-queue@1.0.0-beta.1.2.1"
"npm:aurelia-templating@1.0.0-beta.3.0.2": {
"aurelia-binding": "npm:aurelia-binding@1.0.0-beta.2.0.5",
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0-beta.2.1.0",
"aurelia-loader": "npm:aurelia-loader@1.0.0-beta.2.0.0",
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.2.0.0",
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.2.0.0",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.3.0",
"aurelia-path": "npm:aurelia-path@1.0.0-beta.2.0.0",
"aurelia-task-queue": "npm:aurelia-task-queue@1.0.0-beta.2.0.0"
},

@@ -188,4 +190,6 @@ "npm:babel-runtime@5.8.38": {

},
"npm:process@0.11.3": {
"assert": "github:jspm/nodelibs-assert@0.1.0"
"npm:process@0.11.5": {
"assert": "github:jspm/nodelibs-assert@0.1.0",
"fs": "github:jspm/nodelibs-fs@0.1.2",
"vm": "github:jspm/nodelibs-vm@0.1.0"
},

@@ -195,4 +199,7 @@ "npm:util@0.10.3": {

"process": "github:jspm/nodelibs-process@0.1.2"
},
"npm:vm-browserify@0.0.4": {
"indexof": "npm:indexof@0.0.1"
}
}
});

@@ -28,7 +28,3 @@ define(['exports', 'aurelia-templating', 'aurelia-dependency-injection', 'aurelia-logging', 'aurelia-pal'], function (exports, _aureliaTemplating, _aureliaDependencyInjection, _aureliaLogging, _aureliaPal) {

function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}

@@ -38,3 +34,3 @@ var _dec, _dec2, _class;

var CompileSpy = exports.CompileSpy = (_dec = (0, _aureliaTemplating.customAttribute)('compile-spy'), _dec2 = (0, _aureliaDependencyInjection.inject)(_aureliaPal.DOM.Element, _aureliaTemplating.TargetInstruction), _dec(_class = _dec2(_class = function CompileSpy(element, instruction) {
_classCallCheck(this, CompileSpy);

@@ -41,0 +37,0 @@ LogManager.getLogger('compile-spy').info(element, instruction);

@@ -9,7 +9,3 @@ define(['exports', 'aurelia-bootstrapper', 'aurelia-templating', 'aurelia-framework'], function (exports, _aureliaBootstrapper, _aureliaTemplating, _aureliaFramework) {

function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}

@@ -24,3 +20,3 @@ var StageComponent = exports.StageComponent = {

function ComponentTester() {
_classCallCheck(this, ComponentTester);

@@ -27,0 +23,0 @@ this.configure = function (aurelia) {

@@ -28,7 +28,3 @@ define(['exports', 'aurelia-templating', 'aurelia-logging'], function (exports, _aureliaTemplating, _aureliaLogging) {

function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}

@@ -39,3 +35,3 @@ var _dec, _class;

function ViewSpy() {
_classCallCheck(this, ViewSpy);

@@ -42,0 +38,0 @@ this.logger = LogManager.getLogger('view-spy');

@@ -1,95 +0,95 @@

declare module 'aurelia-testing' {
import * as LogManager from 'aurelia-logging';
import {
bootstrap
} from 'aurelia-bootstrapper';
import {
View,
customAttribute,
TargetInstruction
} from 'aurelia-templating';
import {
Aurelia
} from 'aurelia-framework';
import {
inject
} from 'aurelia-dependency-injection';
import {
DOM
} from 'aurelia-pal';
export const StageComponent: any;
export class ComponentTester {
bind: ((bindingContext: any) => void);
attached: (() => void);
unbind: (() => void);
dispose: (() => Promise<any>);
element: Element;
viewModel: any;
configure: any;
_html: string;
_resources: string | string[];
_bindingContext: any;
_rootView: View;
bootstrap(configure: ((aurelia: Aurelia) => void)): any;
withResources(resources: string | string[]): ComponentTester;
inView(html: string): ComponentTester;
boundTo(bindingContext: any): ComponentTester;
manuallyHandleLifecycle(): ComponentTester;
create(): Promise<void>;
}
import * as LogManager from 'aurelia-logging';
import {
bootstrap
} from 'aurelia-bootstrapper';
import {
View,
customAttribute,
TargetInstruction
} from 'aurelia-templating';
import {
Aurelia
} from 'aurelia-framework';
import {
inject
} from 'aurelia-dependency-injection';
import {
DOM
} from 'aurelia-pal';
export declare const StageComponent: any;
export declare class ComponentTester {
bind: ((bindingContext: any) => void);
attached: (() => void);
unbind: (() => void);
dispose: (() => Promise<any>);
element: Element;
viewModel: any;
configure: any;
_html: string;
_resources: string | string[];
_bindingContext: any;
_rootView: View;
bootstrap(configure: ((aurelia: Aurelia) => void)): any;
withResources(resources: string | string[]): ComponentTester;
inView(html: string): ComponentTester;
boundTo(bindingContext: any): ComponentTester;
manuallyHandleLifecycle(): ComponentTester;
create(): Promise<void>;
_prepareLifecycle(): any;
}
/**
* Attribute to be placed on any HTML element in a view to emit the View instance
* to the debug console, giving you insight into the live View instance, including
* all child views, live bindings, behaviors and more.
*/
export declare class ViewSpy {
/**
* Attribute to be placed on any HTML element in a view to emit the View instance
* to the debug console, giving you insight into the live View instance, including
* all child views, live bindings, behaviors and more.
*/
export class ViewSpy {
/**
* Creates a new instance of ViewSpy.
*/
constructor();
/**
* Invoked when the target view is created.
* @param view The target view.
*/
created(view: any): any;
/**
* Invoked when the target view is bound.
* @param bindingContext The target view's binding context.
*/
bind(bindingContext: any): any;
/**
* Invoked when the target element is attached to the DOM.
*/
attached(): any;
/**
* Invoked when the target element is detached from the DOM.
*/
detached(): any;
/**
* Invoked when the target element is unbound.
*/
unbind(): any;
}
* Creates a new instance of ViewSpy.
*/
constructor();
_log(lifecycleName?: any, context?: any): any;
/**
* Attribute to be placed on any element to have it emit the View Compiler's
* TargetInstruction into the debug console, giving you insight into all the
* parsed bindings, behaviors and event handers for the targeted element.
*/
export class CompileSpy {
/**
* Creates and instanse of CompileSpy.
* @param element target element on where attribute is placed on.
* @param instruction instructions for how the target element should be enhanced.
*/
constructor(element: any, instruction: any);
}
* Invoked when the target view is created.
* @param view The target view.
*/
created(view?: any): any;
/**
* Invoked when the target view is bound.
* @param bindingContext The target view's binding context.
*/
bind(bindingContext?: any): any;
/**
* Invoked when the target element is attached to the DOM.
*/
attached(): any;
/**
* Invoked when the target element is detached from the DOM.
*/
detached(): any;
/**
* Invoked when the target element is unbound.
*/
unbind(): any;
}
/**
* Attribute to be placed on any element to have it emit the View Compiler's
* TargetInstruction into the debug console, giving you insight into all the
* parsed bindings, behaviors and event handers for the targeted element.
*/
export declare class CompileSpy {
/**
* Creates and instanse of CompileSpy.
* @param element target element on where attribute is placed on.
* @param instruction instructions for how the target element should be enhanced.
*/
constructor(element?: any, instruction?: any);
}

@@ -22,8 +22,8 @@ 'use strict';

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var CompileSpy = exports.CompileSpy = (_dec = (0, _aureliaTemplating.customAttribute)('compile-spy'), _dec2 = (0, _aureliaDependencyInjection.inject)(_aureliaPal.DOM.Element, _aureliaTemplating.TargetInstruction), _dec(_class = _dec2(_class = function CompileSpy(element, instruction) {
_classCallCheck(this, CompileSpy);
LogManager.getLogger('compile-spy').info(element, instruction);
}) || _class) || _class);

@@ -14,4 +14,4 @@ 'use strict';

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var StageComponent = exports.StageComponent = {

@@ -25,3 +25,3 @@ withResources: function withResources(resources) {

function ComponentTester() {
_classCallCheck(this, ComponentTester);

@@ -28,0 +28,0 @@ this.configure = function (aurelia) {

@@ -18,7 +18,7 @@ 'use strict';

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var ViewSpy = exports.ViewSpy = (_dec = (0, _aureliaTemplating.customAttribute)('view-spy'), _dec(_class = function () {
function ViewSpy() {
_classCallCheck(this, ViewSpy);

@@ -25,0 +25,0 @@ this.logger = LogManager.getLogger('view-spy');

@@ -8,7 +8,3 @@ 'use strict';

function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}

@@ -28,3 +24,3 @@ return {

_export('CompileSpy', CompileSpy = (_dec = customAttribute('compile-spy'), _dec2 = inject(DOM.Element, TargetInstruction), _dec(_class = _dec2(_class = function CompileSpy(element, instruction) {
_classCallCheck(this, CompileSpy);

@@ -31,0 +27,0 @@ LogManager.getLogger('compile-spy').info(element, instruction);

@@ -8,7 +8,3 @@ 'use strict';

function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}

@@ -34,3 +30,3 @@ return {

function ComponentTester() {
_classCallCheck(this, ComponentTester);

@@ -37,0 +33,0 @@ this.configure = function (aurelia) {

@@ -8,7 +8,3 @@ 'use strict';

function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}

@@ -24,3 +20,3 @@ return {

function ViewSpy() {
_classCallCheck(this, ViewSpy);

@@ -27,0 +23,0 @@ this.logger = LogManager.getLogger('view-spy');

@@ -1,877 +0,1 @@

{
"id": 2,
"name": "\"aurelia-testing\"",
"kind": 2,
"kindString": "Module",
"flags": {},
"children": [
{
"id": 58,
"name": "CompileSpy",
"kind": 128,
"kindString": "Class",
"flags": {
"isExported": true
},
"comment": {
"shortText": "Attribute to be placed on any element to have it emit the View Compiler's\nTargetInstruction into the debug console, giving you insight into all the\nparsed bindings, behaviors and event handers for the targeted element."
},
"children": [
{
"id": 59,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
"flags": {
"isExported": true
},
"comment": {
"shortText": "Creates and instanse of CompileSpy."
},
"signatures": [
{
"id": 60,
"name": "new CompileSpy",
"kind": 16384,
"kindString": "Constructor signature",
"flags": {},
"comment": {
"shortText": "Creates and instanse of CompileSpy."
},
"parameters": [
{
"id": 61,
"name": "element",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "target element on where attribute is placed on."
},
"type": {
"type": "instrinct",
"name": "any"
}
},
{
"id": 62,
"name": "instruction",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "instructions for how the target element should be enhanced.\n"
},
"type": {
"type": "instrinct",
"name": "any"
}
}
],
"type": {
"type": "reference",
"name": "CompileSpy",
"id": 58,
"moduleName": "\"aurelia-testing\""
}
}
]
}
],
"groups": [
{
"title": "Constructors",
"kind": 512,
"children": [
59
]
}
]
},
{
"id": 3,
"name": "ComponentTester",
"kind": 128,
"kindString": "Class",
"flags": {
"isExported": true
},
"children": [
{
"id": 22,
"name": "_bindingContext",
"kind": 1024,
"kindString": "Property",
"flags": {
"isExported": true
},
"type": {
"type": "instrinct",
"name": "any"
}
},
{
"id": 20,
"name": "_html",
"kind": 1024,
"kindString": "Property",
"flags": {
"isExported": true
},
"type": {
"type": "instrinct",
"name": "string"
}
},
{
"id": 21,
"name": "_resources",
"kind": 1024,
"kindString": "Property",
"flags": {
"isExported": true
},
"type": {
"type": "union",
"types": [
{
"type": "instrinct",
"name": "string"
},
{
"type": "instrinct",
"isArray": true,
"name": "string"
}
]
}
},
{
"id": 23,
"name": "_rootView",
"kind": 1024,
"kindString": "Property",
"flags": {
"isExported": true
},
"type": {
"type": "reference",
"name": "View",
"id": 2116,
"moduleName": "\"aurelia-templating\""
}
},
{
"id": 8,
"name": "attached",
"kind": 1024,
"kindString": "Property",
"flags": {
"isExported": true
},
"type": {
"type": "reflection",
"declaration": {
"id": 9,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"signatures": [
{
"id": 10,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"type": {
"type": "instrinct",
"name": "void"
}
}
]
}
}
},
{
"id": 4,
"name": "bind",
"kind": 1024,
"kindString": "Property",
"flags": {
"isExported": true
},
"type": {
"type": "reflection",
"declaration": {
"id": 5,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"signatures": [
{
"id": 6,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
"id": 7,
"name": "bindingContext",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "instrinct",
"name": "any"
}
}
],
"type": {
"type": "instrinct",
"name": "void"
}
}
]
}
}
},
{
"id": 19,
"name": "configure",
"kind": 1024,
"kindString": "Property",
"flags": {
"isExported": true
},
"type": {
"type": "instrinct",
"name": "any"
}
},
{
"id": 14,
"name": "dispose",
"kind": 1024,
"kindString": "Property",
"flags": {
"isExported": true
},
"type": {
"type": "reflection",
"declaration": {
"id": 15,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"signatures": [
{
"id": 16,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"type": {
"type": "reference",
"name": "Promise",
"typeArguments": [
{
"type": "instrinct",
"name": "any"
}
]
}
}
]
}
}
},
{
"id": 17,
"name": "element",
"kind": 1024,
"kindString": "Property",
"flags": {
"isExported": true
},
"type": {
"type": "reference",
"name": "Element"
}
},
{
"id": 11,
"name": "unbind",
"kind": 1024,
"kindString": "Property",
"flags": {
"isExported": true
},
"type": {
"type": "reflection",
"declaration": {
"id": 12,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"signatures": [
{
"id": 13,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"type": {
"type": "instrinct",
"name": "void"
}
}
]
}
}
},
{
"id": 18,
"name": "viewModel",
"kind": 1024,
"kindString": "Property",
"flags": {
"isExported": true
},
"type": {
"type": "instrinct",
"name": "any"
}
},
{
"id": 24,
"name": "bootstrap",
"kind": 2048,
"kindString": "Method",
"flags": {
"isExported": true
},
"signatures": [
{
"id": 25,
"name": "bootstrap",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
"id": 26,
"name": "configure",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 27,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"signatures": [
{
"id": 28,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
"id": 29,
"name": "aurelia",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
"name": "Aurelia",
"id": 698
}
}
],
"type": {
"type": "instrinct",
"name": "void"
}
}
]
}
}
}
],
"type": {
"type": "instrinct",
"name": "any"
}
}
]
},
{
"id": 36,
"name": "boundTo",
"kind": 2048,
"kindString": "Method",
"flags": {
"isExported": true
},
"signatures": [
{
"id": 37,
"name": "boundTo",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
"id": 38,
"name": "bindingContext",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "instrinct",
"name": "any"
}
}
],
"type": {
"type": "reference",
"name": "ComponentTester",
"id": 3,
"moduleName": "\"aurelia-testing\""
}
}
]
},
{
"id": 41,
"name": "create",
"kind": 2048,
"kindString": "Method",
"flags": {
"isExported": true
},
"signatures": [
{
"id": 42,
"name": "create",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"type": {
"type": "reference",
"name": "Promise",
"typeArguments": [
{
"type": "instrinct",
"name": "void"
}
]
}
}
]
},
{
"id": 33,
"name": "inView",
"kind": 2048,
"kindString": "Method",
"flags": {
"isExported": true
},
"signatures": [
{
"id": 34,
"name": "inView",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
"id": 35,
"name": "html",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "instrinct",
"name": "string"
}
}
],
"type": {
"type": "reference",
"name": "ComponentTester",
"id": 3,
"moduleName": "\"aurelia-testing\""
}
}
]
},
{
"id": 39,
"name": "manuallyHandleLifecycle",
"kind": 2048,
"kindString": "Method",
"flags": {
"isExported": true
},
"signatures": [
{
"id": 40,
"name": "manuallyHandleLifecycle",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"type": {
"type": "reference",
"name": "ComponentTester",
"id": 3,
"moduleName": "\"aurelia-testing\""
}
}
]
},
{
"id": 30,
"name": "withResources",
"kind": 2048,
"kindString": "Method",
"flags": {
"isExported": true
},
"signatures": [
{
"id": 31,
"name": "withResources",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
"id": 32,
"name": "resources",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "union",
"types": [
{
"type": "instrinct",
"name": "string"
},
{
"type": "instrinct",
"isArray": true,
"name": "string"
}
]
}
}
],
"type": {
"type": "reference",
"name": "ComponentTester",
"id": 3,
"moduleName": "\"aurelia-testing\""
}
}
]
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [
22,
20,
21,
23,
8,
4,
19,
14,
17,
11,
18
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
24,
36,
41,
33,
39,
30
]
}
]
},
{
"id": 43,
"name": "ViewSpy",
"kind": 128,
"kindString": "Class",
"flags": {
"isExported": true
},
"comment": {
"shortText": "Attribute to be placed on any HTML element in a view to emit the View instance\nto the debug console, giving you insight into the live View instance, including\nall child views, live bindings, behaviors and more."
},
"children": [
{
"id": 44,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
"flags": {
"isExported": true
},
"comment": {
"shortText": "Creates a new instance of ViewSpy."
},
"signatures": [
{
"id": 45,
"name": "new ViewSpy",
"kind": 16384,
"kindString": "Constructor signature",
"flags": {},
"comment": {
"shortText": "Creates a new instance of ViewSpy."
},
"type": {
"type": "reference",
"name": "ViewSpy",
"id": 43,
"moduleName": "\"aurelia-testing\""
}
}
]
},
{
"id": 52,
"name": "attached",
"kind": 2048,
"kindString": "Method",
"flags": {
"isExported": true
},
"signatures": [
{
"id": 53,
"name": "attached",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Invoked when the target element is attached to the DOM."
},
"type": {
"type": "instrinct",
"name": "any"
}
}
]
},
{
"id": 49,
"name": "bind",
"kind": 2048,
"kindString": "Method",
"flags": {
"isExported": true
},
"signatures": [
{
"id": 50,
"name": "bind",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Invoked when the target view is bound."
},
"parameters": [
{
"id": 51,
"name": "bindingContext",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"text": "The target view's binding context.\n"
},
"type": {
"type": "instrinct",
"name": "any"
}
}
],
"type": {
"type": "instrinct",
"name": "any"
}
}
]
},
{
"id": 46,
"name": "created",
"kind": 2048,
"kindString": "Method",
"flags": {
"isExported": true
},
"signatures": [
{
"id": 47,
"name": "created",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Invoked when the target view is created."
},
"parameters": [
{
"id": 48,
"name": "view",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"text": "The target view.\n"
},
"type": {
"type": "instrinct",
"name": "any"
}
}
],
"type": {
"type": "instrinct",
"name": "any"
}
}
]
},
{
"id": 54,
"name": "detached",
"kind": 2048,
"kindString": "Method",
"flags": {
"isExported": true
},
"signatures": [
{
"id": 55,
"name": "detached",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Invoked when the target element is detached from the DOM."
},
"type": {
"type": "instrinct",
"name": "any"
}
}
]
},
{
"id": 56,
"name": "unbind",
"kind": 2048,
"kindString": "Method",
"flags": {
"isExported": true
},
"signatures": [
{
"id": 57,
"name": "unbind",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Invoked when the target element is unbound."
},
"type": {
"type": "instrinct",
"name": "any"
}
}
]
}
],
"groups": [
{
"title": "Constructors",
"kind": 512,
"children": [
44
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
52,
49,
46,
54,
56
]
}
]
},
{
"id": 63,
"name": "StageComponent",
"kind": 32,
"kindString": "Variable",
"flags": {
"isExported": true
},
"type": {
"type": "instrinct",
"name": "any"
}
}
],
"groups": [
{
"title": "Classes",
"kind": 128,
"children": [
58,
3,
43
]
},
{
"title": "Variables",
"kind": 32,
"children": [
63
]
}
]
}
{"name":"aurelia-testing","children":[{"id":63,"name":"CompileSpy","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Attribute to be placed on any element to have it emit the View Compiler's\nTargetInstruction into the debug console, giving you insight into all the\nparsed bindings, behaviors and event handers for the targeted element."},"children":[{"id":64,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates and instanse of CompileSpy."},"signatures":[{"id":65,"name":"new CompileSpy","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates and instanse of CompileSpy."},"parameters":[{"id":66,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"target element on where attribute is placed on."},"type":{"type":"instrinct","name":"any"}},{"id":67,"name":"instruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"instructions for how the target element should be enhanced.\n"},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"CompileSpy","id":63}}]}],"groups":[{"title":"Constructors","kind":512,"children":[64]}]},{"id":2,"name":"ComponentTester","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":21,"name":"_bindingContext","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"instrinct","name":"any"}},{"id":19,"name":"_html","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"instrinct","name":"string"}},{"id":20,"name":"_resources","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"union","types":[{"type":"instrinct","name":"string"},{"type":"instrinct","isArray":true,"name":"string"}]}},{"id":22,"name":"_rootView","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"reference","name":"View"}},{"id":7,"name":"attached","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"reflection","declaration":{"id":8,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":9,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"void"}}]}}},{"id":3,"name":"bind","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"reflection","declaration":{"id":4,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":5,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":6,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"void"}}]}}},{"id":18,"name":"configure","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"instrinct","name":"any"}},{"id":13,"name":"dispose","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"reflection","declaration":{"id":14,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":15,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"instrinct","name":"any"}]}}]}}},{"id":16,"name":"element","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"reference","name":"Element"}},{"id":10,"name":"unbind","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"reflection","declaration":{"id":11,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":12,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"void"}}]}}},{"id":17,"name":"viewModel","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"instrinct","name":"any"}},{"id":42,"name":"_prepareLifecycle","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":43,"name":"_prepareLifecycle","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"any"}}]},{"id":23,"name":"bootstrap","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":24,"name":"bootstrap","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":25,"name":"configure","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reflection","declaration":{"id":26,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":27,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":28,"name":"aurelia","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Aurelia"}}],"type":{"type":"instrinct","name":"void"}}]}}}],"type":{"type":"instrinct","name":"any"}}]},{"id":35,"name":"boundTo","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":36,"name":"boundTo","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":37,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"ComponentTester","id":2}}]},{"id":40,"name":"create","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":41,"name":"create","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"instrinct","name":"void"}]}}]},{"id":32,"name":"inView","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":33,"name":"inView","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":34,"name":"html","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"reference","name":"ComponentTester","id":2}}]},{"id":38,"name":"manuallyHandleLifecycle","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":39,"name":"manuallyHandleLifecycle","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"reference","name":"ComponentTester","id":2}}]},{"id":29,"name":"withResources","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":30,"name":"withResources","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":31,"name":"resources","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"instrinct","name":"string"},{"type":"instrinct","isArray":true,"name":"string"}]}}],"type":{"type":"reference","name":"ComponentTester","id":2}}]}],"groups":[{"title":"Properties","kind":1024,"children":[21,19,20,22,7,3,18,13,16,10,17]},{"title":"Methods","kind":2048,"children":[42,23,35,40,32,38,29]}]},{"id":44,"name":"ViewSpy","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Attribute to be placed on any HTML element in a view to emit the View instance\nto the debug console, giving you insight into the live View instance, including\nall child views, live bindings, behaviors and more."},"children":[{"id":45,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates a new instance of ViewSpy."},"signatures":[{"id":46,"name":"new ViewSpy","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates a new instance of ViewSpy."},"type":{"type":"reference","name":"ViewSpy","id":44}}]},{"id":47,"name":"_log","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":48,"name":"_log","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":49,"name":"lifecycleName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":50,"name":"context","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]},{"id":57,"name":"attached","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":58,"name":"attached","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the target element is attached to the DOM."},"type":{"type":"instrinct","name":"any"}}]},{"id":54,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":55,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the target view is bound."},"parameters":[{"id":56,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The target view's binding context.\n"},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]},{"id":51,"name":"created","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":52,"name":"created","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the target view is created."},"parameters":[{"id":53,"name":"view","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The target view.\n"},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]},{"id":59,"name":"detached","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":60,"name":"detached","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the target element is detached from the DOM."},"type":{"type":"instrinct","name":"any"}}]},{"id":61,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":62,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the target element is unbound."},"type":{"type":"instrinct","name":"any"}}]}],"groups":[{"title":"Constructors","kind":512,"children":[45]},{"title":"Methods","kind":2048,"children":[47,57,54,51,59,61]}]},{"id":68,"name":"StageComponent","kind":32,"kindString":"Variable","flags":{"isExported":true},"type":{"type":"instrinct","name":"any"}}],"groups":[{"title":"Classes","kind":128,"children":[63,2,44]},{"title":"Variables","kind":32,"children":[68]}]}
{
"name": "aurelia-testing",
"version": "0.3.1",
"version": "0.4.0",
"description": "A collection of helpers for testing Aurelia apps and components.",

@@ -16,2 +16,3 @@ "keywords": [

"main": "dist/commonjs/aurelia-testing.js",
"typings": "dist/aurelia-testing.d.ts",
"repository": {

@@ -31,16 +32,16 @@ "type": "git",

"peerDependencies": {
"aurelia-bootstrapper": "^1.0.0-beta.1.2.0",
"aurelia-templating": "^1.0.0-beta.1.2.4",
"aurelia-framework": "^1.0.0-beta.1.2.2",
"aurelia-dependency-injection": "^1.0.0-beta.1.2.3",
"aurelia-logging": "^1.0.0-beta.1.2.1",
"aurelia-pal": "^1.0.0-beta.1.2.2"
"aurelia-bootstrapper": "^1.0.0-beta.2.0.0",
"aurelia-templating": "^1.0.0-beta.3.0.2",
"aurelia-framework": "^1.0.0-beta.2.0.0",
"aurelia-dependency-injection": "^1.0.0-beta.2.1.0",
"aurelia-logging": "^1.0.0-beta.2.0.0",
"aurelia-pal": "^1.0.0-beta.1.3.0"
},
"dependencies": {
"aurelia-bootstrapper": "^1.0.0-beta.1.2.0",
"aurelia-templating": "^1.0.0-beta.1.2.4",
"aurelia-framework": "^1.0.0-beta.1.2.2",
"aurelia-dependency-injection": "^1.0.0-beta.1.2.3",
"aurelia-logging": "^1.0.0-beta.1.2.1",
"aurelia-pal": "^1.0.0-beta.1.2.2"
"aurelia-bootstrapper": "^1.0.0-beta.2.0.0",
"aurelia-dependency-injection": "^1.0.0-beta.2.1.0",
"aurelia-framework": "^1.0.0-beta.2.0.0",
"aurelia-logging": "^1.0.0-beta.2.0.0",
"aurelia-pal": "^1.0.0-beta.1.3.0",
"aurelia-templating": "^1.0.0-beta.3.0.2"
},

@@ -54,48 +55,54 @@ "devDependencies": {

"dependencies": {
"aurelia-bootstrapper": "^1.0.0-beta.1.2.0",
"aurelia-templating": "^1.0.0-beta.1.2.4",
"aurelia-framework": "^1.0.0-beta.1.2.2",
"aurelia-dependency-injection": "^1.0.0-beta.1.2.3",
"aurelia-logging": "^1.0.0-beta.1.2.1",
"aurelia-pal": "^1.0.0-beta.1.2.2"
"aurelia-bootstrapper": "^1.0.0-beta.2.0.0",
"aurelia-templating": "^1.0.0-beta.3.0.2",
"aurelia-framework": "^1.0.0-beta.2.0.0",
"aurelia-dependency-injection": "^1.0.0-beta.2.1.0",
"aurelia-logging": "^1.0.0-beta.2.0.0",
"aurelia-pal": "^1.0.0-beta.1.3.0"
},
"devDependencies": {
"aurelia-tools": "^0.1.12",
"babel-dts-generator": "^0.4.7",
"babel-eslint": "^4.1.1",
"babel-plugin-syntax-flow": "^6.5.0",
"aurelia-tools": "^0.2.1",
"babel-dts-generator": "^0.5.1",
"babel-eslint": "^6.0.4",
"babel-plugin-syntax-flow": "^6.8.0",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-es2015-modules-amd": "^6.6.5",
"babel-plugin-transform-es2015-modules-commonjs": "^6.7.0",
"babel-plugin-transform-es2015-modules-systemjs": "^6.6.5",
"babel-plugin-transform-flow-strip-types": "^6.7.0",
"babel-preset-es2015": "^6.6.0",
"babel-plugin-transform-es2015-modules-amd": "^6.8.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.8.0",
"babel-plugin-transform-es2015-modules-systemjs": "^6.9.0",
"babel-plugin-transform-flow-strip-types": "^6.8.0",
"babel-preset-es2015": "^6.9.0",
"babel-preset-es2015-loose": "^7.0.0",
"babel-preset-es2015-loose-native-modules": "^1.0.0",
"babel-preset-stage-1": "^6.5.0",
"conventional-changelog": "0.0.11",
"del": "^1.1.0",
"gulp": "^3.8.10",
"conventional-changelog": "1.1.0",
"del": "^2.2.0",
"gulp": "^3.9.1",
"gulp-babel": "^6.1.2",
"gulp-bump": "^0.3.1",
"gulp-bump": "^2.1.0",
"gulp-concat": "^2.6.0",
"gulp-eslint": "^1.0.0",
"gulp-eslint": "^2.0.0",
"gulp-ignore": "^2.0.1",
"gulp-insert": "^0.4.0",
"gulp-insert": "^0.5.0",
"gulp-rename": "^1.2.2",
"gulp-typedoc": "^1.2.1",
"gulp-typedoc": "^2.0.0",
"gulp-typedoc-extractor": "^0.0.8",
"jasmine-core": "^2.1.3",
"karma": "^0.13.15",
"gulp-typescript": "^2.13.6",
"gulp-util": "^3.0.7",
"jasmine-core": "^2.4.1",
"karma": "^0.13.22",
"karma-babel-preprocessor": "^6.0.1",
"karma-chrome-launcher": "^0.1.7",
"karma-coverage": "^0.3.1",
"karma-jasmine": "^0.3.5",
"karma-jspm": "^2.0.1",
"object.assign": "^1.0.3",
"require-dir": "^0.1.0",
"run-sequence": "^1.0.2",
"through2": "^2.0.0",
"vinyl": "^0.5.1",
"vinyl-paths": "^1.0.0",
"yargs": "^2.1.1"
"karma-chrome-launcher": "^1.0.1",
"karma-coverage": "^1.0.0",
"karma-jasmine": "^1.0.2",
"karma-jspm": "^2.1.1",
"merge2": "^1.0.2",
"object.assign": "^4.0.3",
"require-dir": "^0.3.0",
"run-sequence": "^1.2.1",
"through2": "^2.0.1",
"typedoc": "^0.4.3",
"typescript": "^1.9.0-dev.20160615-1.0",
"vinyl": "^1.1.1",
"vinyl-paths": "^2.1.0",
"yargs": "^4.7.1"
},

@@ -102,0 +109,0 @@ "aurelia": {

@@ -6,2 +6,3 @@ # aurelia-testing

[![Join the chat at https://gitter.im/aurelia/discuss](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/aurelia/discuss?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![CircleCI](https://circleci.com/gh/aurelia/testing.svg?style=shield)](https://circleci.com/gh/aurelia/testing)

@@ -8,0 +9,0 @@ This library is part of the [Aurelia](http://www.aurelia.io/) platform and contains testing helpers for aurelia app and component developers.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc