Security News
How Threat Actors are Abusing GitHub’s File Upload Feature to Host Malware
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
@kaizen/hosted-assets
Advanced tools
Readme
Hosted assets used in Culture Amp's Kaizen Design System.
assetUrl(path)
Returns the full URL of the asset at path
managed by the
kaizen-design-system-assets
service.
TypeScript/JavaScript
assetUrl("some/blob.png") // -> "https://<origin>/some/blob.png"
SCSS
asset-url("some/blob.png") // -> "https://<origin>/some/blob.png"
kaizen-design-system-assets
repo. If it doesn't, make a PR to add it (ask the Design Systems team for review). Images in this repo will be automatically uploaded and made available via a CloudFront distribution.@kaizen/hosted-assets
package is in your repo's package.json
. This package provides you the assetUrl
function that translates the path to the file in the kaizen-design-system-assets
repo into its equivalent CloudFront URL.@kaizen/hosted-assets
package and you can access the image through the assetUrl
/asset-url
function:// TS/JS
import { assetUrl } from "@kaizen/hosted-assets";
<SomeComponent
image={assetUrl("illustrations/plant-based-ham-substitute.png")}
/>
// SCSS
@import "~@kaizen/hosted-assets/index";
.coolpic {
background-image: url(asset-url(
"illustrations/plant-based-ham-substitute.png"
));
}
FAQs
Hosted assets for Culture Amp's Kaizen Design System.
The npm package @kaizen/hosted-assets receives a total of 21,951 weekly downloads. As such, @kaizen/hosted-assets popularity was classified as popular.
We found that @kaizen/hosted-assets demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 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
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.