Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
@xlayers/version-stamp
Advanced tools
With xLayers version-stamp we've started a new initiative of providing a community-driven way of version stamping that will help on a daily base for everybody! The xLayers projects are driven by community contributions. Please send us your Pull Requests and feedback!
Add @xlayers/version-stamp
to your project
ng add @xlayers/version-stamp
The package will make some small changes to the angular.json
Add the following snippet (only the version property) to your environment files.
export const environment = {
production: false,
version: '_BUILD_HASH_',
};
environment
properties. import { environment } from '../environment'
```
```ts
@Component({
selector: 'xlayers-builders-root',
})
export class AppComponent {
version = environment.version;
}
```
5. Now you can stamp your build
```sh
ng run <your-app>:stamp
You can adjust some options to your needs. The available options are:
--version
- You can put in here your own version.Example:
ng run <your-app>:stamp --version="1.0.0"
--files
- You can put in here the list of file patterns containing _BUILD_HASH_
Example:
ng run <your-app>:stamp --files=*.js,*.json
You can also set the configuration in angular.json
"stamp": {
"builder": "@xlayers/version-stamp:stamp",
"options": {
"outputPath": "dist/packages/demo",
"files": ["*.js", "*.json"]
}
}
FAQs
Welcome to xLayers version-stamp
The npm package @xlayers/version-stamp receives a total of 5 weekly downloads. As such, @xlayers/version-stamp popularity was classified as not popular.
We found that @xlayers/version-stamp 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.