Skip to content

Commit

Permalink
Merge pull request #423 from LLK/greenkeeper/initial
Browse files Browse the repository at this point in the history
Update dependencies to enable Greenkeeper 馃尨
  • Loading branch information
rschamp committed Feb 1, 2017
2 parents 073ffda + 98a12f1 commit 597006b
Show file tree
Hide file tree
Showing 25 changed files with 90 additions and 103 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@

[![Build Status](https://travis-ci.org/LLK/scratch-vm.svg?branch=develop)](https://travis-ci.org/LLK/scratch-vm)
[![Coverage Status](https://coveralls.io/repos/github/LLK/scratch-vm/badge.svg?branch=develop)](https://coveralls.io/github/LLK/scratch-vm?branch=develop)
[![Dependency Status](https://david-dm.org/LLK/scratch-vm.svg)](https://david-dm.org/LLK/scratch-vm)
[![devDependency Status](https://david-dm.org/LLK/scratch-vm/dev-status.svg)](https://david-dm.org/LLK/scratch-vm#info=devDependencies)
[![Greenkeeper badge](https://badges.greenkeeper.io/LLK/scratch-vm.svg)](https://greenkeeper.io/)

## Installation
This requires you to have Git and Node.js installed.
Expand Down
25 changes: 12 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,26 @@
},
"devDependencies": {
"adm-zip": "0.4.7",
"babel-eslint": "7.0.0",
"copy-webpack-plugin": "3.0.1",
"eslint": "3.8.1",
"eslint-config-scratch": "^2.0.0",
"babel-eslint": "7.1.1",
"copy-webpack-plugin": "4.0.1",
"eslint": "3.14.1",
"eslint-config-scratch": "^3.1.0",
"expose-loader": "0.7.1",
"gh-pages": "0.11.0",
"highlightjs": "8.7.0",
"htmlparser2": "3.9.0",
"gh-pages": "0.12.0",
"highlightjs": "9.8.0",
"htmlparser2": "3.9.2",
"json": "9.0.4",
"json-loader": "0.5.4",
"lodash.defaultsdeep": "4.6.0",
"minilog": "3.0.1",
"minilog": "3.1.0",
"promise": "7.1.1",
"scratch-audio": "latest",
"scratch-blocks": "latest",
"scratch-render": "latest",
"script-loader": "0.7.0",
"stats.js": "0.16.0",
"tap": "5.7.1",
"stats.js": "0.17.0",
"tap": "10.0.0",
"travis-after-all": "1.4.4",
"webpack": "1.13.0",
"webpack-dev-server": "1.14.1"
"webpack": "2.2.1",
"webpack-dev-server": "1.16.3"
}
}
2 changes: 1 addition & 1 deletion src/blocks/scratch3_control.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var Scratch3ControlBlocks = function (runtime) {

/**
* Retrieve the block primitives implemented by this package.
* @return {Object.<string, Function>} Mapping of opcode to Function.
* @return {object.<string, Function>} Mapping of opcode to Function.
*/
Scratch3ControlBlocks.prototype.getPrimitives = function () {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/scratch3_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var Scratch3DataBlocks = function (runtime) {

/**
* Retrieve the block primitives implemented by this package.
* @return {Object.<string, Function>} Mapping of opcode to Function.
* @return {object.<string, Function>} Mapping of opcode to Function.
*/
Scratch3DataBlocks.prototype.getPrimitives = function () {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/scratch3_event.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var Scratch3EventBlocks = function (runtime) {

/**
* Retrieve the block primitives implemented by this package.
* @return {Object.<string, Function>} Mapping of opcode to Function.
* @return {object.<string, Function>} Mapping of opcode to Function.
*/
Scratch3EventBlocks.prototype.getPrimitives = function () {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/scratch3_looks.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var Scratch3LooksBlocks = function (runtime) {

/**
* Retrieve the block primitives implemented by this package.
* @return {Object.<string, Function>} Mapping of opcode to Function.
* @return {object.<string, Function>} Mapping of opcode to Function.
*/
Scratch3LooksBlocks.prototype.getPrimitives = function () {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/scratch3_motion.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var Scratch3MotionBlocks = function (runtime) {

/**
* Retrieve the block primitives implemented by this package.
* @return {Object.<string, Function>} Mapping of opcode to Function.
* @return {object.<string, Function>} Mapping of opcode to Function.
*/
Scratch3MotionBlocks.prototype.getPrimitives = function () {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/scratch3_operators.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var Scratch3OperatorsBlocks = function (runtime) {

/**
* Retrieve the block primitives implemented by this package.
* @return {Object.<string, Function>} Mapping of opcode to Function.
* @return {object.<string, Function>} Mapping of opcode to Function.
*/
Scratch3OperatorsBlocks.prototype.getPrimitives = function () {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/scratch3_pen.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Scratch3PenBlocks.prototype._wrapHueOrShade = function (value) {

/**
* Retrieve the block primitives implemented by this package.
* @return {Object.<string, Function>} Mapping of opcode to Function.
* @return {object.<string, Function>} Mapping of opcode to Function.
*/
Scratch3PenBlocks.prototype.getPrimitives = function () {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/scratch3_procedures.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var Scratch3ProcedureBlocks = function (runtime) {

/**
* Retrieve the block primitives implemented by this package.
* @return {Object.<string, Function>} Mapping of opcode to Function.
* @return {object.<string, Function>} Mapping of opcode to Function.
*/
Scratch3ProcedureBlocks.prototype.getPrimitives = function () {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/scratch3_sensing.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var Scratch3SensingBlocks = function (runtime) {

/**
* Retrieve the block primitives implemented by this package.
* @return {Object.<string, Function>} Mapping of opcode to Function.
* @return {object.<string, Function>} Mapping of opcode to Function.
*/
Scratch3SensingBlocks.prototype.getPrimitives = function () {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/scratch3_sound.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var Scratch3SoundBlocks = function (runtime) {

/**
* Retrieve the block primitives implemented by this package.
* @return {Object.<string, Function>} Mapping of opcode to Function.
* @return {object.<string, Function>} Mapping of opcode to Function.
*/
Scratch3SoundBlocks.prototype.getPrimitives = function () {
return {
Expand Down
10 changes: 5 additions & 5 deletions src/engine/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var html = require('htmlparser2');
* to a usable form for the Scratch runtime.
* This structure is based on Blockly xml.js:`domToWorkspace` and `domToBlock`.
* @param {Element} blocksDOM DOM tree for this event.
* @return {Array.<Object>} Usable list of blocks from this CREATE event.
* @return {Array.<object>} Usable list of blocks from this CREATE event.
*/
var domToBlocks = function (blocksDOM) {
// At this level, there could be multiple blocks adjacent in the DOM tree.
Expand All @@ -32,8 +32,8 @@ var domToBlocks = function (blocksDOM) {
/**
* Adapter between block creation events and block representation which can be
* used by the Scratch runtime.
* @param {Object} e `Blockly.events.create`
* @return {Array.<Object>} List of blocks from this CREATE event.
* @param {object} e `Blockly.events.create`
* @return {Array.<object>} List of blocks from this CREATE event.
*/
var adapter = function (e) {
// Validate input
Expand All @@ -47,8 +47,8 @@ var adapter = function (e) {
* Convert and an individual block DOM to the representation tree.
* Based on Blockly's `domToBlockHeadless_`.
* @param {Element} blockDOM DOM tree for an individual block.
* @param {Object} blocks Collection of blocks to add to.
* @param {Boolean} isTopBlock Whether blocks at this level are "top blocks."
* @param {object} blocks Collection of blocks to add to.
* @param {boolean} isTopBlock Whether blocks at this level are "top blocks."
* @param {?string} parent Parent block ID.
* @return {undefined}
*/
Expand Down
18 changes: 9 additions & 9 deletions src/engine/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Blocks.BRANCH_INPUT_PREFIX = 'SUBSTACK';
/**
* Provide an object with metadata for the requested block ID.
* @param {!string} blockId ID of block we have stored.
* @return {?Object} Metadata about the block, if it exists.
* @return {?object} Metadata about the block, if it exists.
*/
Blocks.prototype.getBlock = function (blockId) {
return this._blocks[blockId];
Expand Down Expand Up @@ -92,7 +92,7 @@ Blocks.prototype.getOpcode = function (id) {
/**
* Get all fields and their values for a block.
* @param {?string} id ID of block to query.
* @return {!Object} All fields and their values.
* @return {!object} All fields and their values.
*/
Blocks.prototype.getFields = function (id) {
var block = this._blocks[id];
Expand All @@ -102,7 +102,7 @@ Blocks.prototype.getFields = function (id) {
/**
* Get all non-branch inputs for a block.
* @param {?string} id ID of block to query.
* @return {!Object} All non-branch inputs and their associated blocks.
* @return {!object} All non-branch inputs and their associated blocks.
*/
Blocks.prototype.getInputs = function (id) {
var block = this._blocks[id];
Expand All @@ -121,7 +121,7 @@ Blocks.prototype.getInputs = function (id) {
/**
* Get mutation data for a block.
* @param {?string} id ID of block to query.
* @return {!Object} Mutation for the block.
* @return {!object} Mutation for the block.
*/
Blocks.prototype.getMutation = function (id) {
var block = this._blocks[id];
Expand Down Expand Up @@ -247,7 +247,7 @@ Blocks.prototype.blocklyListen = function (e, optRuntime) {

/**
* Block management: create blocks and scripts from a `create` event
* @param {!Object} block Blockly create event to be processed
* @param {!object} block Blockly create event to be processed
*/
Blocks.prototype.createBlock = function (block) {
// Does the block already exist?
Expand All @@ -267,7 +267,7 @@ Blocks.prototype.createBlock = function (block) {

/**
* Block management: change block field values
* @param {!Object} args Blockly change event to be processed
* @param {!object} args Blockly change event to be processed
*/
Blocks.prototype.changeBlock = function (args) {
// Validate
Expand All @@ -286,7 +286,7 @@ Blocks.prototype.changeBlock = function (args) {

/**
* Block management: move blocks from parent to parent
* @param {!Object} e Blockly move event to be processed
* @param {!object} e Blockly move event to be processed
*/
Blocks.prototype.moveBlock = function (e) {
if (!this._blocks.hasOwnProperty(e.id)) {
Expand Down Expand Up @@ -342,7 +342,7 @@ Blocks.prototype.moveBlock = function (e) {

/**
* Block management: delete blocks and their associated scripts.
* @param {!Object} e Blockly delete event to be processed.
* @param {!object} e Blockly delete event to be processed.
*/
Blocks.prototype.deleteBlock = function (e) {
// @todo In runtime, stop threads running on this script.
Expand Down Expand Up @@ -449,7 +449,7 @@ Blocks.prototype.blockToXML = function (blockId) {

/**
* Recursively encode a mutation object to XML.
* @param {!Object} mutation Object representing a mutation.
* @param {!object} mutation Object representing a mutation.
* @return {string} XML string representing a mutation.
*/
Blocks.prototype.mutationToXML = function (mutation) {
Expand Down
2 changes: 1 addition & 1 deletion src/engine/execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var Thread = require('./thread');
/**
* Utility function to determine if a value is a Promise.
* @param {*} value Value to check for a Promise.
* @return {Boolean} True if the value appears to be a Promise.
* @return {boolean} True if the value appears to be a Promise.
*/
var isPromise = function (value) {
return value && value.then && typeof value.then === 'function';
Expand Down
8 changes: 4 additions & 4 deletions src/engine/mutation-adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ var html = require('htmlparser2');

/**
* Convert a part of a mutation DOM to a mutation VM object, recursively.
* @param {Object} dom DOM object for mutation tag.
* @return {Object} Object representing useful parts of this mutation.
* @param {object} dom DOM object for mutation tag.
* @return {object} Object representing useful parts of this mutation.
*/
var mutatorTagToObject = function (dom) {
var obj = Object.create(null);
Expand All @@ -24,8 +24,8 @@ var mutatorTagToObject = function (dom) {
/**
* Adapter between mutator XML or DOM and block representation which can be
* used by the Scratch runtime.
* @param {(Object|string)} mutation Mutation XML string or DOM.
* @return {Object} Object representing the mutation.
* @param {(object|string)} mutation Mutation XML string or DOM.
* @return {object} Object representing the mutation.
*/
var mutationAdpater = function (mutation) {
var mutationParsed;
Expand Down
8 changes: 4 additions & 4 deletions src/engine/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ Runtime.prototype.getOpcodeFunction = function (opcode) {
/**
* Return whether an opcode represents a hat block.
* @param {!string} opcode The opcode to look up.
* @return {Boolean} True if the op is known to be a hat.
* @return {boolean} True if the op is known to be a hat.
*/
Runtime.prototype.getIsHat = function (opcode) {
return this._hats.hasOwnProperty(opcode);
Expand All @@ -285,7 +285,7 @@ Runtime.prototype.getIsHat = function (opcode) {
/**
* Return whether an opcode represents an edge-activated hat block.
* @param {!string} opcode The opcode to look up.
* @return {Boolean} True if the op is known to be a edge-activated hat.
* @return {boolean} True if the op is known to be a edge-activated hat.
*/
Runtime.prototype.getIsEdgeActivatedHat = function (opcode) {
return this._hats.hasOwnProperty(opcode) &&
Expand Down Expand Up @@ -379,7 +379,7 @@ Runtime.prototype._restartThread = function (thread) {
/**
* Return whether a thread is currently active/running.
* @param {?Thread} thread Thread object to check.
* @return {Boolean} True if the thread is active/running.
* @return {boolean} True if the thread is active/running.
*/
Runtime.prototype.isActiveThread = function (thread) {
return this.threads.indexOf(thread) > -1;
Expand Down Expand Up @@ -427,7 +427,7 @@ Runtime.prototype.allScriptsDo = function (f, optTarget) {
/**
* Start all relevant hats.
* @param {!string} requestedHatOpcode Opcode of hats to start.
* @param {Object=} optMatchFields Optionally, fields to match on the hat.
* @param {object=} optMatchFields Optionally, fields to match on the hat.
* @param {Target=} optTarget Optionally, a target to restrict to.
* @return {Array.<Thread>} List of threads started by this function.
*/
Expand Down
4 changes: 2 additions & 2 deletions src/engine/sequencer.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ Sequencer.prototype.stepThread = function (thread) {
/**
* Step a thread into a block's branch.
* @param {!Thread} thread Thread object to step to branch.
* @param {Number} branchNum Which branch to step to (i.e., 1, 2).
* @param {Boolean} isLoop Whether this block is a loop.
* @param {number} branchNum Which branch to step to (i.e., 1, 2).
* @param {boolean} isLoop Whether this block is a loop.
*/
Sequencer.prototype.stepToBranch = function (thread, branchNum, isLoop) {
if (!branchNum) {
Expand Down
6 changes: 3 additions & 3 deletions src/engine/thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,15 @@ Thread.prototype.peekStack = function () {

/**
* Get top stack frame.
* @return {?Object} Last stack frame stored on this thread.
* @return {?object} Last stack frame stored on this thread.
*/
Thread.prototype.peekStackFrame = function () {
return this.stackFrames.length > 0 ? this.stackFrames[this.stackFrames.length - 1] : null;
};

/**
* Get stack frame above the current top.
* @return {?Object} Second to last stack frame stored on this thread.
* @return {?object} Second to last stack frame stored on this thread.
*/
Thread.prototype.peekParentStackFrame = function () {
return this.stackFrames.length > 1 ? this.stackFrames[this.stackFrames.length - 2] : null;
Expand Down Expand Up @@ -205,7 +205,7 @@ Thread.prototype.getParam = function (paramName) {

/**
* Whether the current execution of a thread is at the top of the stack.
* @return {Boolean} True if execution is at top of the stack.
* @return {boolean} True if execution is at top of the stack.
*/
Thread.prototype.atStackTop = function () {
return this.peekStack() === this.topBlock;
Expand Down
2 changes: 1 addition & 1 deletion src/engine/variable.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

/**
* @param {!string} name Name of the variable.
* @param {(string|Number)} value Value of the variable.
* @param {(string|number)} value Value of the variable.
* @param {boolean} isCloud Whether the variable is stored in the cloud.
* @constructor
*/
Expand Down
Loading

0 comments on commit 597006b

Please sign in to comment.