@cryptforge/core 0.1.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/dist/index.js ADDED
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ createCryptForgeClient: () => createCryptForgeClient,
24
+ version: () => version
25
+ });
26
+ module.exports = __toCommonJS(index_exports);
27
+
28
+ // src/types/client.ts
29
+ function createCryptForgeClient(options) {
30
+ return {
31
+ secrets: options.secrets,
32
+ presence: options.presence,
33
+ data: options.data,
34
+ appInfo: options.appInfo,
35
+ blockchain: options.blockchain,
36
+ auth: options.auth
37
+ };
38
+ }
39
+
40
+ // src/index.ts
41
+ var version = "0.1.0";
42
+ // Annotate the CommonJS export names for ESM import in node:
43
+ 0 && (module.exports = {
44
+ createCryptForgeClient,
45
+ version
46
+ });
package/dist/index.mjs ADDED
@@ -0,0 +1,18 @@
1
+ // src/types/client.ts
2
+ function createCryptForgeClient(options) {
3
+ return {
4
+ secrets: options.secrets,
5
+ presence: options.presence,
6
+ data: options.data,
7
+ appInfo: options.appInfo,
8
+ blockchain: options.blockchain,
9
+ auth: options.auth
10
+ };
11
+ }
12
+
13
+ // src/index.ts
14
+ var version = "0.1.0";
15
+ export {
16
+ createCryptForgeClient,
17
+ version
18
+ };
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@cryptforge/core",
3
+ "version": "0.1.0",
4
+ "description": "Core types and interfaces for the CryptForge SDK",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.js"
13
+ }
14
+ },
15
+ "keywords": [
16
+ "cryptforge",
17
+ "cryptocurrency",
18
+ "blockchain",
19
+ "types",
20
+ "typescript"
21
+ ],
22
+ "author": "Viktor Albus",
23
+ "license": "MIT",
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "https://github.com/viktor-albus/cryptforge-sdk.git",
27
+ "directory": "packages/core"
28
+ },
29
+ "homepage": "https://github.com/viktor-albus/cryptforge-sdk#readme",
30
+ "bugs": {
31
+ "url": "https://github.com/viktor-albus/cryptforge-sdk/issues"
32
+ },
33
+ "files": [
34
+ "dist",
35
+ "README.md"
36
+ ],
37
+ "scripts": {
38
+ "build": "tsup",
39
+ "test": "echo \"Error: no test specified\" && exit 1"
40
+ },
41
+ "devDependencies": {
42
+ "@types/node": "^20.10.0"
43
+ }
44
+ }