Travis build: 957 [cron]

This commit is contained in:
30secondsofcode
2019-01-14 14:50:19 +00:00
parent 8786e79777
commit 681910d4dc
5 changed files with 40 additions and 40 deletions

View File

@ -941,7 +941,7 @@
"archived": false "archived": false
}, },
"meta": { "meta": {
"hash": "828a6f2f3b94cc537ef0ee30c5ebda28fff688fea65030e47d5721831bdb48ce" "hash": "f982b4e8e3ec3c8b0c2ef4f19b38dac90df6ebe2dd4daa0126c917ebc07d3e62"
} }
}, },
{ {
@ -1162,7 +1162,7 @@
"archived": false "archived": false
}, },
"meta": { "meta": {
"hash": "383ed61e69b8f63ae42d0746a1995057f4f65b4af6ca7778d8f1771144802acd" "hash": "319e1a8fb41490965ee6e28db3e139e65c4ea5b7f43e332bc7216cd790e5d409"
} }
}, },
{ {
@ -1677,7 +1677,7 @@
"archived": false "archived": false
}, },
"meta": { "meta": {
"hash": "80adea6b33dacdfc5f2d25ce270472f232208fa688794b71ba042ea368e1ad63" "hash": "2113c5024c3c12df6dc73f2f07d0b478ae19bba9ac11ebd5032b8442aa8f225b"
} }
}, },
{ {
@ -3377,7 +3377,7 @@
"archived": false "archived": false
}, },
"meta": { "meta": {
"hash": "dcdf66e8d0eb4a1761c6b767b8cc350757087ae817ec371436faab0fff7c0051" "hash": "0b04f5fe668888db0dc360535cd999669258019f0682eb6e4ad3a1164e408d13"
} }
}, },
{ {
@ -3749,7 +3749,7 @@
"archived": false "archived": false
}, },
"meta": { "meta": {
"hash": "2fd54c9fc1fb5b0a981df69501b518d5830ea77544d4d5290c7cc13745ca00ea" "hash": "536833a64ce0c000b82327ed1bb9bcb82e35b237f75aefcca0e0d2def4e9cb63"
} }
}, },
{ {

View File

@ -1389,7 +1389,7 @@
}, },
"meta": { "meta": {
"archived": false, "archived": false,
"hash": "828a6f2f3b94cc537ef0ee30c5ebda28fff688fea65030e47d5721831bdb48ce" "hash": "f982b4e8e3ec3c8b0c2ef4f19b38dac90df6ebe2dd4daa0126c917ebc07d3e62"
} }
}, },
{ {
@ -1715,7 +1715,7 @@
}, },
"meta": { "meta": {
"archived": false, "archived": false,
"hash": "383ed61e69b8f63ae42d0746a1995057f4f65b4af6ca7778d8f1771144802acd" "hash": "319e1a8fb41490965ee6e28db3e139e65c4ea5b7f43e332bc7216cd790e5d409"
} }
}, },
{ {
@ -2460,7 +2460,7 @@
"type": "snippet", "type": "snippet",
"attributes": { "attributes": {
"fileName": "hashNode.md", "fileName": "hashNode.md",
"text": "Creates a hash for a value using the [SHA-256](https://en.wikipedia.org/wiki/SHA-2) algorithm. Returns a promise.\n\nUse `crypto` API to create a hash for the given value.", "text": "Creates a hash for a value using the [SHA-256](https://en.wikipedia.org/wiki/SHA-2) algorithm. Returns a promise.\n\nUse `crypto` API to create a hash for the given value, `setTimeout` to prevent blocking on a long operation, and a `Promise` to give it a familiar interface.",
"codeBlocks": { "codeBlocks": {
"es6": "const crypto = require('crypto');\nconst hashNode = val =>\n new Promise(resolve =>\n setTimeout(\n () =>\n resolve(\n crypto\n .createHash('sha256')\n .update(val)\n .digest('hex')\n ),\n 0\n )\n );", "es6": "const crypto = require('crypto');\nconst hashNode = val =>\n new Promise(resolve =>\n setTimeout(\n () =>\n resolve(\n crypto\n .createHash('sha256')\n .update(val)\n .digest('hex')\n ),\n 0\n )\n );",
"es5": "var crypto = require('crypto');\n\nvar hashNode = function hashNode(val) {\n return new Promise(function (resolve) {\n return setTimeout(function () {\n return resolve(crypto.createHash('sha256').update(val).digest('hex'));\n }, 0);\n });\n};", "es5": "var crypto = require('crypto');\n\nvar hashNode = function hashNode(val) {\n return new Promise(function (resolve) {\n return setTimeout(function () {\n return resolve(crypto.createHash('sha256').update(val).digest('hex'));\n }, 0);\n });\n};",
@ -2475,7 +2475,7 @@
}, },
"meta": { "meta": {
"archived": false, "archived": false,
"hash": "80adea6b33dacdfc5f2d25ce270472f232208fa688794b71ba042ea368e1ad63" "hash": "2113c5024c3c12df6dc73f2f07d0b478ae19bba9ac11ebd5032b8442aa8f225b"
} }
}, },
{ {
@ -4962,7 +4962,7 @@
"codeBlocks": { "codeBlocks": {
"es6": "const pipeAsyncFunctions = (...fns) => arg => fns.reduce((p, f) => p.then(f), Promise.resolve(arg));", "es6": "const pipeAsyncFunctions = (...fns) => arg => fns.reduce((p, f) => p.then(f), Promise.resolve(arg));",
"es5": "var pipeAsyncFunctions = function pipeAsyncFunctions() {\n for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {\n fns[_key] = arguments[_key];\n }\n\n return function (arg) {\n return fns.reduce(function (p, f) {\n return p.then(f);\n }, Promise.resolve(arg));\n };\n};", "es5": "var pipeAsyncFunctions = function pipeAsyncFunctions() {\n for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {\n fns[_key] = arguments[_key];\n }\n\n return function (arg) {\n return fns.reduce(function (p, f) {\n return p.then(f);\n }, Promise.resolve(arg));\n };\n};",
"example": "const sum = pipeAsyncFunctions(\n x => x + 1,\n x => new Promise(resolve => setTimeout(() => resolve(x + 2), 1000)),\n x => x + 3,\n async x => (await x) + 4\n);\n(async () => {\n console.log(await sum(5)); // 15 (after one second)\n})();" "example": "const sum = pipeAsyncFunctions(\n x => x + 1,\n x => new Promise(resolve => setTimeout(() => resolve(x + 2), 1000)),\n x => x + 3,\n async x => (await x) + 4\n);\n(async() => {\n console.log(await sum(5)); // 15 (after one second)\n})();"
}, },
"tags": [ "tags": [
"adapter", "adapter",
@ -4973,7 +4973,7 @@
}, },
"meta": { "meta": {
"archived": false, "archived": false,
"hash": "dcdf66e8d0eb4a1761c6b767b8cc350757087ae817ec371436faab0fff7c0051" "hash": "0b04f5fe668888db0dc360535cd999669258019f0682eb6e4ad3a1164e408d13"
} }
}, },
{ {
@ -5520,7 +5520,7 @@
}, },
"meta": { "meta": {
"archived": false, "archived": false,
"hash": "2fd54c9fc1fb5b0a981df69501b518d5830ea77544d4d5290c7cc13745ca00ea" "hash": "536833a64ce0c000b82327ed1bb9bcb82e35b237f75aefcca0e0d2def4e9cb63"
} }
}, },
{ {

View File

@ -1133,7 +1133,7 @@
" )", " )",
" );" " );"
], ],
"description": "Creates a hash for a value using the [SHA-256](https://en.wikipedia.org/wiki/SHA-2) algorithm. Returns a promise.\n\nUse `crypto` API to create a hash for the given value" "description": "Creates a hash for a value using the [SHA-256](https://en.wikipedia.org/wiki/SHA-2) algorithm. Returns a promise.\n\nUse `crypto` API to create a hash for the given value, `setTimeout` to prevent blocking on a long operation, and a `Promise` to give it a familiar interface"
}, },
"head": { "head": {
"prefix": "30s_head", "prefix": "30s_head",