@ -6,11 +6,11 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
const {set, cd, sed} = require('shelljs');
|
||||
const {set, cd, sed, rm} = require('shelljs');
|
||||
const path = require('path');
|
||||
const log = console.log;
|
||||
|
||||
log('===== about to run the postinstall.js script =====');
|
||||
log('===== about to run the postinstall-patches.js script =====');
|
||||
// fail on first error
|
||||
set('-e');
|
||||
// print commands as being executed
|
||||
@ -18,12 +18,18 @@ set('-v');
|
||||
// jump to project root
|
||||
cd(path.join(__dirname, '../'));
|
||||
|
||||
/* EXAMPLE PATCH:
|
||||
// https://github.com/ReactiveX/rxjs/pull/3302
|
||||
// make node_modules/rxjs compilable with Typescript 2.7
|
||||
// remove when we update to rxjs v6
|
||||
log('\n# patch: reactivex/rxjs#3302 make node_modules/rxjs compilable with Typescript 2.7');
|
||||
sed('-i', '(\'response\' in xhr)', '(\'response\' in (xhr as any))',
|
||||
'node_modules/rxjs/src/observable/dom/AjaxObservable.ts');
|
||||
*/
|
||||
|
||||
// workaround to make our closure compiler integration tests in integration/i18n pass
|
||||
// https://github.com/ReactiveX/rxjs/pull/3431
|
||||
rm('-f', 'node_modules/rxjs/_esm2015/internal/umd.js');
|
||||
rm('-f', 'node_modules/rxjs/_esm5/internal/umd.js');
|
||||
|
||||
log('===== finished running the postinstall.js script =====');
|
||||
log('===== finished running the postinstall-patches.js script =====');
|
||||
|
2
tools/public_api_guard/common/common.d.ts
vendored
2
tools/public_api_guard/common/common.d.ts
vendored
@ -203,7 +203,7 @@ export declare class Location {
|
||||
path(includeHash?: boolean): string;
|
||||
prepareExternalUrl(url: string): string;
|
||||
replaceState(path: string, query?: string, state?: any): void;
|
||||
subscribe(onNext: (value: PopStateEvent) => void, onThrow?: ((exception: any) => void) | null, onReturn?: (() => void) | null): ISubscription;
|
||||
subscribe(onNext: (value: PopStateEvent) => void, onThrow?: ((exception: any) => void) | null, onReturn?: (() => void) | null): SubscriptionLike;
|
||||
static joinWithSlash(start: string, end: string): string;
|
||||
static normalizeQueryParams(params: string): string;
|
||||
static stripTrailingSlash(url: string): string;
|
||||
|
2
tools/public_api_guard/common/testing.d.ts
vendored
2
tools/public_api_guard/common/testing.d.ts
vendored
@ -31,5 +31,5 @@ export declare class SpyLocation implements Location {
|
||||
setInitialPath(url: string): void;
|
||||
simulateHashChange(pathname: string): void;
|
||||
simulateUrlPop(pathname: string): void;
|
||||
subscribe(onNext: (value: any) => void, onThrow?: ((error: any) => void) | null, onReturn?: (() => void) | null): ISubscription;
|
||||
subscribe(onNext: (value: any) => void, onThrow?: ((error: any) => void) | null, onReturn?: (() => void) | null): SubscriptionLike;
|
||||
}
|
||||
|
Reference in New Issue
Block a user