Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
@universis/common
Advanced tools
Readme
Universis is a coordinated effort by Greek academic institutions to build a Student Information System as an open source platform. The target is to serve our common needs to support academic and administrative processes.
@universis/common package contains common components and services for building client applications for Universis project.
npm i @universis/common
Import @universis/common
as submodule in any angular cli project by replacing newProjectRoot
as already configured in your angular.json
git submodule add https://gitlab.com/universis/common.git <newProjectRoot>/common
e.g.
git submodule add https://gitlab.com/universis/common.git projects/common
Add the following entries to tsconfig.app.json#compilerOptions.paths
:
{
"compilerOptions": {
"paths": {
"@universis/common/routing": [
"<newProjectRoot>/common/routing/src/public_api"
],
"@universis/common/testing": [
"<newProjectRoot>/common/testing/src/public_api"
],
"@universis/common": [
"<newProjectRoot>/common/src/public_api"
]
...
}
}
}
If you want to include @universis/common
as an angular cli project, include the following section in angular.json
under projects
:
"projects": {
"common": {
"root": "<newProjectRoot>/common",
"sourceRoot": "<newProjectRoot>/common/src",
"projectType": "library",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "<newProjectRoot>/common/tsconfig.lib.json",
"project": "<newProjectRoot>/common/ng-package.json"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "<newProjectRoot>/common/src/test.ts",
"polyfills": "<newProjectRoot>/common/src/polyfills.ts",
"tsConfig": "<newProjectRoot>/common/tsconfig.spec.json",
"karmaConfig": "<newProjectRoot>/common/karma.conf.js",
"watch": false,
"codeCoverage": true,
"scripts": []
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"<newProjectRoot>/common/tsconfig.lib.json",
"<newProjectRoot>/common/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
},
...
}
In order to test @universis/common package, we use Karma as our test-runner and Jasmine as our
testing framework. We also use Puppeteer, a high-level API to manipulate the dev-tools of any
chromium based browser. You should keep in mind that puppeteer is a peer dependency of the whole project
and should be placed in the parent directory of the repository universis
.
To run all of our tests simply run
ng test common
This will compile the common package and run our test suite in a ChromeHeadless
browser with no sandbox.
You can also have a visual representation of the tests running by adding
ChromeNoSandbox: {
base: 'Chrome',
flags: [
'--no-sandbox',
'--enable-logging=stderr',
'--disable-web-security',
'--disable-gpu',
'--no-proxy-server'
]
},
under the customLaunchers
in packages/common/karma.conf.js
FAQs
Universis - common directives and services
The npm package @universis/common receives a total of 60 weekly downloads. As such, @universis/common popularity was classified as not popular.
We found that @universis/common demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Research
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.