ng2-wp-api
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,4 +0,2 @@ | ||
import 'core-js/es6/map'; | ||
import 'core-js/es7/reflect'; | ||
import 'zone.js/dist/zone'; | ||
import 'rxjs/add/operator/map'; | ||
export * from './service/collection.service'; | ||
@@ -10,1 +8,5 @@ export * from './service/model.service'; | ||
export * from './models/user.model'; | ||
/** | ||
* Collection of wordpress services providers. | ||
*/ | ||
export declare const WORDPRESS_PROVIDERS: any[]; |
@@ -5,5 +5,3 @@ "use strict"; | ||
} | ||
require('core-js/es6/map'); | ||
require('core-js/es7/reflect'); | ||
require('zone.js/dist/zone'); | ||
require('rxjs/add/operator/map'); | ||
__export(require('./service/collection.service')); | ||
@@ -13,2 +11,18 @@ __export(require('./service/model.service')); | ||
__export(require('./models/post.model')); | ||
const config_service_1 = require('./service/config.service'); | ||
/** | ||
* Collection of wordpress services providers. | ||
*/ | ||
exports.WORDPRESS_PROVIDERS = [ | ||
/** It's not recommended to inject WpCollection provider on bootstrap, | ||
* because each instant of the service holds its pagination variables, | ||
* and it will make conflict if you use in more than one component at the same time. | ||
* | ||
* I recommended to inject WpModel and WpCollection services in their components, | ||
* and WpConfig in the root component or on bootstrap | ||
*/ | ||
//WpModel, | ||
//WpCollection, | ||
config_service_1.WpConfig | ||
]; | ||
//# sourceMappingURL=ng2-wp-api.js.map |
{ | ||
"name": "ng2-wp-api", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "WordPress API Service for Angular2", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
import { Http, Response } from '@angular/http'; | ||
import { Observable } from "rxjs/Observable"; | ||
import 'rxjs/add/operator/map'; | ||
import { WpConfig } from "./config.service"; | ||
@@ -5,0 +4,0 @@ export declare class WpCollection { |
@@ -13,3 +13,2 @@ "use strict"; | ||
const http_1 = require('@angular/http'); | ||
require('rxjs/add/operator/map'); | ||
const config_service_1 = require("./config.service"); | ||
@@ -16,0 +15,0 @@ const helper_service_1 = require("./helper.service"); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
26930
30
476
1