single-spa-angular
Advanced tools
Comparing version 8.0.1 to 8.1.0
import { AppProps } from 'single-spa'; | ||
import { ApplicationRef, NgModuleRef } from '@angular/core'; | ||
export declare type DomElementGetter = (props: any) => HTMLElement; | ||
export type DomElementGetter = (props: any) => HTMLElement; | ||
export interface BaseSingleSpaAngularOptions { | ||
@@ -5,0 +5,0 @@ template: string; |
{ | ||
"$schema": "../node_modules/ng-packagr/ng-package.schema.json", | ||
"name": "single-spa-angular", | ||
"version": "8.0.1", | ||
"version": "8.1.0", | ||
"description": "Helpers for building single-spa applications which use Angular 2", | ||
@@ -27,3 +27,3 @@ "schematics": "./schematics/schematics.json", | ||
"peerDependencies": { | ||
"@angular/core": ">=15.0.0", | ||
"@angular/core": ">=15.1.0", | ||
"json5": "*", | ||
@@ -30,0 +30,0 @@ "single-spa": ">=4.0.0", |
@@ -15,8 +15,15 @@ "use strict"; | ||
return (tree, context) => tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
var e_1, _a; | ||
var _a, e_1, _b, _c; | ||
try { | ||
for (var dependencies_2 = tslib_1.__asyncValues(dependencies), dependencies_2_1; dependencies_2_1 = yield dependencies_2.next(), !dependencies_2_1.done;) { | ||
const dependency = dependencies_2_1.value; | ||
(0, dependencies_1.addPackageJsonDependency)(tree, dependency); | ||
context.logger.info(`Added '${dependency.name}' as a dependency`); | ||
for (var _d = true, dependencies_2 = tslib_1.__asyncValues(dependencies), dependencies_2_1; dependencies_2_1 = yield dependencies_2.next(), _a = dependencies_2_1.done, !_a;) { | ||
_c = dependencies_2_1.value; | ||
_d = false; | ||
try { | ||
const dependency = _c; | ||
(0, dependencies_1.addPackageJsonDependency)(tree, dependency); | ||
context.logger.info(`Added '${dependency.name}' as a dependency`); | ||
} | ||
finally { | ||
_d = true; | ||
} | ||
} | ||
@@ -27,3 +34,3 @@ } | ||
try { | ||
if (dependencies_2_1 && !dependencies_2_1.done && (_a = dependencies_2.return)) yield _a.call(dependencies_2); | ||
if (!_d && !_a && (_b = dependencies_2.return)) yield _b.call(dependencies_2); | ||
} | ||
@@ -30,0 +37,0 @@ finally { if (e_1) throw e_1.error; } |
@@ -0,1 +1,2 @@ | ||
import { Tree } from '@angular-devkit/schematics'; | ||
import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; | ||
@@ -5,1 +6,2 @@ export declare const VERSION: string; | ||
export declare function createTestRunner(): SchematicTestRunner; | ||
export declare function getFileContent(tree: Tree, path: string): string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createTestRunner = exports.createWorkspace = exports.VERSION = void 0; | ||
exports.getFileContent = exports.createTestRunner = exports.createWorkspace = exports.VERSION = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -11,8 +11,4 @@ const path_1 = require("path"); | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
appTree = yield testRunner | ||
.runExternalSchematicAsync('@schematics/angular', 'workspace', workspaceOptions) | ||
.toPromise(); | ||
appTree = yield testRunner | ||
.runExternalSchematicAsync('@schematics/angular', 'application', appOptions, appTree) | ||
.toPromise(); | ||
appTree = yield testRunner.runExternalSchematic('@schematics/angular', 'workspace', workspaceOptions); | ||
appTree = yield testRunner.runExternalSchematic('@schematics/angular', 'application', appOptions, appTree); | ||
return appTree; | ||
@@ -26,2 +22,10 @@ }); | ||
exports.createTestRunner = createTestRunner; | ||
function getFileContent(tree, path) { | ||
const fileEntry = tree.get(path); | ||
if (!fileEntry) { | ||
throw new Error(`The file (${path}) does not exist.`); | ||
} | ||
return fileEntry.content.toString(); | ||
} | ||
exports.getFileContent = getFileContent; | ||
//# sourceMappingURL=utils.js.map |
import { StaticProvider } from '@angular/core'; | ||
import { ɵBrowserPlatformLocation, LocationChangeListener } from '@angular/common'; | ||
import { BrowserPlatformLocation, LocationChangeListener } from '@angular/common'; | ||
import * as i0 from "@angular/core"; | ||
export declare class SingleSpaPlatformLocation extends ɵBrowserPlatformLocation { | ||
export declare class SingleSpaPlatformLocation extends BrowserPlatformLocation { | ||
private skipNextPopState; | ||
@@ -6,0 +6,0 @@ private readonly source; |
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
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
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
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
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
Sorry, the diff of this file is not supported yet
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
2356
250695