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

angular2-infinite-scroll

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular2-infinite-scroll - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

config/helpers.js

87

karma-test-shim.js

@@ -31,4 +31,3 @@ /*global jasmine, __karma__, window*/

System.config(
{
System.config({
map: {

@@ -77,20 +76,74 @@ 'rxjs': 'node_modules/rxjs',

});
//
// Promise.all([
// // System.import('@angular/core/testing'),
// System.import('@angular/platform-browser-dynamic/testing')
// ]).then(function (providers) {
// var testing = providers[0];
// var testingBrowser = providers[1];
//
// testing.setBaseTestProviders(testingBrowser.TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS,
// testingBrowser.TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS);
//
// }).then(function() {
// // Finally, load all spec files.
// // This will run the tests directly.
// return Promise.all(
// allSpecFiles.map(function (moduleName) {
// return System.import(moduleName);
// }));
// }).then(__karma__.start, __karma__.error);
Promise.all([
System.import('@angular/core/testing'),
System.import('@angular/platform-browser-dynamic/testing')
]).then(function (providers) {
var testing = providers[0];
var testingBrowser = providers[1];
// Tun on full stack traces in errors to help debugging
// Error.stackTraceLimit = Infinity;
//
// jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000;
//
// // // Cancel Karma's synchronous start,
// // // we will call `__karma__.start()` later, once all the specs are loaded.
// __karma__.loaded = function() {};
//
// System.config({
// packages: {
// 'base/dist': {
// defaultExtension: false,
// format: 'cjs',
// map: Object.keys(window.__karma__.files).filter(onlyAppFiles).reduce(createPathRecords, {})
// }
// }
// });
testing.setBaseTestProviders(testingBrowser.TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS,
testingBrowser.TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS);
System.import('@angular/core/testing')
// .then(function(browser_adapter) { browser_adapter.BrowserDomAdapter.makeCurrent(); })
.then(function() { return Promise.all(resolveTestFiles()); })
.then(function() { __karma__.start(); }, function(error) { __karma__.error(error.stack || error); });
}).then(function() {
// Finally, load all spec files.
// This will run the tests directly.
return Promise.all(
allSpecFiles.map(function (moduleName) {
// function createPathRecords(pathsMapping, appPath) {
// // creates local module name mapping to global path with karma's fingerprint in path, e.g.:
// // './vg-player/vg-player':
// // '/base/dist/vg-player/vg-player.js?f4523daf879cfb7310ef6242682ccf10b2041b3e'
// var pathParts = appPath.split('/');
// var moduleName = './' + pathParts.slice(Math.max(pathParts.length - 2, 1)).join('/');
// moduleName = moduleName.replace(/\.js$/, '');
// pathsMapping[moduleName] = appPath + '?' + window.__karma__.files[appPath];
// return pathsMapping;
// }
//
// function onlyAppFiles(filePath) {
// return /\/base\/dist\/(?!.*\.spec\.js$).*\.js$/.test(filePath);
// }
function onlySpecFiles(path) {
return /\.spec\.js$/.test(path);
}
function resolveTestFiles() {
return Object.keys(window.__karma__.files) // All files served by Karma.
.filter(onlySpecFiles)
.filter(isBuiltFile)
.map(function(moduleName) {
// loads all spec files via their global module names (e.g.
// 'base/dist/vg-player/vg-player.spec')
return System.import(moduleName);
}));
}).then(__karma__.start, __karma__.error);
});
}

74

karma.conf.js

@@ -1,72 +0,2 @@

const isDebug = process.env.DEBUG || false;
// const isTravis = process.env.TRAVIS || false;
const browsers = isDebug ? ['Chrome'] : ['PhantomJS'];
const isBddMode = process.argv.filter(s => s.includes('bdd'));
const singleRun = isBddMode.length ? false : true;
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jasmine'],
files: [
// Polyfills.
'node_modules/es6-shim/es6-shim.js',
'node_modules/reflect-metadata/Reflect.js',
// System.js for module loading
'node_modules/systemjs/dist/system-polyfills.js',
'node_modules/systemjs/dist/system.src.js',
// Zone.js dependencies
'node_modules/zone.js/dist/zone.js',
'node_modules/zone.js/dist/jasmine-patch.js',
'node_modules/zone.js/dist/async-test.js',
'node_modules/zone.js/dist/fake-async-test.js',
// RxJs.
{ pattern: 'node_modules/rxjs/**/*.js', included: false, watched: false },
{ pattern: 'node_modules/rxjs/**/*.js.map', included: false, watched: false },
{pattern: 'karma-test-shim.js', included: true, watched: true},
// paths loaded via module imports
// Angular itself
{pattern: 'node_modules/@angular/**/*.js', included: false, watched: true},
{pattern: 'node_modules/@angular/**/*.js.map', included: false, watched: true},
// Our built application code
{pattern: 'src/**/*.js', included: false, watched: true},
// paths to support debugging with source maps in dev tools
{pattern: 'src/**/*.ts', included: false, watched: false}
// if we swtich to sourcemap files
// {pattern: 'src/**/*.js.map', included: false, watched: false},
// {pattern: 'built/test/matchers.js', included: true, watched: true},
],
// proxied base paths
// proxies: {
// required for component assests fetched by Angular's compiler
// "/tests/": "/base/tests/built/"
// },
plugins : [
'karma-jasmine',
'karma-mocha-reporter',
'karma-chrome-launcher',
'karma-phantomjs-launcher'
],
reporters: ['mocha'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: browsers,
singleRun: singleRun
});
};
// Look in ./config for karma.conf.js
module.exports = require('./config/karma.conf.js');
{
"name": "angular2-infinite-scroll",
"version": "0.2.1",
"version": "0.2.2",
"description": "An infinite scroll directive for angular2",

@@ -9,16 +9,17 @@ "main": "angular2-infinite-scroll.js",

"scripts": {
"preversion": "npm run clean && npm run prepublish && npm test",
"version": "git add ./",
"build:test": "tsc --project ./src",
"clean": "rimraf src/*.js && rimraf src/*.d.ts && rimraf ./*scroll.js && rimraf ./*scroll.d.ts",
"clean:node": "rimraf node_modules",
"dev": "npm run watch & karma start karma.conf.js --bdd",
"lite": "lite-server",
"postversion": "git push origin master",
"start": "npm run build && npm run lite",
"lite": "lite-server",
"prepublish": "tsc && node make.js",
"pretest": "npm run clean && npm run build:test",
"preversion": "npm run clean && npm run prepublish && npm test",
"setup": "npm run typings -- install",
"clean": "rimraf src/*.js && rimraf src/*.d.ts && rimraf ./*scroll.js && rimraf ./*scroll.d.ts",
"build:test": "tsc --project ./src",
"watch": "tsc --project ./src --watch",
"pretest": "npm run clean && npm run build:test",
"start": "npm run build && npm run lite",
"test": "karma start karma.conf.js",
"dev": "npm run watch & karma start karma.conf.js --bdd",
"typings": "typings"
"typings": "typings",
"version": "git add ./",
"watch": "tsc --project ./src --watch"
},

@@ -33,7 +34,7 @@ "keywords": [

"devDependencies": {
"@angular/common": "2.0.0-rc.5",
"@angular/compiler": "2.0.0-rc.5",
"@angular/core": "2.0.0-rc.5",
"@angular/platform-browser": "2.0.0-rc.5",
"@angular/platform-browser-dynamic": "2.0.0-rc.5",
"@angular/common": "2.0.0",
"@angular/compiler": "2.0.0",
"@angular/core": "2.0.0",
"@angular/platform-browser": "2.0.0",
"@angular/platform-browser-dynamic": "2.0.0",
"@types/core-js": "^0.9.32",

@@ -43,4 +44,6 @@ "@types/jasmine": "^2.2.33",

"autodts": "0.0.6",
"awesome-typescript-loader": "^2.2.4",
"es6-promise": "^3.0.2",
"es6-shim": "^0.33.3",
"istanbul-instrumenter-loader": "^1.0.0",
"jasmine-core": "2.4.1",

@@ -53,2 +56,4 @@ "karma": "^0.13.22",

"karma-phantomjs-launcher": "1.0.0",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^1.8.0",
"lite-server": "2.2.0",

@@ -59,9 +64,14 @@ "path": "^0.12.7",

"rimraf": "2.5.2",
"rxjs": "5.0.0-beta.6",
"rxjs": "5.0.0-beta.12",
"source-map-loader": "^0.1.5",
"systemjs": "0.19.31",
"systemjs-builder": "^0.15.16",
"typescript": "^2.0.0-beta",
"typings": "1.2.0",
"zone.js": "0.6.12"
"ts-helpers": "^1.1.1",
"tslint": "^3.15.1",
"tslint-loader": "^2.1.5",
"typescript": "2.0.0",
"webpack": "2.1.0-beta.21",
"zone.js": "^0.6.17",
"typings": "1.2.0"
}
}

@@ -7,3 +7,3 @@ [![Build Status](https://travis-ci.org/orizens/angular2-infinite-scroll.svg?branch=master)](https://travis-ci.org/orizens/angular2-infinite-scroll)

## Angular 2 Support
Updated to support Angular 2 - **RC.5**
Updated to support Angular 2 - **Final - 2.0.0**

@@ -33,3 +33,4 @@ ## Installation

## DEMO
[See a live example at this plunkr](https://plnkr.co/edit/DrEDetYnZkFxR7OWWrxS?p=preview)
[Default Scroll By Window - plunkr](https://plnkr.co/edit/DrEDetYnZkFxR7OWWrxS?p=preview)
[Scroll On a "Modal" - plunkr](https://plnkr.co/edit/QnQOwE9SEapwJCCFII3L?p=preview)

@@ -36,0 +37,0 @@ ## Usage

@@ -6,3 +6,4 @@ "use strict";

describe('Infinite Scroll Directive', function () {
var zone = new core_1.NgZone({ enableLongStackTrace: false });
// const zone = new NgZone({ enableLongStackTrace: false });
var zone = jasmine.createSpyObj('zone', ['run']);
var createMockElement = function () {

@@ -76,2 +77,2 @@ var mockedElement = new core_1.ElementRef(document.createElement('div'));

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5maW5pdGUtc2Nyb2xsLnNwZWMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmZpbml0ZS1zY3JvbGwuc3BlYy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBSUEsZ0NBQStCLG1CQUFtQixDQUFDLENBQUE7QUFDbkQsOEJBQTZCLGlCQUFpQixDQUFDLENBQUE7QUFFL0MscUJBQWdFLGVBQWUsQ0FBQyxDQUFBO0FBRWhGLFFBQVEsQ0FBQywyQkFBMkIsRUFBRTtJQUNwQyxJQUFNLElBQUksR0FBRyxJQUFJLGFBQU0sQ0FBQyxFQUFFLG9CQUFvQixFQUFFLEtBQUssRUFBRSxDQUFDLENBQUM7SUFDekQsSUFBTSxpQkFBaUIsR0FBRztRQUN4QixJQUFNLGFBQWEsR0FBZSxJQUFJLGlCQUFVLENBQUMsUUFBUSxDQUFDLGFBQWEsQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDO1FBQ2hGLE1BQU0sQ0FBQyxhQUFhLENBQUM7SUFDdkIsQ0FBQyxDQU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IGRpcmVjdGl2ZS5uZ09uQ2hhbmdlcyhjaGFuZ2VzKTtcbiAgICBjb25zdCBleHBlY3RlZCA9IGZhbHNlO1xuICAgIGNvbnN0IGFjdHVhbCA9IGRpcmVjdGl2ZS5zY3JvbGxlci5zY3JvbGxFbmFibGVkO1xuICAgIGV4cGVjdChhY3R1YWwpLnRvQmUoZXhwZWN0ZWQpO1xuICB9KVxufSlcbiJdfQ==

@@ -15,5 +15,5 @@ {

"types": [
"../node_modules/@types/core-js",
"../node_modules/@types/jasmine",
"../node_modules/@types/node"
"core-js",
"jasmine",
"node"
]

@@ -20,0 +20,0 @@ },

{
"compilerOptions": {
"noEmitOnError": true,
"noImplicitAny": true,

@@ -21,3 +20,4 @@ "module": "commonjs",

"exclude": [
"node_modules"
"node_modules",
"bundles"
],

@@ -36,2 +36,2 @@ "awesomeTypescriptLoaderOptions": {

]
}
}

Sorry, the diff of this file is not supported yet

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