6 Star 0 Fork 3

src-openEuler/nodejs-json-stringify-safe

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nodejs-json-stringify-safe.spec 1.23 KB
一键复制 编辑 原始数据 按行查看 历史
jackie_wu 提交于 5年前 . package init
%{?nodejs_find_provides_and_requires}
%global enable_tests 0
Name: nodejs-json-stringify-safe
Version: 5.0.1
Release: 1
Summary: JSON.stringify that handles circular references
License: BSD
URL: https://github.com/isaacs/json-stringify-safe
Source0: https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-%{version}.tgz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: npm(mocha) npm(must) npm(sinon)
%endif
%description
This module provides functionality similar to JavaScript's JSON.stringify, but
it doesn't blow up when it encounters circular references.
%prep
%setup -q -n package
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/json-stringify-safe
cp -pr stringify.js package.json %{buildroot}%{nodejs_sitelib}/json-stringify-safe
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%__nodejs -e "require('./')"
%if 0%{?enable_tests}
%__nodejs test.js
%endif
%files
%doc README.md CHANGELOG.md
%license LICENSE
%{nodejs_sitelib}/json-stringify-safe
%changelog
* Mon Aug 17 2020 wutao <wutao61@huawei.com> - 5.0.1-1
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/nodejs-json-stringify-safe.git
git@gitee.com:src-openeuler/nodejs-json-stringify-safe.git
src-openeuler
nodejs-json-stringify-safe
nodejs-json-stringify-safe
openEuler-22.03-LTS-SP2

搜索帮助