-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update package version => 0.0.7 (#1)
* Update package version => 0.0.7 * Update vs.js * Build * Recrypt npm token * Modify about search * Modify about url fns * Modify v1.js condition
- Loading branch information
Showing
8 changed files
with
451 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
language: node_js | ||
node_js: | ||
- '8' | ||
cache: | ||
yarn: true | ||
directories: | ||
- node_modules | ||
after_success: | ||
- yarn coverage | ||
deploy: | ||
provider: npm | ||
email: toxictoxer@gmail.com | ||
on: | ||
tags: true | ||
repo: chooslr/tumblrinbrowser | ||
branch: publish | ||
api_key: | ||
secure: ZFJpN9hjqLi4tKAI+ryFrC+5Q6evL5Qrac+iSJOV3ibmzsxC8LXeh5Lqr9jTN501EW4EWnghJCWQcHHTTVUvuglQZ6QHCfqCDBEp/bwqS7W8AqTXwymaSD8oz7b5j2xnKB6Qwif58Qc7Q6pA8ImgS+FWlPuPMddrzMpuLxsnpYyzTptpF7Vrvm97lmK7hTbdcfJ0W+XdXenFVMm9v0RnuqTFf2EhEUIoKFAX/Owffh8uh9VkqOdosaxg1Dt21BGmPsXcSMWmZFMP/FfSHhty2iFB3pFukekEsZw5lHMRbFS8hFctR441fVs4+RX7x7FzJtGFAJURQveCLXquWhfyvIzBhLxgbHVGVY2FBptwVhG0KbzRgzwqooq7GxcIPwxmXwR8uavi6NNmYoNXWuFy96vA27wuVgypQUdTfSNmJ2J87WMs2VhynmNYtuKqBf85KtmOjhELF06/4siJp6hpY7feONrNXNAuC1ysAHbXGoXMyIDfyCSF7GoWXj0hRVxAmdxUNaW8h8AAevIbd++phUV21xkWGYkUrd2AKpbTSDV8em4FHkIjNhJTQKABcfPhsq4f9KQDN8ALCFZGfNUTXASaJ2lIvaiGnBQkZXZOTUJbdWqtffxbS3VXyKAhA8nO7WrOPBZtC7mLYjQim4Aa8Z9hy8fyf4/Nd28Nh0o2jP4= | ||
language: node_js | ||
node_js: | ||
- '8' | ||
cache: | ||
yarn: true | ||
directories: | ||
- node_modules | ||
after_success: | ||
- yarn coverage | ||
deploy: | ||
provider: npm | ||
email: toxictoxer@gmail.com | ||
on: | ||
tags: true | ||
repo: chooslr/tumblrinbrowser | ||
branch: publish | ||
api_key: | ||
secure: KRf4gd0N3KQ0qY9wBMu3Yxst3ukyefA1QgG0wZwFa7NO+hPKgr3+OTJemyb4QZ9HKFY16EkqSk35uxYL2jtfaD5xAiMjw2TZWrTPyhvQ1x7rQuHKNcAqiKSJfpagcuIOLC8mmK1N8NN7qX7g0+RgapdKGe4JafX8kQlU9PHWmDOZ2HgEiMAZ549946hn49mps73FW7Ya5Xt2MM5np9QK8KP3amqwpbfjQU0gbf1vjd38fSeuXDPh7/q0PHqObsl0wyPnSBI8W0vDrsAnKX5qd0TpFC4yZfzK3GBTtEztOhMGwvsATzI/FJrdAbDZswM38ESy5ykkopCVzp6wLrDdWRYRTRvABK2xaE/G8HUZdhzl9U/33bG+j1X8zzulfnTt71CUzpF77c8VyZKdfoXDJ9n/In3wK25DxgCdAc5YWeDnmEgV91Zh2oUHpGoPlBpTUxHU+/ufyu1iyuGeQEUW96rdMxFtosyyyBehpfmRgcNrXpMS7Hvo4DKsnUdLBjt9kDJTPb3KCVmXUunXo8HBqZKLhKnFP/tbV5lkp8rKMX+ZUgOzJps1ETvuzATQJcHDyypthPe9D02Q2aJnW9YJiMhjfd/XPKDN4XYBjKjL+Ox+mUQr241DD9IvwNUSZ+S8vwF+mELXio4vuxhtS6Mg0VeRu+dNkpVsSyqN/sfHVu4= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import assert from 'assert' | ||
import { search, generateSearch } from '../rewired.v1.js' | ||
import { recursiveAddPostTillDone } from '../src/util.js' | ||
|
||
const recursiveTillEmpty = (name, word, page = 1, set = new Set()) => | ||
search(name, word, page).then(posts => { | ||
posts.forEach(post => set.add(post)) | ||
return !posts.length ? [...set.values()] : recursiveTillEmpty(name, word, page + 1, set) | ||
}) | ||
|
||
it('equal search() and generateSearch()', async () => { | ||
const name = 'staff' | ||
const word = 'future' | ||
const postsBySingle = await recursiveTillEmpty(name, word) | ||
const postsByGenerate = await generateSearch({ name, word }).then(recursiveAddPostTillDone) | ||
assert.equal(postsBySingle.length, postsByGenerate.length) | ||
}) |
Oops, something went wrong.