Socket
Socket
Sign inDemoInstall

angular-auth-oidc-client

Package Overview
Dependencies
9
Maintainers
2
Versions
176
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 17.1.0 to 18.0.0

3

lib/auth.module.d.ts

@@ -5,8 +5,7 @@ import { ModuleWithProviders } from '@angular/core';

import * as i1 from "@angular/common";
import * as i2 from "@angular/common/http";
export declare class AuthModule {
static forRoot(passedConfig: PassedInitialConfig): ModuleWithProviders<AuthModule>;
static ɵfac: i0.ɵɵFactoryDeclaration<AuthModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<AuthModule, never, [typeof i1.CommonModule, typeof i2.HttpClientModule], never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<AuthModule, never, [typeof i1.CommonModule], never>;
static ɵinj: i0.ɵɵInjectorDeclaration<AuthModule>;
}

@@ -39,3 +39,3 @@ {

"license": "MIT",
"version": "17.1.0",
"version": "18.0.0",
"description": "Angular Lib for OpenID Connect & OAuth2",

@@ -42,0 +42,0 @@ "schematics": "./schematics/collection.json",

@@ -188,4 +188,5 @@ # Angular Lib for OpenID Connect & OAuth2

Current Version is Version 17.x
Current Version is Version 18.x
- [Info about Version 17](https://github.com/damienbod/angular-auth-oidc-client/tree/version-17)
- [Info about Version 16](https://github.com/damienbod/angular-auth-oidc-client/tree/version-16)

@@ -192,0 +193,0 @@ - [Info about Version 15](https://github.com/damienbod/angular-auth-oidc-client/tree/version-15)

@@ -8,3 +8,3 @@ "use strict";

name: 'angular-auth-oidc-client',
version: '17.1.0',
version: '18.0.0',
},

@@ -11,0 +11,0 @@ ];

@@ -8,3 +8,3 @@ "use strict";

return (host, context) => {
const project = (0, angular_utils_1.getProject)(host);
const [, project] = (0, angular_utils_1.getProject)(host);
const { moduleFileName, moduleName } = options.moduleInfo;

@@ -11,0 +11,0 @@ const modulesToImport = [

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.addStandaloneConfigsToProviders = void 0;
const standalone_1 = require("@schematics/angular/private/standalone");
const ast_utils_1 = require("@schematics/angular/utility/ast-utils");
const change_1 = require("@schematics/angular/utility/change");
const ts = require("typescript");
const schematics_1 = require("@angular-devkit/schematics");
const utility_1 = require("@schematics/angular/utility");
const angular_utils_1 = require("../../utils/angular-utils");
function addStandaloneConfigsToProviders(options) {
return (host, context) => {
const project = (0, angular_utils_1.getProject)(host);
const { fileName, configName } = options.standaloneInfo;
const standaloneConfigs = [
{
target: `${project.sourceRoot}/main.ts`,
configName,
configPath: `./auth/${fileName}`,
},
];
standaloneConfigs.forEach(({ target, configName, configPath }) => {
addProvider(host, context, configName, configPath, target);
});
const [projectName] = (0, angular_utils_1.getProject)(host);
const { fileName } = options.standaloneInfo;
context.logger.info(`✅️ All imports done, please add the 'provideRouter()' as well if you don't have it provided yet.`);
return host;
return (0, schematics_1.chain)([
(0, utility_1.addRootProvider)(projectName, ({ code, external }) => {
external('authConfig', `./auth/${fileName}`);
return code `${external('provideAuth', 'angular-auth-oidc-client')}(authConfig)`;
}),
]);
};
}
exports.addStandaloneConfigsToProviders = addStandaloneConfigsToProviders;
function addProvider(host, context, configName, configPath, target) {
const sourcefile = (0, angular_utils_1.readIntoSourceFile)(host, target);
const providerFn = 'provideAuth';
if ((0, standalone_1.callsProvidersFunction)(host, sourcefile.fileName, providerFn)) {
// exit because the store config is already provided
return host;
}
const patchedConfigFile = (0, standalone_1.addFunctionalProvidersToStandaloneBootstrap)(host, sourcefile.fileName, providerFn, 'angular-auth-oidc-client', [ts.factory.createIdentifier('authConfig')]);
const configFileContent = host.read(patchedConfigFile);
const source = ts.createSourceFile(patchedConfigFile, (configFileContent === null || configFileContent === void 0 ? void 0 : configFileContent.toString('utf-8')) || '', ts.ScriptTarget.Latest, true);
const change = (0, ast_utils_1.insertImport)(source, // Angular uses the TS 5.1 compiler internally for schematics?
patchedConfigFile, configName, configPath);
const recorder = host.beginUpdate(patchedConfigFile);
if (change instanceof change_1.InsertChange) {
recorder.insertLeft(change.pos, change.toAdd);
}
host.commitUpdate(recorder);
return host;
}
//# sourceMappingURL=add-standalone-import.js.map

@@ -12,3 +12,3 @@ "use strict";

}
const project = (0, angular_utils_1.getProject)(host);
const [, project] = (0, angular_utils_1.getProject)(host);
const options = (_b = (_a = project.architect) === null || _a === void 0 ? void 0 : _a.build) === null || _b === void 0 ? void 0 : _b.options;

@@ -15,0 +15,0 @@ const srcRoot = project.sourceRoot;

@@ -11,3 +11,3 @@ "use strict";

return (host, context) => {
const project = (0, angular_utils_1.getProject)(host);
const [, project] = (0, angular_utils_1.getProject)(host);
const { moduleFileName, filesFolder } = options.moduleInfo;

@@ -14,0 +14,0 @@ const filePath = `${project.sourceRoot}/app/auth/${moduleFileName}.ts`;

@@ -13,3 +13,3 @@ "use strict";

}
const project = (0, angular_utils_1.getProject)(host);
const [, project] = (0, angular_utils_1.getProject)(host);
const templateSource = (0, schematics_1.apply)((0, schematics_1.url)(`./files/silent-renew`), [(0, schematics_1.move)((0, core_1.normalize)(`${project.sourceRoot}`))]);

@@ -16,0 +16,0 @@ return (0, schematics_1.chain)([(0, schematics_1.mergeWith)(templateSource)]);

@@ -11,3 +11,3 @@ "use strict";

return (host, context) => {
const project = (0, angular_utils_1.getProject)(host);
const [, project] = (0, angular_utils_1.getProject)(host);
const { fileName, filesFolder } = options.standaloneInfo;

@@ -14,0 +14,0 @@ const filePath = `${project.sourceRoot}/app/auth/${fileName}.ts`;

@@ -8,3 +8,3 @@ import { Tree } from '@angular-devkit/schematics';

export declare function updateProjectInAngularJson(tree: Tree, content: WorkspaceProject, projectName?: string): void;
export declare function getProject(tree: Tree, projectName?: string): WorkspaceProject;
export declare function getProject(tree: Tree, projectName?: string): [string, WorkspaceProject];
export declare function readIntoSourceFile(host: Tree, fileName: string): ts.SourceFile;

@@ -11,0 +11,0 @@ export declare function getDefaultProjectName(tree: Tree): string;

@@ -38,6 +38,6 @@ "use strict";

if (!!projectName) {
return workspace.projects[projectName] || null;
return [defaultProject, workspace.projects[projectName] || null];
}
else if (!!defaultProject) {
return workspace.projects[defaultProject];
return [defaultProject, workspace.projects[defaultProject]];
}

@@ -72,4 +72,4 @@ throw new schematics_1.SchematicsException(`Could not get project. Searched for '${projectName}',

function isStandaloneSchematic(host, options) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
var _a;
const workspace = yield (0, workspace_1.getWorkspace)(host);

@@ -76,0 +76,0 @@ const project = getProjectFromWorkspace(workspace, getDefaultProjectName(host));

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

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

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

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc