Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@neovici/cosmoz-utils
Advanced tools
Date, money and template management functions commonly needed in Cosmoz views.
cosmoz-utils contains date, money and template management functions commonly needed in page views. This package does not contain any visual element.
Upgrading from cosmoz-behaviors
is very straightforward.
Cosmoz.TemplateHelperBehavior
-> import { Template } from '@neovici/cosmoz-utils'
Cosmoz.MoneyHelperBehavior
-> import { Money } from '@neovici/cosmoz-utils'
Cosmoz.DateHelperBehavior
-> import { Date } from '@neovici/cosmoz-utils'
Polymer.mixinBehaviors([Cosmoz.TemplateHelperBehavior], Polymer.Element)
-> mixin(Template, PolymerElement)
Polymer.mixinBehaviors([Cosmoz.TemplateHelperBehavior, Cosmoz.MoneyHelperBehavior], Polymer.Element)
-> mixin({...Template, ...Money}, PolymerElement)
This code:
<link rel="import" href="../cosmoz-templatehelper-behavior.html" />
class DemoTemplateHelper extends Polymer.mixinBehaviors([Cosmoz.TemplateHelperBehavior], Polymer.Element) {
Becomes:
import { PolymerElement } from '@polymer/polymer/polymer-element';
import { mixin, Template } from '@neovici/cosmoz-utils';
class DemoTemplateHelper extends mixin(Template, PolymerElement) {
You can also pick and choose only the functions your element needs:
import { mixin, Money } from '@neovici/cosmoz-utils';
import { isEmpty } from '@neovici/cosmoz-utils/template';
import { isoDate } from '@neovici/cosmoz-utils/date';
class DemoMoneyHelper extends mixin({isEmpty, isoDate, ...Money}, PolymerElement) {
Cross-browser Testing Platform and Open Source <3 Provided by [Sauce Labs][sauce_homepage]
[sauce_homepage]: https://saucelabs.com
FAQs
Date, money and template management functions commonly needed in Cosmoz views.
The npm package @neovici/cosmoz-utils receives a total of 39 weekly downloads. As such, @neovici/cosmoz-utils popularity was classified as not popular.
We found that @neovici/cosmoz-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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 removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.