summaryrefslogtreecommitdiffstats
path: root/pkg/runner/testdata/actions/node20/node_modules/deprecation
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2024-10-20 23:07:42 +0200
committerDaniel Baumann <daniel@debian.org>2024-11-09 15:38:42 +0100
commit714c83b2736d7e308bc33c49057952490eb98be2 (patch)
tree1d9ba7035798368569cd49056f4d596efc908cd8 /pkg/runner/testdata/actions/node20/node_modules/deprecation
parentInitial commit. (diff)
downloadforgejo-act-debian.tar.xz
forgejo-act-debian.zip
Adding upstream version 1.21.4.HEADupstream/1.21.4upstreamdebian
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'pkg/runner/testdata/actions/node20/node_modules/deprecation')
-rw-r--r--pkg/runner/testdata/actions/node20/node_modules/deprecation/LICENSE15
-rw-r--r--pkg/runner/testdata/actions/node20/node_modules/deprecation/README.md77
-rw-r--r--pkg/runner/testdata/actions/node20/node_modules/deprecation/dist-node/index.js20
-rw-r--r--pkg/runner/testdata/actions/node20/node_modules/deprecation/dist-src/index.js14
-rw-r--r--pkg/runner/testdata/actions/node20/node_modules/deprecation/dist-types/index.d.ts3
-rw-r--r--pkg/runner/testdata/actions/node20/node_modules/deprecation/dist-web/index.js16
-rw-r--r--pkg/runner/testdata/actions/node20/node_modules/deprecation/package.json34
7 files changed, 179 insertions, 0 deletions
diff --git a/pkg/runner/testdata/actions/node20/node_modules/deprecation/LICENSE b/pkg/runner/testdata/actions/node20/node_modules/deprecation/LICENSE
new file mode 100644
index 0000000..1683b58
--- /dev/null
+++ b/pkg/runner/testdata/actions/node20/node_modules/deprecation/LICENSE
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) Gregor Martynus and contributors
+
+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/pkg/runner/testdata/actions/node20/node_modules/deprecation/README.md b/pkg/runner/testdata/actions/node20/node_modules/deprecation/README.md
new file mode 100644
index 0000000..648809d
--- /dev/null
+++ b/pkg/runner/testdata/actions/node20/node_modules/deprecation/README.md
@@ -0,0 +1,77 @@
+# deprecation
+
+> Log a deprecation message with stack
+
+![build](https://action-badges.now.sh/gr2m/deprecation)
+
+## Usage
+
+<table>
+<tbody valign=top align=left>
+<tr><th>
+Browsers
+</th><td width=100%>
+
+Load `deprecation` directly from [cdn.pika.dev](https://cdn.pika.dev)
+
+```html
+<script type="module">
+ import { Deprecation } from "https://cdn.pika.dev/deprecation/v2";
+</script>
+```
+
+</td></tr>
+<tr><th>
+Node
+</th><td>
+
+Install with `npm install deprecation`
+
+```js
+const { Deprecation } = require("deprecation");
+// or: import { Deprecation } from "deprecation";
+```
+
+</td></tr>
+</tbody>
+</table>
+
+```js
+function foo() {
+ bar();
+}
+
+function bar() {
+ baz();
+}
+
+function baz() {
+ console.warn(new Deprecation("[my-lib] foo() is deprecated, use bar()"));
+}
+
+foo();
+// { Deprecation: [my-lib] foo() is deprecated, use bar()
+// at baz (/path/to/file.js:12:15)
+// at bar (/path/to/file.js:8:3)
+// at foo (/path/to/file.js:4:3)
+```
+
+To log a deprecation message only once, you can use the [once](https://www.npmjs.com/package/once) module.
+
+```js
+const Deprecation = require("deprecation");
+const once = require("once");
+
+const deprecateFoo = once(console.warn);
+
+function foo() {
+ deprecateFoo(new Deprecation("[my-lib] foo() is deprecated, use bar()"));
+}
+
+foo();
+foo(); // logs nothing
+```
+
+## License
+
+[ISC](LICENSE)
diff --git a/pkg/runner/testdata/actions/node20/node_modules/deprecation/dist-node/index.js b/pkg/runner/testdata/actions/node20/node_modules/deprecation/dist-node/index.js
new file mode 100644
index 0000000..9da1775
--- /dev/null
+++ b/pkg/runner/testdata/actions/node20/node_modules/deprecation/dist-node/index.js
@@ -0,0 +1,20 @@
+'use strict';
+
+Object.defineProperty(exports, '__esModule', { value: true });
+
+class Deprecation extends Error {
+ constructor(message) {
+ super(message); // Maintains proper stack trace (only available on V8)
+
+ /* istanbul ignore next */
+
+ if (Error.captureStackTrace) {
+ Error.captureStackTrace(this, this.constructor);
+ }
+
+ this.name = 'Deprecation';
+ }
+
+}
+
+exports.Deprecation = Deprecation;
diff --git a/pkg/runner/testdata/actions/node20/node_modules/deprecation/dist-src/index.js b/pkg/runner/testdata/actions/node20/node_modules/deprecation/dist-src/index.js
new file mode 100644
index 0000000..7950fdc
--- /dev/null
+++ b/pkg/runner/testdata/actions/node20/node_modules/deprecation/dist-src/index.js
@@ -0,0 +1,14 @@
+export class Deprecation extends Error {
+ constructor(message) {
+ super(message); // Maintains proper stack trace (only available on V8)
+
+ /* istanbul ignore next */
+
+ if (Error.captureStackTrace) {
+ Error.captureStackTrace(this, this.constructor);
+ }
+
+ this.name = 'Deprecation';
+ }
+
+} \ No newline at end of file
diff --git a/pkg/runner/testdata/actions/node20/node_modules/deprecation/dist-types/index.d.ts b/pkg/runner/testdata/actions/node20/node_modules/deprecation/dist-types/index.d.ts
new file mode 100644
index 0000000..e3ae7ad
--- /dev/null
+++ b/pkg/runner/testdata/actions/node20/node_modules/deprecation/dist-types/index.d.ts
@@ -0,0 +1,3 @@
+export class Deprecation extends Error {
+ name: "Deprecation";
+}
diff --git a/pkg/runner/testdata/actions/node20/node_modules/deprecation/dist-web/index.js b/pkg/runner/testdata/actions/node20/node_modules/deprecation/dist-web/index.js
new file mode 100644
index 0000000..c6bbda7
--- /dev/null
+++ b/pkg/runner/testdata/actions/node20/node_modules/deprecation/dist-web/index.js
@@ -0,0 +1,16 @@
+class Deprecation extends Error {
+ constructor(message) {
+ super(message); // Maintains proper stack trace (only available on V8)
+
+ /* istanbul ignore next */
+
+ if (Error.captureStackTrace) {
+ Error.captureStackTrace(this, this.constructor);
+ }
+
+ this.name = 'Deprecation';
+ }
+
+}
+
+export { Deprecation };
diff --git a/pkg/runner/testdata/actions/node20/node_modules/deprecation/package.json b/pkg/runner/testdata/actions/node20/node_modules/deprecation/package.json
new file mode 100644
index 0000000..a45fd51
--- /dev/null
+++ b/pkg/runner/testdata/actions/node20/node_modules/deprecation/package.json
@@ -0,0 +1,34 @@
+{
+ "name": "deprecation",
+ "description": "Log a deprecation message with stack",
+ "version": "2.3.1",
+ "license": "ISC",
+ "files": [
+ "dist-*/",
+ "bin/"
+ ],
+ "esnext": "dist-src/index.js",
+ "main": "dist-node/index.js",
+ "module": "dist-web/index.js",
+ "types": "dist-types/index.d.ts",
+ "pika": true,
+ "sideEffects": false,
+ "keywords": [
+ "deprecate",
+ "deprecated",
+ "deprecation"
+ ],
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/gr2m/deprecation.git"
+ },
+ "dependencies": {},
+ "devDependencies": {
+ "@pika/pack": "^0.3.7",
+ "@pika/plugin-build-node": "^0.4.0",
+ "@pika/plugin-build-types": "^0.4.0",
+ "@pika/plugin-build-web": "^0.4.0",
+ "@pika/plugin-standard-pkg": "^0.4.0",
+ "semantic-release": "^15.13.3"
+ }
+}