Node Dependencies updated

This commit is contained in:
Luis Fernando Molina committed 2018-05-03 19:57:34 +02:00
1 parent 6a1dfc8e2a
commit d27c003f83
14 files changed
+115 -64

No files matched your search

Binary file not shown.
+1 -1
View File
@@ -1,5 +1,5 @@

function newBall() {
function newFloatingObject() {
var thisObject = {
+1 -1
View File
@@ -33,7 +33,7 @@
<Compile Include="AggregatedOrdersArray.js" />
<Compile Include="Animation.js" />
<Compile Include="Azure\azure-storage.blob.js" />
<Compile Include="Ball.js" />
<Compile Include="FloatingObject.js" />
<Compile Include="Balls.js" />
<Compile Include="CompetitionStorage.js">
<SubType>Code</SubType>
+33 -3
View File
@@ -9,13 +9,16 @@ function newFloatingSpace() {
balls: undefined, // This is the array of balls being displayed
createNewBall: createNewBall,
destroyBall: destroyBall,
createBubbleSet: createBubbleSet,
destroyBubbleSet: destroyBubbleSet,
physicsLoop: physicsLoop,
isInside: isInside,
isInsideBall: isInsideBall,
initialize: initialize
};
let createdBalls = [];
let createdBalls = [];
let bubbleSets = [];
return thisObject;
@@ -28,9 +31,9 @@ function newFloatingSpace() {
function createNewBall(pInput, pContainer) {
/* This function is used to create new balls, representing labels of each point on the chart. */
/* This function is used to create new balls */
var ball = newBall();
var ball = newFloatingObject();
ball.input = pInput;
@@ -75,6 +78,33 @@ function newFloatingSpace() {
}
}
function createBubbleSet(pPlotterBubbles) {
let bubbleSet = {
floatingBubbles: [],
plotterBubbles: pPlotterBubbles,
handle: Math.floor((Math.random() * 10000000) + 1)
};
bubbleSets.push(bubbleSet);
return bubbleSet.handle;
}
function destroyBubbleSet(pHandle) {
for (let i = 0; i < bubbleSets.length; i++) {
let bubbleSet = bubbleSets[i];
if (bubbleSet.handle === pHandle) {
bubbleSets.splice(i, 1); // Delete item from array.
return;
}
}
}
/******************************************/
/* */
/* Physics Engine Follows */
+10 -1
View File
@@ -268,7 +268,8 @@
productCard: pProductCard,
plotter: plotter,
storage: storage,
profile: undefined
profile: undefined,
bubbles: undefined
};
/* Let the Plotter listen to the event of Cursor Files loaded, so that it can reack recalculating if needed. */
@@ -318,6 +319,10 @@
}
/* Create the Text Bubbles */
productPlotter.bubbleSet = canvas.floatingSpace.createBubbleSet(productPlotter.plotter.bubbles);
/* Add the new Active Protter to the Array */
productPlotters.push(productPlotter);
@@ -368,6 +373,10 @@
}
/* Destroyd the Bubble Set */
canvas.floatingSpace.destroyBubbleSet(productPlotters[i].bubbleSet);
/* Finally the panels. */
for (let j = 0; j < productPlotters[i].panels.length; j++) {
+1 -1
View File
@@ -27,7 +27,7 @@
<script type="text/javascript" src="Frame.js"></script>
<script type="text/javascript" src="Container.js"></script>
<script type="text/javascript" src="TimeMachine.js"></script>
<script type="text/javascript" src="Ball.js"></script>
<script type="text/javascript" src="FloatingObject.js"></script>
<script type="text/javascript" src="Balls.js"></script>
<script type="text/javascript" src="Candle.js"></script>
<script type="text/javascript" src="VolumeBar.js"></script>
+13 -7
View File
@@ -1,6 +1,11 @@
atob
===
| **atob**
| [btoa](https://git.coolaj86.com/coolaj86/btoa.js)
| [unibabel.js](https://git.coolaj86.com/coolaj86/unibabel.js)
| Sponsored by [ppl](https://ppl.family)
Uses `Buffer` to emulate the exact functionality of the browser's atob.
Note: Unicode may be handled incorrectly (like the browser).
@@ -12,32 +17,33 @@ It turns base64-encoded <strong>a</strong>scii data back **to** <strong>b</stron
"use strict";
var atob = require('atob');
var b64 = "SGVsbG8gV29ybGQ=";
var b64 = "SGVsbG8sIFdvcmxkIQ==";
var bin = atob(b64);
console.log(bin); // "Hello World"
console.log(bin); // "Hello, World!"
}());
```
### Need Unicode and Binary Support in the Browser?
Check out [unibabel.js](https://github.com/coolaj86/unibabel-js)
Check out [unibabel.js](https://git.coolaj86.com/coolaj86/unibabel.js)
Changelog
=======
* v2.1.0 address a few issues and PRs, update URLs
* v2.0.0 provide browser version for ios web workers
* v1.2.0 provide (empty) browser version
* v1.1.3 add MIT license (see [#4](https://github.com/node-browser-compat/atob/issues/4))
* v1.1.3 add MIT license
* v1.1.2 node only
LICENSE
=======
Code copyright 2012-2015 AJ ONeal
Code copyright 2012-2018 AJ ONeal
Dual-licensed MIT and Apache-2.0
Docs copyright 2012-2015 AJ ONeal
Docs copyright 2012-2018 AJ ONeal
Docs released under [Creative Commons](https://github.com/node-browser-compat/atob/blob/master/LICENSE.DOCS).
Docs released under [Creative Commons](https://git.coolaj86.com/coolaj86/atob.js/blob/master/LICENSE.DOCS).
+32 -24
View File
@@ -1,36 +1,44 @@
(function (w) {
"use strict";
var a2b = w.atob;
function atob(str) {
function findBest(atobNative) {
// normal window
if ('function' === typeof a2b) {
return a2b(str);
}
// browserify (web worker)
else if ('function' === typeof Buffer) {
return new Buffer(str, 'base64').toString('binary');
}
// ios web worker with base64js
else if ('object' === typeof w.base64js) {
// bufferToBinaryString
// https://github.com/coolaj86/unibabel-js/blob/master/index.js#L50
var buf = w.base64js.b64ToByteArray(str);
if ('function' === typeof atobNative) { return atobNative; }
return Array.prototype.map.call(buf, function (ch) {
return String.fromCharCode(ch);
}).join('');
// browserify (web worker)
if ('function' === typeof Buffer) {
return function atobBrowserify(a) {
//!! Deliberately using an API that's deprecated in node.js because
//!! this file is for browsers and we expect them to cope with it.
//!! Discussion: github.com/node-browser-compat/atob/pull/9
return new Buffer(a, 'base64').toString('binary');
};
}
// ios web worker without base64js
else {
throw new Error("you're probably in an ios webworker. please include use beatgammit's base64-js");
// ios web worker with base64js
if ('object' === typeof w.base64js) {
// bufferToBinaryString
// https://git.coolaj86.com/coolaj86/unibabel.js/blob/master/index.js#L50
return function atobWebWorker_iOS(a) {
var buf = w.base64js.b64ToByteArray(a);
return Array.prototype.map.call(buf, function (ch) {
return String.fromCharCode(ch);
}).join('');
};
}
return function () {
// ios web worker without base64js
throw new Error("You're probably in an old browser or an iOS webworker." +
" It might help to include beatgammit's base64-js.");
};
}
w.atob = atob;
var atobBest = findBest(w.atob);
w.atob = atobBest;
if (typeof module !== 'undefined') {
module.exports = atob;
if ((typeof module === 'object') && module && module.exports) {
module.exports = atobBest;
}
}(window));
+1 -1
View File
@@ -1,7 +1,7 @@
"use strict";
function atob(str) {
return new Buffer(str, 'base64').toString('binary');
return Buffer.from(str, 'base64').toString('binary');
}
module.exports = atob.atob = atob;
+15 -15
View File
@@ -1,28 +1,28 @@
{
"_from": "atob",
"_id": "atob@2.0.3",
"_from": "atob@2.1.1",
"_id": "atob@2.1.1",
"_inBundle": false,
"_integrity": "sha1-GcenYEc3dEaPILLS0DNyrX1Mv10=",
"_integrity": "sha1-ri1acpR38onWDdf5amMUoi3Wwio=",
"_location": "/atob",
"_phantomChildren": {},
"_requested": {
"type": "tag",
"type": "version",
"registry": true,
"raw": "atob",
"raw": "atob@2.1.1",
"name": "atob",
"escapedName": "atob",
"rawSpec": "",
"rawSpec": "2.1.1",
"saveSpec": null,
"fetchSpec": "latest"
"fetchSpec": "2.1.1"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/atob/-/atob-2.0.3.tgz",
"_shasum": "19c7a760473774468f20b2d2d03372ad7d4cbf5d",
"_spec": "atob",
"_where": "C:\\Users\\Luis\\source\\repos\\AAWebPlatform",
"_resolved": "https://registry.npmjs.org/atob/-/atob-2.1.1.tgz",
"_shasum": "ae2d5a729477f289d60dd7f96a6314a22dd6c22a",
"_spec": "atob@2.1.1",
"_where": "C:\\Users\\Luis\\source\\repos\\AAWeb",
"author": {
"name": "AJ ONeal",
"email": "coolaj86@gmail.com",
@@ -36,9 +36,9 @@
"deprecated": false,
"description": "atob for Node.JS and Linux / Mac / Windows CLI (it's a one-liner)",
"engines": {
"node": ">= 0.4.0"
"node": ">= 4.5.0"
},
"homepage": "https://github.com/coolaj86/node-browser-compat",
"homepage": "https://git.coolaj86.com/coolaj86/atob.js.git",
"keywords": [
"atob",
"browser"
@@ -48,7 +48,7 @@
"name": "atob",
"repository": {
"type": "git",
"url": "git://github.com/coolaj86/node-browser-compat/atob.git"
"url": "git://git.coolaj86.com/coolaj86/atob.js.git"
},
"version": "2.0.3"
"version": "2.1.1"
}
Generated Vendored
+3 -5
View File
@@ -1,15 +1,13 @@
/*jshint strict:true node:true es5:true onevar:true laxcomma:true laxbreak:true eqeqeq:true immed:true latedef:true*/
(function () {
"use strict";
var atob = require('.')
, encoded = "SGVsbG8gV29ybGQ="
, unencoded = "Hello World"
var atob = require('.');
var encoded = "SGVsbG8sIFdvcmxkIQ=="
var unencoded = "Hello, World!";
/*
, encoded = "SGVsbG8sIBZM"
, unencoded = "Hello, 世界"
*/
;
if (unencoded !== atob(encoded)) {
console.log('[FAIL]', unencoded, atob(encoded));
+3 -3
View File
@@ -18,9 +18,9 @@
}
},
"atob": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/atob/-/atob-2.0.3.tgz",
"integrity": "sha1-GcenYEc3dEaPILLS0DNyrX1Mv10="
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/atob/-/atob-2.1.1.tgz",
"integrity": "sha1-ri1acpR38onWDdf5amMUoi3Wwio="
},
"before-after-hook": {
"version": "1.1.0",
+1 -1
View File
@@ -8,7 +8,7 @@
},
"dependencies": {
"@octokit/rest": "^14.0.9",
"atob": "^2.0.3",
"atob": "^2.1.1",
"octokit": "^0.10.4"
}
}
+1 -1
View File
@@ -6,7 +6,7 @@ if (CONSOLE_LOG === true) {
}
const DEBUG_MODE = false; // This forces the server to read Plotters from the local drive.
const DEBUG_MODE = true; // This forces the server to read Plotters from the local drive.
if (CONSOLE_LOG === true && DEBUG_MODE === true) {