@rljson/edge 0.0.0-stage → 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Rljson
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,11 @@
1
- # Temporary Holding Version
1
+ <!--
2
+ @license
3
+ Copyright (c) 2025 Rljson
2
4
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
5
+ Use of this source code is governed by terms that can be
6
+ found in the LICENSE file in the root of this package.
7
+ -->
8
+
9
+ # @rljson/edge - The Rljson Example Data Generator
10
+
11
+ ## Users
package/dist/README.md ADDED
@@ -0,0 +1,11 @@
1
+ <!--
2
+ @license
3
+ Copyright (c) 2025 Rljson
4
+
5
+ Use of this source code is governed by terms that can be
6
+ found in the LICENSE file in the root of this package.
7
+ -->
8
+
9
+ # @rljson/edge - The Rljson Example Data Generator
10
+
11
+ ## Users
package/dist/edge.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export declare class Edge {
2
+ /** Example instance for test purposes */
3
+ static get example(): Edge;
4
+ }
package/dist/edge.js ADDED
@@ -0,0 +1,15 @@
1
+ //#region src/edge.ts
2
+ // @license
3
+ var Edge = class Edge {
4
+ /** Example instance for test purposes */
5
+ static get example() {
6
+ return new Edge();
7
+ }
8
+ };
9
+ //#endregion
10
+ //#region src/index.ts
11
+ // @license
12
+ //#endregion
13
+ export { Edge };
14
+
15
+ //# sourceMappingURL=edge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edge.js","names":[],"sources":["../src/edge.ts","../src/index.ts"],"sourcesContent":["// @license\n// Copyright (c) 2025 Rljson\n//\n// Use of this source code is governed by terms that can be\n// found in the LICENSE file in the root of this package.\n\n// .............................................................................\nexport class Edge {\n /** Example instance for test purposes */\n static get example(): Edge {\n return new Edge();\n }\n}\n","// @license\n// Copyright (c) 2025 Rljson\n//\n// Use of this source code is governed by terms that can be\n// found in the LICENSE file in the root of this package.\n\nexport { Edge } from './edge.ts';\n"],"mappings":";;AAOA,IAAa,OAAb,MAAa,KAAK;;CAEhB,WAAW,UAAgB;EACzB,OAAO,IAAI,KAAK;CAClB;AACF"}
@@ -0,0 +1 @@
1
+ export declare const example: () => void;
@@ -0,0 +1 @@
1
+ export { Edge } from './edge.ts';
@@ -0,0 +1,27 @@
1
+ // @license
2
+ // Copyright (c) 2025 Rljson
3
+ //
4
+ // Use of this source code is governed by terms that can be
5
+ // found in the LICENSE file in the root of this package.
6
+
7
+ import { Edge } from './edge.ts';
8
+
9
+
10
+ export const example = () => {
11
+ // Print methods
12
+ const l = console.log;
13
+ const h1 = (text: string) => l(`${text}`);
14
+ const h2 = (text: string) => l(` ${text.split('\n')}`);
15
+ const p = (text: string) => l(` ${text}`);
16
+
17
+ // Example
18
+ h1('Edge.example');
19
+ h2('Returns an instance of the Edge.');
20
+ const example = Edge.example;
21
+ p(JSON.stringify(example, null, 2));
22
+ };
23
+
24
+ /*
25
+ // Run via "npx vite-node src/example.ts"
26
+ example();
27
+ */
package/package.json CHANGED
@@ -1,6 +1,60 @@
1
1
  {
2
2
  "name": "@rljson/edge",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.0.0",
4
+ "description": "Example Data Generator",
5
+ "homepage": "https://github.com/rljson/edge",
6
+ "bugs": "https://github.com/rljson/edge/issues",
7
+ "private": false,
8
+ "publishConfig": {
9
+ "access": "public"
10
+ },
11
+ "license": "MIT",
12
+ "engines": {
13
+ "node": ">=22.14.0"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/rljson/edge.git"
18
+ },
19
+ "main": "dist/edge.js",
20
+ "types": "dist/index.d.ts",
21
+ "files": [
22
+ "dist"
23
+ ],
24
+ "type": "module",
25
+ "devDependencies": {
26
+ "@rljson/dna-rljson": "^0.2.0",
27
+ "@tssuite/helix-js": "^0.3.0",
28
+ "@types/node": "^26.6.4",
29
+ "@typescript-eslint/eslint-plugin": "^8.71.0",
30
+ "@typescript-eslint/parser": "^8.71.0",
31
+ "@vitest/coverage-v8": "^5.0.3",
32
+ "cross-env": "^10.1.0",
33
+ "eslint": "^10.12.0",
34
+ "eslint-plugin-jsdoc": "^65.1.0",
35
+ "eslint-plugin-tsdoc": "^0.5.4",
36
+ "globals": "^17.13.0",
37
+ "jsdoc": "^4.0.5",
38
+ "read-pkg": "^10.1.0",
39
+ "typescript": "~6.0.3",
40
+ "typescript-eslint": "^8.71.0",
41
+ "vite": "^8.3.2",
42
+ "vite-node": "^6.0.0",
43
+ "vite-plugin-dts": "^5.1.2",
44
+ "vite-tsconfig-paths": "^6.1.1",
45
+ "vitest": "^5.0.3",
46
+ "vitest-dom": "^0.1.1"
47
+ },
48
+ "dependencies": {
49
+ "@rljson/hash": "^0.0.19",
50
+ "@rljson/json": "^0.0.23",
51
+ "@rljson/rljson": "^0.0.84"
52
+ },
53
+ "scripts": {
54
+ "build": "pnpm test && pnpm vite build && tsc && node scripts/copy-readme-to-dist.js",
55
+ "test": "pnpm vitest run --coverage && pnpm run lint",
56
+ "prebuild": "pnpm test",
57
+ "lint": "pnpm eslint",
58
+ "updateGoldens": "cross-env UPDATE_GOLDENS=true pnpm test"
59
+ }
6
60
  }