Files
nodejs-negotiator/nodejs-negotiator.spec
Adam Majer 7a8e84c140 Accepting request 613943 from home:kbabioch:branches:devel:languages:nodejs
- Update to version 0.6.1:
  - perf: improve Accept parsing speed
  - perf: improve Accept-Charset parsing speed
  - perf: improve Accept-Encoding parsing speed
  - perf: improve Accept-Language parsing speed
  - Fixed header parsing for "Accept-Language", which was previously
    vulnerable to Regular Expression Denial of Service via a specially
    crafted string (CVE-2016-10539 boo#1095763)
- Update to version 0.6.0:
  - Fix including type extensions in parameters in Accept parsing
  - Fix parsing Accept parameters with quoted equals
  - Fix parsing Accept parameters with quoted semicolons
  - Lazy-load modules from main entry point
  - perf: delay type concatenation until needed
  - perf: enable strict mode
  - perf: hoist regular expressions
  - perf: remove closures getting spec properties
  - perf: remove a closure from media type parsing
  - perf: remove property delete from media type parsing

OBS-URL: https://build.opensuse.org/request/show/613943
OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-negotiator?expand=0&rev=2
2018-06-04 09:55:01 +00:00

51 lines
1.5 KiB
RPMSpec

#
# spec file for package nodejs-negotiator
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define base_name negotiator
Name: nodejs-negotiator
Version: 0.6.1
Release: 0
Summary: HTTP content negotiation
License: MIT
Group: Development/Languages/Other
URL: https://github.com/Pita/async-stacktrace
Source: http://registry.npmjs.org/%{base_name}/-/%{base_name}-%{version}.tgz
BuildRequires: nodejs-packaging
BuildArch: noarch
%{nodejs_find_provides_and_requires}
%description
An HTTP content negotiator for Node.js
%prep
%setup -q -n package
%build
%install
mkdir -p %{buildroot}%{nodejs_modulesdir}/%{base_name}
cp -pr package.json lib *.js \
%{buildroot}%{nodejs_modulesdir}/%{base_name}/
%files
%license LICENSE
%doc *.md
%{_libexecdir}/node_modules
%changelog