angular2-meteor
Advanced tools
Comparing version 0.7.0 to 0.7.1
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core')) : | ||
typeof define === 'function' && define.amd ? define(['exports', '@angular/core'], factory) : | ||
(factory((global.ng = global.ng || {}, global.ng.meteor = global.ng.meteor || {}),global.ng.core)); | ||
}(this, (function (exports,_angular_core) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('underscore'), require('@angular/core')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'underscore', '@angular/core'], factory) : | ||
(factory((global.ng = global.ng || {}, global.ng.meteor = global.ng.meteor || {}),global.underscore,global.ng.core)); | ||
}(this, (function (exports,_,_angular_core) { 'use strict'; | ||
@@ -558,3 +558,4 @@ var subscribeEvents = ['onReady', 'onError', 'onStop']; | ||
if (autoBind === void 0) { autoBind = true; } | ||
var hAutorun = Tracker.autorun(func); | ||
var pargs = this._prepArgs([func, autoBind]).pargs; | ||
var hAutorun = Tracker.autorun(pargs[0]); | ||
this._hAutoruns.push(hAutorun); | ||
@@ -666,3 +667,5 @@ return hAutorun; | ||
/// <reference path="../typings/index.d.ts" /> | ||
/// <reference types="zone.js" /> | ||
/// <reference types="meteor-typings" /> | ||
/// <reference types="@types/underscore" /> | ||
@@ -669,0 +672,0 @@ exports.ZoneRunScheduler = ZoneRunScheduler; |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('angular2-meteor-polyfills'), require('@angular/core')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'angular2-meteor-polyfills', '@angular/core'], factory) : | ||
(factory((global.ng = global.ng || {}, global.ng.meteor = global.ng.meteor || {}),global.ng.meteor.polyfills,global.ng.core)); | ||
}(this, (function (exports,angular2MeteorPolyfills,_angular_core) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('angular2-meteor-polyfills'), require('underscore'), require('@angular/core')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'angular2-meteor-polyfills', 'underscore', '@angular/core'], factory) : | ||
(factory((global.ng = global.ng || {}, global.ng.meteor = global.ng.meteor || {}),global.ng.meteor.polyfills,global.underscore,global.ng.core)); | ||
}(this, (function (exports,angular2MeteorPolyfills,_,_angular_core) { 'use strict'; | ||
@@ -558,3 +558,4 @@ var subscribeEvents = ['onReady', 'onError', 'onStop']; | ||
if (autoBind === void 0) { autoBind = true; } | ||
var hAutorun = Tracker.autorun(func); | ||
var pargs = this._prepArgs([func, autoBind]).pargs; | ||
var hAutorun = Tracker.autorun(pargs[0]); | ||
this._hAutoruns.push(hAutorun); | ||
@@ -666,3 +667,5 @@ return hAutorun; | ||
/// <reference path="../typings/index.d.ts" /> | ||
/// <reference types="zone.js" /> | ||
/// <reference types="meteor-typings" /> | ||
/// <reference types="@types/underscore" /> | ||
@@ -669,0 +672,0 @@ exports.ZoneRunScheduler = ZoneRunScheduler; |
@@ -1,2 +0,1 @@ | ||
/// <reference path="../typings/index.d.ts" /> | ||
export * from './zone_utils'; | ||
@@ -3,0 +2,0 @@ export * from './mongo_cursor_observer'; |
@@ -1,2 +0,4 @@ | ||
/// <reference path="../typings/index.d.ts" /> | ||
/// <reference types="zone.js" /> | ||
/// <reference types="meteor-typings" /> | ||
/// <reference types="@types/underscore" /> | ||
export * from './zone_utils'; | ||
@@ -3,0 +5,0 @@ export * from './mongo_cursor_observer'; |
'use strict'; | ||
import * as _ from 'underscore'; | ||
import { isMeteorCallbacks, isCallbacksObject, gZone, g, noop } from './utils'; | ||
@@ -29,3 +30,4 @@ import { wrapCallbackInZone } from './zone_utils'; | ||
if (autoBind === void 0) { autoBind = true; } | ||
var hAutorun = Tracker.autorun(func); | ||
var pargs = this._prepArgs([func, autoBind]).pargs; | ||
var hAutorun = Tracker.autorun(pargs[0]); | ||
this._hAutoruns.push(hAutorun); | ||
@@ -32,0 +34,0 @@ return hAutorun; |
'use strict'; | ||
import * as _ from 'underscore'; | ||
export var subscribeEvents = ['onReady', 'onError', 'onStop']; | ||
@@ -3,0 +4,0 @@ export function isMeteorCallbacks(callbacks) { |
@@ -0,1 +1,2 @@ | ||
/// <reference types="zone.js" /> | ||
/** | ||
@@ -2,0 +3,0 @@ * Contains a set of methods to schedule Zone runs. |
'use strict'; | ||
import * as _ from 'underscore'; | ||
import { gZone, check, noop } from './utils'; | ||
@@ -3,0 +4,0 @@ export var ZoneRunScheduler = (function () { |
{ | ||
"name": "angular2-meteor", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"keywords": [ | ||
@@ -26,3 +26,3 @@ "angular", | ||
"typings": "typings i", | ||
"prebuild": "npm run typings && npm run lint", | ||
"prebuild": "npm run lint", | ||
"build-only": "tsc || echo not ok", | ||
@@ -33,4 +33,4 @@ "build": "npm run build-only && npm run bundle", | ||
"pretest": "cd tests && npm install", | ||
"test:unit": "cd tests && meteor test --once --driver-package=dispatch:mocha-phantomjs", | ||
"test:app": "cd tests && meteor test --full-app --once --driver-package=dispatch:mocha-phantomjs", | ||
"test:unit": "cd tests && meteor test --port 3005 --once --driver-package=dispatch:mocha-phantomjs", | ||
"test:app": "cd tests && meteor test --port 3005 --full-app --once --driver-package=dispatch:mocha-phantomjs", | ||
"test": "npm run test:unit && npm run test:app", | ||
@@ -50,5 +50,7 @@ "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", | ||
"@angular/core": "^2.0.0", | ||
"@types/underscore": "^1.7.33", | ||
"angular2-meteor-polyfills": "^0.1.1", | ||
"conventional-changelog-cli": "^1.2.0", | ||
"es6-shim": "^0.35.0", | ||
"meteor-typings": "^1.3.0", | ||
"reflect-metadata": "^0.1.2", | ||
@@ -65,4 +67,4 @@ "rollup": "^0.35.9", | ||
"dependencies": { | ||
"lodash": "^4.14.0" | ||
"underscore": "^1.8.3" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# Angular2-Meteor [![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][npm-url] [![Build Status](https://travis-ci.org/Urigo/angular2-meteor.svg?branch=master)](https://travis-ci.org/Urigo/angular2-meteor) [![Join the chat at https://gitter.im/Reactive-Extensions/RxJS](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Urigo/angular-meteor) | ||
# Angular2-Meteor [![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][npm-url] [![Build Status](https://travis-ci.org/Urigo/angular-meteor.svg?branch=master)](https://travis-ci.org/Urigo/angular-meteor) [![Join the chat at https://gitter.im/Reactive-Extensions/RxJS](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Urigo/angular-meteor) | ||
Angular2 + Meteor integration. | ||
@@ -56,3 +56,3 @@ | ||
There are two ways to add them: | ||
- Add `import 'angular2-meteor-polyfills'` at the top of every file that imports Angular 2; | ||
- Add `import 'angular2-meteor-polyfills'` at the top of ts-file that is loaded first; | ||
- Add `barbatus:angular2-polyfills` package. Since it's a package, it's loaded by Meteor before any user code. | ||
@@ -137,3 +137,3 @@ | ||
``` | ||
typings install github:meteor-typings/angular2-compilers#c2ca3d3036b08f04a22b98ed16ff17377499e1e7 --global | ||
typings install github:meteor-typings/angular2-compilers --global | ||
``` | ||
@@ -166,4 +166,21 @@ | ||
To add declaration files of any global 3-party JavaScript library including Meteor itself (so called ambient typings), we recommend to use the [`typings`](https://github.com/typings/typings) utility, which is designed to search across and install typings from `DefinitelyTyped` and own typings registries. | ||
There are to two major ways to install declaration files: | ||
- by installing NPM packages; | ||
- by using `typings` utility. | ||
A lot of NPM packages already contain typings internally, if not, | ||
you can find almost all typings in the DefinitelyTyped repository. | ||
For example, to install `jquery` typings from there, | ||
run `npm install @types/jquery`, and then add a reference | ||
at the top of your main ts-file: `/// <reference types="@types/jquery" />`. | ||
As for Meteor typings, there is a special NPM that contains only its typings as well: | ||
`meteor-typings`. | ||
Install `meteor-typings` package and add the reference as described above. | ||
Another one way to add typings of 3-party JavaScript libraries is | ||
to use the [`typings`](https://github.com/typings/typings) utility. | ||
This utility is designed to search across and install typings not only from `DefinitelyTyped` but | ||
also own typings registries, which may be helpful in many cases. | ||
For example, to install Meteor declaration file run: | ||
@@ -173,3 +190,3 @@ ```` | ||
typings install registry:env/meteor --global | ||
typings install env~meteor --global | ||
```` | ||
@@ -179,5 +196,2 @@ | ||
Please note that you don't need to worry about Angular 2's typings and typings of the related NPMs! | ||
TypeScript finds and checkes them in NPMs automatically. | ||
## Babel | ||
@@ -184,0 +198,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
231
98158
17
26
2215
+ Addedunderscore@^1.8.3
+ Addedunderscore@1.13.7(transitive)
- Removedlodash@^4.14.0
- Removedlodash@4.17.21(transitive)