Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Bloglovin' CDN client for generated signed urls for use with blovcdn.com.
var lib = {
Cdn: require('blcdn')
};
var cdn = new lib.Cdn({
salt: 'b73ec4880853451fb28dea450abcb520', // Yes, totally fake & made up
hosts: [
"cdn1.blovcdn.com",
"cdn2.blovcdn.com",
"cdn3.blovcdn.com"
]
});
// Generate a signed cdn url in the format 's' for the image.
var cdnUrl = cdn.imageUrl('http://example.com/some-image.jpg', 's');
Tests are run through npm test
. The raw test URLs (URLs that are generated with the PHP lib that we need to conform to) are stored in test/cdn.json
. If this file is modified the test cases must be updated through running ./bin/update-test-cases
. This will generate a random salt and update test/cases.json
with the URLs signed with the new salt. This is necessary for running the tests without knowing the real salt.
To run the tests with the proper salt you need to export the salt as the environment variable CDN_SALT
, like so:
export CDN_SALT="b73ec4880853451fb28dea450abcb520"
The salt is expected to be a hex encoded string.
FAQs
Bloglovin CDN client
We found that blcdn demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.