Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
blockly-field-date
Advanced tools
A Blockly advanced date picker field that uses the Google Closure date picker
A Blockly advanced date picker field that uses the Google Closure date picker.
Custom date formats using token
option (e.g. yyyy-LL-dd
)
npm install --save blockly-field-date
yarn add blockly-field-date
yarn build
import * as Blockly from 'blockly';
import FieldDate from 'blockly-field-date';
Blockly.Blocks['test_field_date'] = {
init: function () {
this.appendDummyInput()
.appendField('date: ')
.appendField(new FieldDate('2022-01-11'), 'FIELDNAME');
}
};
import * as Blockly from 'blockly';
import 'blockly-field-date';
Blockly.defineBlocksWithJsonArray([
{
type: 'test_field_date',
message0: 'date: %1',
args0: [
{
type: 'field_date',
name: 'FIELDNAME',
date: '2022-01-11
}
]
}]);
Blockly.Blocks['test_field_date'] = {
init: function () {
this.appendDummyInput()
.appendField('date: ')
.appendField(new FieldDate('1/11/2022', null, true, 'L/d/yyyy'), 'FIELDNAME');
}
};
Blockly.defineBlocksWithJsonArray([
{
type: 'test_field_date',
message0: 'date: %1',
args0: [
{
type: 'field_date',
name: 'FIELDNAME',
date: '1/11/2022',
token: 'L/d/yyyy',
textEdit: true
}
]
}]);
You need to build the package first.
<script src="./dist/date_compressed.js"></script>
Apache 2.0
FAQs
A Blockly advanced date picker field that uses the Google Closure date picker
The npm package blockly-field-date receives a total of 0 weekly downloads. As such, blockly-field-date popularity was classified as not popular.
We found that blockly-field-date 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.