
Research
5 Malicious Chrome Extensions Enable Session Hijacking in Enterprise HR and ERP Systems
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.
date.prototype.getyear
Advanced tools
An ES5 spec-compliant `Date.prototype.getYear` shim/polyfill/replacement that works as far down as ES3.
An ES spec-compliant Date.prototype.getYear shim/polyfill/replacement that works as far down as ES3.
This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec.
Because Date.prototype.getYear depends on a receiver (the “this” value), the main export takes the array to operate on as the first argument.
var getYear = require('date.prototype.getyear');
var assert = require('assert');
var d = new Date(Date.UTC(2000));
d.setHours(d.getHours() + (d.getTimezoneOffset() / 60)); // to account for the local TZ
assert.equal(getYear(d), 100);
var shim = require('date.prototype.getyear/shim');
var getPolyfill = require('date.prototype.getyear/polyfill');
var assert = require('assert');
/* when Date#getYear is not present */
delete Date.prototype.getYear;
var shimmed = shim();
assert.equal(shimmed, getPolyfill());
assert.equal(shimmed, Date.prototype.getYear);
assert.equal(new Date().getYear(), getYear(new Date()));
var shim = require('date.prototype.getyear/shim');
var assert = require('assert');
/* when Date#getYear is present */
var shimmed = shim();
assert.equal(shimmed, Date.prototype.getYear);
assert.equal(new Date().getYear(), getYear(new Date()));
Simply clone the repo, npm install, and run npm test
FAQs
An ES5 spec-compliant `Date.prototype.getYear` shim/polyfill/replacement that works as far down as ES3.
We found that date.prototype.getyear 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.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.

Research
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.