diff --git a/is-regex-1.0.4.tgz b/is-regex-1.0.4.tgz new file mode 100644 index 0000000..af9a2f8 Binary files /dev/null and b/is-regex-1.0.4.tgz differ diff --git a/nodejs-is-regex.spec b/nodejs-is-regex.spec new file mode 100644 index 0000000..13c346c --- /dev/null +++ b/nodejs-is-regex.spec @@ -0,0 +1,39 @@ +%{?nodejs_find_provides_and_requires} +Name: nodejs-is-regex +Version: 1.0.4 +Release: 1 +Summary: Is this value a JS regex? +License: MIT +URL: https://github.com/ljharb/is-regex +Source0: https://registry.npmjs.org/is-regex/-/is-regex-%{version}.tgz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging npm(tape) +%description +Is this value a JS regex? This module works cross-realm/iframe, and +despite ES6 @@toStringTag. + +%prep +%setup -q -n package +rm -rf node_modules + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/is-regex +cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/is-regex +%nodejs_symlink_deps + +%check +%nodejs_symlink_deps --check +%{__nodejs} --harmony --es-staging test.js + +%files +%{!?_licensedir:%global license %doc} +%doc README.md CHANGELOG.md +%license LICENSE +%{nodejs_sitelib}/is-regex + +%changelog +* Thu Aug 20 2020 wangxiao - 1.0.4-1 +- Package init diff --git a/nodejs-is-regex.yaml b/nodejs-is-regex.yaml new file mode 100644 index 0000000..862cdaf --- /dev/null +++ b/nodejs-is-regex.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/ljharb/is-regex +version_control: github +src_repo: ljharb/is-regex +tag_prefix: "^v" +seperator: "."