diff --git a/JSONSelect-0.4.0.tgz b/JSONSelect-0.4.0.tgz deleted file mode 100644 index ab5eca0a370f2c8064e6ac7a2b91a690e3e50a14..0000000000000000000000000000000000000000 Binary files a/JSONSelect-0.4.0.tgz and /dev/null differ diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 4219c9c297142103482b8d556c830a37bae5ca51..0000000000000000000000000000000000000000 --- a/LICENSE +++ /dev/null @@ -1,13 +0,0 @@ -Copyright (c) 2011, Lloyd Hilaiel - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/README.en.md b/README.en.md deleted file mode 100644 index c205e51ef07215d46d83d93c55c53e35c8af1559..0000000000000000000000000000000000000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# nodejs-jsonselect - -#### Description -CSS-like selectors for JSON - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md index 89dacc33b1723788e7532523f6a621514a86b4c1..1bf67687a47a1081d2229666ba42c09b6b9bd148 100644 --- a/README.md +++ b/README.md @@ -1,37 +1,3 @@ -# nodejs-jsonselect +Deprecated since Aug 2025 -#### 介绍 -CSS-like selectors for JSON - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 码云特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 -5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) +- https://gitee.com/openeuler/release-management/pulls/2363 diff --git a/nodejs-jsonselect.spec b/nodejs-jsonselect.spec deleted file mode 100644 index 29dfcab6b614ce2efddc1fb698bb2d651ed1979b..0000000000000000000000000000000000000000 --- a/nodejs-jsonselect.spec +++ /dev/null @@ -1,63 +0,0 @@ -%{?nodejs_find_provides_and_requires} -%global packagename JSONSelect -%global enable_tests 1 -Name: nodejs-jsonselect -Version: 0.4.0 -Release: 1 -Summary: CSS-like selectors for JSON -License: ISC -URL: https://github.com/lloyd/JSONSelect.git -Source0: https://registry.npmjs.org/JSONSelect/-/JSONSelect-%{version}.tgz -Source1: https://raw.githubusercontent.com/lloyd/JSONSelect/master/LICENSE -Patch0000: nodejs-jsonselect_fix-print.patch -BuildArch: noarch -ExclusiveArch: %{nodejs_arches} noarch -BuildRequires: nodejs-packaging -%if 0%{?enable_tests} -BuildRequires: uglify-js -%endif -%description -CSS-like selectors for JSON - -%prep -%setup -q -n package -cp -p %{SOURCE1} . -mv src/build src/build.disabled -mkdir src/build -cp src/build.disabled/post-compile.js src/build -rm -rf src/build.disabled src/dist -mkdir src/dist -rm -rf site -%patch0000 -p1 - -%build -pushd src -make project -%{_bindir}/uglifyjs dist/jsonselect.js > dist/jsonselect.min.js.tmp -%__nodejs build/post-compile.js dist/jsonselect.min.js.tmp > dist/jsonselect.min.js -popd -mv src src.complete -mkdir src -cp src.complete/dist/*.js src/ - -%install -mkdir -p %{buildroot}%{nodejs_sitelib}/JSONSelect -cp -pr package.json src/ \ - %{buildroot}%{nodejs_sitelib}/JSONSelect -%nodejs_symlink_deps -%if 0%{?enable_tests} - -%check -%nodejs_symlink_deps --check -%__nodejs src.complete/test/run.js -%endif - -%files -%{!?_licensedir:%global license %doc} -%doc *.md -%license LICENSE -%{nodejs_sitelib}/JSONSelect - -%changelog -* Thu Aug 20 2020 yaokai - 0.4.0-1 -- Package init diff --git a/nodejs-jsonselect.yaml b/nodejs-jsonselect.yaml deleted file mode 100644 index ca6420d0e193dc8fd838af24d82b61cabcbded05..0000000000000000000000000000000000000000 --- a/nodejs-jsonselect.yaml +++ /dev/null @@ -1,4 +0,0 @@ -version_control: github -src_repo: lloyd/JSONSelect -tag_pattern: "^" -seperator: "." diff --git a/nodejs-jsonselect_fix-print.patch b/nodejs-jsonselect_fix-print.patch deleted file mode 100644 index c898c4a28f17199fe09d3a54e9300aa759429ea0..0000000000000000000000000000000000000000 --- a/nodejs-jsonselect_fix-print.patch +++ /dev/null @@ -1,37 +0,0 @@ -diff --git a/src/build/post-compile.js b/src/build/post-compile.js -index 4bcafe8..bfdf083 100644 ---- a/src/build/post-compile.js -+++ b/src/build/post-compile.js -@@ -1,7 +1,6 @@ - #!/usr/bin/env node - --var print = require("sys").print, -- src = require("fs").readFileSync(process.argv[2], "utf8"); -+var src = require("fs").readFileSync(process.argv[2], "utf8"); - - // Previously done in sed but reimplemented here due to portability issues --print(src.replace(/^(\s*\*\/)(.+)/m, "$1\n$2;")); -+console.log(src.replace(/^(\s*\*\/)(.+)/m, "$1\n$2;")); -diff --git a/src/test/run.js b/src/test/run.js -index c873c3a..1c2a664 100644 ---- a/src/test/run.js -+++ b/src/test/run.js -@@ -6,8 +6,7 @@ - - const fs = require('fs'), - path = require('path'), --jsonselect = require('../jsonselect.js'), -- sys = require('sys'); -+jsonselect = require('../jsonselect.js') - - var pathToTests = path.join(__dirname, "tests"); - -@@ -46,7 +45,7 @@ function runTests() { - for (var d in tests[l]) { - console.log(" level " + l + " tests against \"" + d + ".json\":"); - for (var i = 0; i < tests[l][d].length; i++) { -- sys.print(" " + tests[l][d][i][0] + ": "); -+ console.log(" " + tests[l][d][i][0] + ": "); - try { - runOneSync(d, tests[l][d][i][0], tests[l][d][i][1]); - numPassed++;