@sleet-js/social-near-contract-methods-const 0.0.1 → 0.0.6

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/README.md CHANGED
@@ -9,11 +9,10 @@ const's for social.near smart contract methods
9
9
 
10
10
 
11
11
  ### DEV
12
- to devlop and publish this package
12
+ to develop and publish this package
13
13
  ```bash
14
14
  bun install
15
- bun run index.ts
16
- bun build index.ts
15
+ bun run build
17
16
  bun publish --dry-run
18
17
  bunx npm login
19
18
  bun publish --access public
@@ -1,6 +1,6 @@
1
- // =======================================
2
- // ====== social_near_methods_const ======
3
- export const social_near_methods_const = {
1
+ // @bun
2
+ // index.ts
3
+ var social_near_methods_const = {
4
4
  storage_deposit: "storage_deposit",
5
5
  storage_withdraw: "storage_withdraw",
6
6
  storage_unregister: "storage_unregister",
@@ -29,5 +29,8 @@ export const social_near_methods_const = {
29
29
  get_account_storage: "get_account_storage",
30
30
  new: "new",
31
31
  set_status: "set_status",
32
- get_status: "get_status",
33
- } as const;
32
+ get_status: "get_status"
33
+ };
34
+ export {
35
+ social_near_methods_const
36
+ };
package/package.json CHANGED
@@ -1,14 +1,24 @@
1
1
  {
2
2
  "name": "@sleet-js/social-near-contract-methods-const",
3
- "version": "0.0.1",
3
+ "version": "0.0.6",
4
+ "description": "TypeScript constants for Social NEAR smart contract methods including data storage, accounts, and permissions",
4
5
  "repository": {
5
6
  "type": "git",
6
7
  "url": "https://github.com/sleet-js/smart-contract-methods-const.git"
7
8
  },
8
9
  "homepage": "https://sleet-js.near.page",
9
10
  "license": "MIT",
11
+ "main": "dist/index.js",
10
12
  "module": "index.ts",
13
+ "types": "dist/index.d.ts",
11
14
  "type": "module",
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "scripts": {
19
+ "build": "bun build index.ts --outdir dist --target bun",
20
+ "prepublishOnly": "bun run build"
21
+ },
12
22
  "devDependencies": {
13
23
  "@types/bun": "latest"
14
24
  },
package/tsconfig.json DELETED
@@ -1,28 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- // Environment setup & latest features
4
- "lib": ["ESNext"],
5
- "target": "ESNext",
6
- "module": "ESNext",
7
- "moduleDetection": "force",
8
- "jsx": "react-jsx",
9
- "allowJs": true,
10
-
11
- // Bundler mode
12
- "moduleResolution": "bundler",
13
- "allowImportingTsExtensions": true,
14
- "verbatimModuleSyntax": true,
15
- "noEmit": true,
16
-
17
- // Best practices
18
- "strict": true,
19
- "skipLibCheck": true,
20
- "noFallthroughCasesInSwitch": true,
21
- "noUncheckedIndexedAccess": true,
22
-
23
- // Some stricter flags (disabled by default)
24
- "noUnusedLocals": false,
25
- "noUnusedParameters": false,
26
- "noPropertyAccessFromIndexSignature": false
27
- }
28
- }