Compare commits
10 Commits
3e3d3d8560
...
e5bf9779a5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e5bf9779a5 | ||
|
|
8d39434041 | ||
|
|
3b6b73d029 | ||
|
|
19464d7f30 | ||
|
|
33d0f97034 | ||
|
|
192c9d5c3b | ||
|
|
dd43af661f | ||
|
|
ba59fc595f | ||
|
|
541b38179d | ||
|
|
b4c639fb37 |
56
0001-remove-unused-hapi-dependencies.patch
Normal file
56
0001-remove-unused-hapi-dependencies.patch
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
From 6d2aa9e5677ba4882e4a79cc8b58f53bf04bc038 Mon Sep 17 00:00:00 2001
|
||||||
|
From: chen-jan <chen_aka_jan@163.com>
|
||||||
|
Date: Thu, 1 Jun 2023 09:22:01 +0800
|
||||||
|
Subject: [PATCH] remove unused hapi dependencies
|
||||||
|
|
||||||
|
---
|
||||||
|
lib/client.js | 5 -----
|
||||||
|
lib/server.js | 5 -----
|
||||||
|
lib/utils.js | 1 -
|
||||||
|
3 files changed, 11 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/lib/client.js b/lib/client.js
|
||||||
|
index 7bd383a..5946716 100644
|
||||||
|
--- a/lib/client.js
|
||||||
|
+++ b/lib/client.js
|
||||||
|
@@ -2,11 +2,6 @@
|
||||||
|
|
||||||
|
const Url = require('url');
|
||||||
|
|
||||||
|
-const B64 = require('@hapi/b64');
|
||||||
|
-const Boom = require('@hapi/boom');
|
||||||
|
-const Cryptiles = require('@hapi/cryptiles');
|
||||||
|
-const Hoek = require('@hapi/hoek');
|
||||||
|
-
|
||||||
|
const Crypto = require('./crypto');
|
||||||
|
const Utils = require('./utils');
|
||||||
|
|
||||||
|
diff --git a/lib/server.js b/lib/server.js
|
||||||
|
index 30a85ca..3850990 100644
|
||||||
|
--- a/lib/server.js
|
||||||
|
+++ b/lib/server.js
|
||||||
|
@@ -1,10 +1,5 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
-const B64 = require('@hapi/b64');
|
||||||
|
-const Boom = require('@hapi/boom');
|
||||||
|
-const Cryptiles = require('@hapi/cryptiles');
|
||||||
|
-const Hoek = require('@hapi/hoek');
|
||||||
|
-
|
||||||
|
const Crypto = require('./crypto');
|
||||||
|
const Utils = require('./utils');
|
||||||
|
|
||||||
|
diff --git a/lib/utils.js b/lib/utils.js
|
||||||
|
index 3a054e3..53a06ff 100644
|
||||||
|
--- a/lib/utils.js
|
||||||
|
+++ b/lib/utils.js
|
||||||
|
@@ -1,6 +1,5 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
-const Boom = require('@hapi/boom');
|
||||||
|
const Url = require('url');
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
|
|
||||||
BIN
hawk-9.0.1.tgz
Normal file
BIN
hawk-9.0.1.tgz
Normal file
Binary file not shown.
60
nodejs-hawk.spec
Normal file
60
nodejs-hawk.spec
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
%global enable_tests 0
|
||||||
|
Name: nodejs-hawk
|
||||||
|
Version: 9.0.1
|
||||||
|
Release: 2
|
||||||
|
Summary: HTTP Hawk authentication scheme
|
||||||
|
License: BSD-3-Clause
|
||||||
|
URL: https://github.com/hueniverse/hawk
|
||||||
|
Source0: https://registry.npmjs.org/hawk/-/hawk-%{version}.tgz
|
||||||
|
Patch0: 0001-remove-unused-hapi-dependencies.patch
|
||||||
|
BuildArch: noarch
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
BuildRequires: nodejs-packaging
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
BuildRequires: npm(lab) npm(code)
|
||||||
|
%endif
|
||||||
|
%description
|
||||||
|
Hawk is an HTTP authentication scheme using a message authentication code (MAC)
|
||||||
|
algorithm to provide partial HTTP request cryptographic verification.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n package -p1
|
||||||
|
%nodejs_fixdep -r @hapi/b64
|
||||||
|
%nodejs_fixdep -r @hapi/boom
|
||||||
|
%nodejs_fixdep -r @hapi/cryptiles
|
||||||
|
%nodejs_fixdep -r @hapi/hoek
|
||||||
|
chmod a-x README.md package.json lib/*
|
||||||
|
sed -i 's/\r$//' README.md
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{nodejs_sitelib}/hawk
|
||||||
|
cp -pr package.json lib %{buildroot}%{nodejs_sitelib}/hawk
|
||||||
|
%nodejs_symlink_deps
|
||||||
|
|
||||||
|
%check
|
||||||
|
%nodejs_symlink_deps --check
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
%{nodejs_sitelib}/lab/bin/lab -a code -t 100 -L
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.md
|
||||||
|
%{nodejs_sitelib}/hawk
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Aug 29 2023 wulei <wu_lei@hoperun.com> - 9.0.1-2
|
||||||
|
- Remove unused hapi dependencies
|
||||||
|
|
||||||
|
* Thu Jun 30 2022 houyingchao <houyingchao@h-partners.com> - 9.0.1-1
|
||||||
|
- Upgrade to 9.0.1
|
||||||
|
|
||||||
|
* Tue May 17 2022 houyingchao <houyingchao@h-partners.com> - 4.1.2-3
|
||||||
|
- Fix CVE-2022-29167
|
||||||
|
|
||||||
|
* Mon May 9 2022 liyanan <liyanan32@h-partners.com> - 4.1.2-2
|
||||||
|
- License compliance rectification
|
||||||
|
|
||||||
|
* Thu Aug 20 2020 wangxiao <wangxiao65@huawei.com> - 4.1.2-1
|
||||||
|
- Package init
|
||||||
5
nodejs-hawk.yaml
Normal file
5
nodejs-hawk.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
git_url: https://github.com/hueniverse/hawk
|
||||||
|
version_control: github
|
||||||
|
src_repo: hueniverse/hawk
|
||||||
|
tag_prefix: "^v"
|
||||||
|
seperator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user