Skip to content

Commit 2c6ef84

Browse files
committed
fix: http-bearer, release chores
2 parents 544ea45 + 2b48601 commit 2c6ef84

4 files changed

Lines changed: 96 additions & 41 deletions

File tree

.releaserc.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
{
22
"branch": "master",
3-
"publish": [
3+
"verifyConditions": [
4+
"@semantic-release/changelog",
5+
"@semantic-release/git",
6+
"@semantic-release/github"
7+
],
8+
"prepare": [
49
{ "path": "@semantic-release/exec", "cmd": "./scripts/docs.sh" },
10+
"@semantic-release/changelog",
11+
"@semantic-release/npm",
512
{ "path": "@semantic-release/exec", "cmd": "yarn docker-release" },
13+
"@semantic-release/git"
14+
],
15+
"publish": [
616
"@semantic-release/npm",
717
"@semantic-release/github"
818
],

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@
7171
},
7272
"devDependencies": {
7373
"@makeomatic/deploy": "^6.1.2",
74+
"@semantic-release/changelog": "^2.0.2",
7475
"@semantic-release/exec": "^2.2.4",
76+
"@semantic-release/git": "^5.0.0",
7577
"apidoc": "^0.17.6",
7678
"apidoc-plugin-schema": "^0.1.8",
7779
"babel-cli": "^6.24.1",
@@ -98,7 +100,7 @@
98100
"nyc": "^12.0.2",
99101
"puppeteer": "^1.4.0",
100102
"rimraf": "^2.6.1",
101-
"sinon": "^5.0.10"
103+
"sinon": "^5.1.0"
102104
},
103105
"engines": {
104106
"node": ">= 8.9.0",

src/auth/strategy.http-bearer.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
const { ActionTransport } = require('@microfleet/core');
12
const bearer = require('./strategy.bearer');
23

34
function tokenAuth(request) {
4-
if (request.method === 'http') return bearer.call(this, request);
5+
if (request.transport === ActionTransport.http) {
6+
return bearer.call(this, request);
7+
}
8+
59
return null;
610
}
711

yarn.lock

Lines changed: 77 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -377,12 +377,21 @@
377377
node-fetch "^2.1.1"
378378
url-template "^2.0.8"
379379

380+
"@semantic-release/changelog@^2.0.2":
381+
version "2.0.2"
382+
resolved "https://registry.yarnpkg.com/@semantic-release/changelog/-/changelog-2.0.2.tgz#9972738dc97cf8b516f4200b8ee92e708e415d65"
383+
dependencies:
384+
"@semantic-release/error" "^2.1.0"
385+
aggregate-error "^1.0.0"
386+
fs-extra "^6.0.0"
387+
lodash "^4.17.4"
388+
380389
"@semantic-release/commit-analyzer@^5.0.0":
381-
version "5.0.3"
382-
resolved "https://registry.yarnpkg.com/@semantic-release/commit-analyzer/-/commit-analyzer-5.0.3.tgz#f2b674d30207b49b77d905ad5850d7aefd8838dd"
390+
version "5.0.5"
391+
resolved "https://registry.yarnpkg.com/@semantic-release/commit-analyzer/-/commit-analyzer-5.0.5.tgz#e855acaab9a850b97ac4260fec8c6df36c0edc45"
383392
dependencies:
384-
conventional-changelog-angular "^3.0.0"
385-
conventional-commits-parser "^2.0.0"
393+
conventional-changelog-angular "^5.0.0"
394+
conventional-commits-parser "^3.0.0"
386395
debug "^3.1.0"
387396
import-from "^2.1.0"
388397
lodash "^4.17.4"
@@ -401,6 +410,20 @@
401410
lodash "^4.17.4"
402411
parse-json "^4.0.0"
403412

413+
"@semantic-release/git@^5.0.0":
414+
version "5.0.0"
415+
resolved "https://registry.yarnpkg.com/@semantic-release/git/-/git-5.0.0.tgz#13703fca8f8c8c03066b0d005ee6a8c0119c3164"
416+
dependencies:
417+
"@semantic-release/error" "^2.1.0"
418+
aggregate-error "^1.0.0"
419+
debug "^3.1.0"
420+
dir-glob "^2.0.0"
421+
execa "^0.10.0"
422+
fs-extra "^6.0.0"
423+
lodash "^4.17.4"
424+
micromatch "^3.1.4"
425+
p-reduce "^1.0.0"
426+
404427
"@semantic-release/github@^4.1.0":
405428
version "4.2.17"
406429
resolved "https://registry.yarnpkg.com/@semantic-release/github/-/github-4.2.17.tgz#1d3f465b4bdbc57ecfcb55aefdc554804a8cbc76"
@@ -438,12 +461,12 @@
438461
registry-auth-token "^3.3.1"
439462

440463
"@semantic-release/release-notes-generator@^6.0.0":
441-
version "6.0.10"
442-
resolved "https://registry.yarnpkg.com/@semantic-release/release-notes-generator/-/release-notes-generator-6.0.10.tgz#54f14111c90ef85744a59475bd7a705b1135d1e4"
464+
version "6.0.12"
465+
resolved "https://registry.yarnpkg.com/@semantic-release/release-notes-generator/-/release-notes-generator-6.0.12.tgz#f70d53e4f385ae3644ac0b943aa84a4b7f23ec23"
443466
dependencies:
444-
conventional-changelog-angular "^3.0.6"
445-
conventional-changelog-writer "^3.0.9"
446-
conventional-commits-parser "^2.1.7"
467+
conventional-changelog-angular "^5.0.0"
468+
conventional-changelog-writer "^4.0.0"
469+
conventional-commits-parser "^3.0.0"
447470
debug "^3.1.0"
448471
get-stream "^3.0.0"
449472
git-url-parse "^9.0.0"
@@ -1123,8 +1146,8 @@ browser-stdout@1.3.1:
11231146
resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.1.tgz#baa559ee14ced73452229bad7326467c61fabd60"
11241147

11251148
bson@^2.0.7:
1126-
version "2.0.7"
1127-
resolved "https://registry.yarnpkg.com/bson/-/bson-2.0.7.tgz#4eff5829837ab79940f203a25cd94c3036a42c8f"
1149+
version "2.0.8"
1150+
resolved "https://registry.yarnpkg.com/bson/-/bson-2.0.8.tgz#e3bcc115e486bdcb222de7568c43b0b43292761e"
11281151

11291152
btoa-lite@^1.0.0:
11301153
version "1.0.0"
@@ -1574,19 +1597,19 @@ conventional-changelog-angular@^1.3.3:
15741597
compare-func "^1.3.1"
15751598
q "^1.5.1"
15761599

1577-
conventional-changelog-angular@^3.0.0, conventional-changelog-angular@^3.0.6:
1578-
version "3.0.7"
1579-
resolved "https://registry.yarnpkg.com/conventional-changelog-angular/-/conventional-changelog-angular-3.0.7.tgz#05b9220e4f6c0d8adab2ef9c7b508bcf914599c0"
1600+
conventional-changelog-angular@^5.0.0:
1601+
version "5.0.0"
1602+
resolved "https://registry.yarnpkg.com/conventional-changelog-angular/-/conventional-changelog-angular-5.0.0.tgz#6b37f957984f4d567b83cb29473fed60bd94679e"
15801603
dependencies:
15811604
compare-func "^1.3.1"
15821605
q "^1.5.1"
15831606

1584-
conventional-changelog-writer@^3.0.9:
1585-
version "3.0.9"
1586-
resolved "https://registry.yarnpkg.com/conventional-changelog-writer/-/conventional-changelog-writer-3.0.9.tgz#4aecdfef33ff2a53bb0cf3b8071ce21f0e994634"
1607+
conventional-changelog-writer@^4.0.0:
1608+
version "4.0.0"
1609+
resolved "https://registry.yarnpkg.com/conventional-changelog-writer/-/conventional-changelog-writer-4.0.0.tgz#3ed983c8ef6a3aa51fe44e82c9c75e86f1b5aa42"
15871610
dependencies:
15881611
compare-func "^1.3.1"
1589-
conventional-commits-filter "^1.1.6"
1612+
conventional-commits-filter "^2.0.0"
15901613
dateformat "^3.0.0"
15911614
handlebars "^4.0.2"
15921615
json-stringify-safe "^5.0.1"
@@ -1596,14 +1619,14 @@ conventional-changelog-writer@^3.0.9:
15961619
split "^1.0.0"
15971620
through2 "^2.0.0"
15981621

1599-
conventional-commits-filter@^1.1.6:
1600-
version "1.1.6"
1601-
resolved "https://registry.yarnpkg.com/conventional-commits-filter/-/conventional-commits-filter-1.1.6.tgz#4389cd8e58fe89750c0b5fb58f1d7f0cc8ad3831"
1622+
conventional-commits-filter@^2.0.0:
1623+
version "2.0.0"
1624+
resolved "https://registry.yarnpkg.com/conventional-commits-filter/-/conventional-commits-filter-2.0.0.tgz#a0ce1d1ff7a1dd7fab36bee8e8256d348d135651"
16021625
dependencies:
16031626
is-subset "^0.1.1"
16041627
modify-values "^1.0.0"
16051628

1606-
conventional-commits-parser@^2.0.0, conventional-commits-parser@^2.1.0, conventional-commits-parser@^2.1.7:
1629+
conventional-commits-parser@^2.1.0:
16071630
version "2.1.7"
16081631
resolved "https://registry.yarnpkg.com/conventional-commits-parser/-/conventional-commits-parser-2.1.7.tgz#eca45ed6140d72ba9722ee4132674d639e644e8e"
16091632
dependencies:
@@ -1615,6 +1638,18 @@ conventional-commits-parser@^2.0.0, conventional-commits-parser@^2.1.0, conventi
16151638
through2 "^2.0.0"
16161639
trim-off-newlines "^1.0.0"
16171640

1641+
conventional-commits-parser@^3.0.0:
1642+
version "3.0.0"
1643+
resolved "https://registry.yarnpkg.com/conventional-commits-parser/-/conventional-commits-parser-3.0.0.tgz#7f604549a50bd8f60443fbe515484b1c2f06a5c4"
1644+
dependencies:
1645+
JSONStream "^1.0.4"
1646+
is-text-path "^1.0.0"
1647+
lodash "^4.2.1"
1648+
meow "^4.0.0"
1649+
split2 "^2.0.0"
1650+
through2 "^2.0.0"
1651+
trim-off-newlines "^1.0.0"
1652+
16181653
convert-source-map@^1.5.0, convert-source-map@^1.5.1:
16191654
version "1.5.1"
16201655
resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.1.tgz#b8278097b9bc229365de5c62cf5fcaed8b5599e5"
@@ -2707,7 +2742,7 @@ growl@1.10.5:
27072742
version "1.10.5"
27082743
resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.5.tgz#f2735dc2283674fa67478b10181059355c369e5e"
27092744

2710-
handlebars@^4.0.11, handlebars@^4.0.2, handlebars@^4.0.3:
2745+
handlebars@^4.0.11, handlebars@^4.0.2:
27112746
version "4.0.11"
27122747
resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.0.11.tgz#630a35dfe0294bc281edae6ffc5d329fc7982dcc"
27132748
dependencies:
@@ -3331,6 +3366,10 @@ istanbul-lib-coverage@^1.1.2, istanbul-lib-coverage@^1.2.0:
33313366
version "1.2.0"
33323367
resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-1.2.0.tgz#f7d8f2e42b97e37fe796114cb0f9d68b5e3a4341"
33333368

3369+
istanbul-lib-coverage@^2.0.0:
3370+
version "2.0.0"
3371+
resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.0.tgz#905e71212052ffb34f2eb008102230bff03940b5"
3372+
33343373
istanbul-lib-hook@^1.1.0:
33353374
version "1.1.0"
33363375
resolved "https://registry.yarnpkg.com/istanbul-lib-hook/-/istanbul-lib-hook-1.1.0.tgz#8538d970372cb3716d53e55523dd54b557a8d89b"
@@ -3350,16 +3389,16 @@ istanbul-lib-instrument@^1.10.1:
33503389
semver "^5.3.0"
33513390

33523391
istanbul-lib-instrument@^2.1.0:
3353-
version "2.1.0"
3354-
resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-2.1.0.tgz#76576f844cdbc4952a8b3904dae09d1eb10e6c4d"
3392+
version "2.2.0"
3393+
resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-2.2.0.tgz#08091ae49d0b330be2a839dc25c250324c4bedaa"
33553394
dependencies:
33563395
"@babel/generator" "7.0.0-beta.49"
33573396
"@babel/parser" "7.0.0-beta.49"
33583397
"@babel/template" "7.0.0-beta.49"
33593398
"@babel/traverse" "7.0.0-beta.49"
33603399
"@babel/types" "7.0.0-beta.49"
3361-
istanbul-lib-coverage "^1.2.0"
3362-
semver "^5.3.0"
3400+
istanbul-lib-coverage "^2.0.0"
3401+
semver "^5.5.0"
33633402

33643403
istanbul-lib-report@^1.1.3:
33653404
version "1.1.3"
@@ -3381,10 +3420,10 @@ istanbul-lib-source-maps@^1.2.5:
33813420
source-map "^0.5.3"
33823421

33833422
istanbul-reports@^1.4.1:
3384-
version "1.4.1"
3385-
resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-1.4.1.tgz#4f2e8e928aa7a05d1da6c427d4098b2655ec7334"
3423+
version "1.5.0"
3424+
resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-1.5.0.tgz#c6c2867fa65f59eb7dcedb7f845dfc76aaee70f9"
33863425
dependencies:
3387-
handlebars "^4.0.3"
3426+
handlebars "^4.0.11"
33883427

33893428
isurl@^1.0.0-alpha5:
33903429
version "1.0.0"
@@ -3402,8 +3441,8 @@ java-properties@^0.2.9:
34023441
resolved "https://registry.yarnpkg.com/java-properties/-/java-properties-0.2.10.tgz#2551560c25fa1ad94d998218178f233ad9b18f60"
34033442

34043443
joi@13.x.x, joi@^13.3.0:
3405-
version "13.3.0"
3406-
resolved "https://registry.yarnpkg.com/joi/-/joi-13.3.0.tgz#4defd4333b539c5d10e444ab44f5a5583480f17c"
3444+
version "13.4.0"
3445+
resolved "https://registry.yarnpkg.com/joi/-/joi-13.4.0.tgz#afc359ee3d8bc5f9b9ba6cdc31b46d44af14cecc"
34073446
dependencies:
34083447
hoek "5.x.x"
34093448
isemail "3.x.x"
@@ -3968,7 +4007,7 @@ micromatch@^2.1.5:
39684007
parse-glob "^3.0.4"
39694008
regex-cache "^0.4.2"
39704009

3971-
micromatch@^3.1.10, micromatch@^3.1.8:
4010+
micromatch@^3.1.10, micromatch@^3.1.4, micromatch@^3.1.8:
39724011
version "3.1.10"
39734012
resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23"
39744013
dependencies:
@@ -4556,8 +4595,8 @@ p-is-promise@^1.1.0:
45564595
resolved "https://registry.yarnpkg.com/p-is-promise/-/p-is-promise-1.1.0.tgz#9c9456989e9f6588017b0434d56097675c3da05e"
45574596

45584597
p-limit@^1.1.0:
4559-
version "1.2.0"
4560-
resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.2.0.tgz#0e92b6bedcb59f022c13d0f1949dc82d15909f1c"
4598+
version "1.3.0"
4599+
resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8"
45614600
dependencies:
45624601
p-try "^1.0.0"
45634602

@@ -5331,9 +5370,9 @@ signal-exit@^3.0.0, signal-exit@^3.0.1, signal-exit@^3.0.2:
53315370
version "3.0.2"
53325371
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d"
53335372

5334-
sinon@^5.0.10:
5335-
version "5.0.10"
5336-
resolved "https://registry.yarnpkg.com/sinon/-/sinon-5.0.10.tgz#a282b36a7475664c9f98719108e5546907129023"
5373+
sinon@^5.1.0:
5374+
version "5.1.0"
5375+
resolved "https://registry.yarnpkg.com/sinon/-/sinon-5.1.0.tgz#65f463422978638fadf750c026719697feb0dca5"
53375376
dependencies:
53385377
"@sinonjs/formatio" "^2.0.0"
53395378
diff "^3.5.0"

0 commit comments

Comments
 (0)