Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@2sic.com/dnn-sxc-angular
Advanced tools
Connector for angular 4.3+ (git | web) if you're using
This is a helper system which
It uses observables to make it happen, thereby avoiding timing / async problems common in this scenario.
It's published on npm, so the most common way is to get it using npm install:
npm install -d "@2sic.com/dnn-sxc-angular"
The following instructions help you get started, but it's best to also look at a real app using this - like the Angular Directory App.
Make sure your application uses the Http Interceptor by adding the important providers to app.module.ts, so you'll need to add:
import { DnnSxcModule } from '@2sic.com/dnn-sxc-angular'
and this module to the @NgModule - here's an example from the Angular Directory App, yours will look a bit different.
@NgModule({
declarations: [
AppComponent
],
imports: [
DnnSxcModule, // DnnSxc module ensures all connectors are available
HttpClientModule, // important - this changed in Angular 4.3
BrowserModule, // the following are just examples
FormsModule,
DirectoryModule,
RouterModule.forRoot(appRoutes)
],
bootstrap: [AppComponent]
})
export class AppModule { }
Now, make sure initializations happen, by changing your app.component.ts from
export class AppComponent {...}
to
export class AppComponent extends DnnAppComponent {
constructor(
element: ElementRef,
context: Context,
) {
super(element, context);
}
}
You can compare it with the example from the Angular Directory App. That's it!
This will now work automatically, because all headers etc. are now automatically added by the system.
This package contains a Data
object, which provides 3 observable streams
content$
query$
api$
To use them, best check out the demo app or simply work through TypeScript intelisense - we documented all the commands.
sxc
InstanceThere is a Context
object which provides these properties as streams (observables). Just inject Context
and access it from there. Note that you almost never need this, as the HttpClient is already configured and ready to go, including the headers it needs.
moduleId$
tabId$
sxc$
FAQs
Connect DNN / DotNetNuke and 2sxc to Angular 6-11 and probably newer as well
The npm package @2sic.com/dnn-sxc-angular receives a total of 48 weekly downloads. As such, @2sic.com/dnn-sxc-angular popularity was classified as not popular.
We found that @2sic.com/dnn-sxc-angular demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.