@beclab/olaresid 0.1.5 → 0.1.7

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.
Files changed (51) hide show
  1. package/README.md +10 -0
  2. package/dist/business/index.d.ts +3 -3
  3. package/dist/business/index.d.ts.map +1 -1
  4. package/dist/business/index.js +31 -37
  5. package/dist/business/index.js.map +1 -1
  6. package/dist/cli.js +3 -4
  7. package/dist/cli.js.map +1 -1
  8. package/dist/index.d.ts +1 -1
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +1 -6
  11. package/dist/index.js.map +1 -1
  12. package/dist/utils/crypto-utils.d.ts +4 -32
  13. package/dist/utils/crypto-utils.d.ts.map +1 -1
  14. package/dist/utils/crypto-utils.js +32 -95
  15. package/dist/utils/crypto-utils.js.map +1 -1
  16. package/examples/crypto-utilities.ts +3 -3
  17. package/examples/ed25519-jwk.ts +1 -1
  18. package/examples/frontend-demo/index.html +13 -0
  19. package/examples/frontend-demo/package-lock.json +5370 -0
  20. package/examples/frontend-demo/package.json +33 -0
  21. package/examples/frontend-demo/src/App.vue +1211 -0
  22. package/examples/frontend-demo/src/main.ts +8 -0
  23. package/examples/frontend-demo/src/style.css +341 -0
  24. package/examples/frontend-demo/tsconfig.json +24 -0
  25. package/examples/frontend-demo/webpack.config.js +87 -0
  26. package/examples/generate-mnemonic.ts +3 -3
  27. package/examples/register-subdomain.ts +1 -1
  28. package/examples/transfer-domain.ts +1 -1
  29. package/package.json +2 -1
  30. package/src/business/index.ts +23 -34
  31. package/src/cli.ts +3 -4
  32. package/src/index.ts +1 -6
  33. package/src/utils/crypto-utils.ts +34 -112
  34. package/examples/encoding-utils.ts +0 -96
  35. package/examples/quasar-demo/.eslintrc.js +0 -23
  36. package/examples/quasar-demo/.quasar/app.js +0 -43
  37. package/examples/quasar-demo/.quasar/client-entry.js +0 -38
  38. package/examples/quasar-demo/.quasar/client-prefetch.js +0 -130
  39. package/examples/quasar-demo/.quasar/quasar-user-options.js +0 -16
  40. package/examples/quasar-demo/README.md +0 -49
  41. package/examples/quasar-demo/index.html +0 -11
  42. package/examples/quasar-demo/package-lock.json +0 -6407
  43. package/examples/quasar-demo/package.json +0 -36
  44. package/examples/quasar-demo/quasar.config.js +0 -73
  45. package/examples/quasar-demo/src/App.vue +0 -13
  46. package/examples/quasar-demo/src/css/app.scss +0 -1
  47. package/examples/quasar-demo/src/layouts/MainLayout.vue +0 -21
  48. package/examples/quasar-demo/src/pages/IndexPage.vue +0 -905
  49. package/examples/quasar-demo/src/router/index.ts +0 -25
  50. package/examples/quasar-demo/src/router/routes.ts +0 -11
  51. package/examples/quasar-demo/tsconfig.json +0 -28
@@ -1,36 +0,0 @@
1
- {
2
- "name": "olaresid-quasar-demo",
3
- "version": "0.0.1",
4
- "description": "OlaresID Quasar Demo - Simple demo",
5
- "productName": "OlaresID Demo",
6
- "author": "Olares Team",
7
- "private": true,
8
- "scripts": {
9
- "dev": "quasar dev",
10
- "build": "quasar build"
11
- },
12
- "dependencies": {
13
- "@quasar/extras": "^1.16.4",
14
- "@beclab/olaresid": "file:../../",
15
- "quasar": "^2.6.0",
16
- "vue": "^3.0.0",
17
- "vue-router": "^4.0.0"
18
- },
19
- "devDependencies": {
20
- "@quasar/app-vite": "^1.3.0",
21
- "@types/node": "^12.20.21",
22
- "@typescript-eslint/eslint-plugin": "^5.10.0",
23
- "@typescript-eslint/parser": "^5.10.0",
24
- "autoprefixer": "^10.4.2",
25
- "eslint": "^8.10.0",
26
- "eslint-config-prettier": "^8.1.0",
27
- "eslint-plugin-vue": "^9.0.0",
28
- "prettier": "^2.5.1",
29
- "typescript": "^4.5.4"
30
- },
31
- "engines": {
32
- "node": "^18 || ^16 || ^14.19",
33
- "npm": ">= 6.13.4",
34
- "yarn": ">= 1.21.1"
35
- }
36
- }
@@ -1,73 +0,0 @@
1
- /* eslint-env node */
2
-
3
- const { configure } = require('quasar/wrappers');
4
-
5
- module.exports = configure(function (/* ctx */) {
6
- return {
7
- // Disable ESLint for simplicity
8
- // eslint: {
9
- // warnings: true,
10
- // errors: true,
11
- // },
12
-
13
- boot: [],
14
-
15
- css: ['app.scss'],
16
-
17
- extras: ['roboto-font', 'material-icons'],
18
-
19
- build: {
20
- env: {
21
- NODE_RPC: 'https://sepolia.optimism.io',
22
- CONTRACT_DID: '0xe2D7c3a9013960E04d4E9F5F9B63fff37eEd97A8',
23
- CONTRACT_ROOT_RESOLVER:
24
- '0xeF727cb066Fee98F88Db84555830063b4A24ddfc',
25
- CONTRACT_ABI_TYPE: '0x7386fCBae6Ad4CCE1499d9153D99bc950B589718'
26
- },
27
-
28
- node: {
29
- Buffer: true
30
- },
31
-
32
- target: {
33
- browser: [
34
- 'es2019',
35
- 'edge88',
36
- 'firefox78',
37
- 'chrome87',
38
- 'safari13.1'
39
- ],
40
- node: 'node16'
41
- },
42
-
43
- vueRouterMode: 'hash',
44
-
45
- extendViteConf(viteConf) {
46
- // Configure Vite to handle olaresid properly
47
- viteConf.optimizeDeps = viteConf.optimizeDeps || {};
48
- viteConf.optimizeDeps.include =
49
- viteConf.optimizeDeps.include || [];
50
- viteConf.optimizeDeps.include.push('@beclab/olaresid');
51
-
52
- viteConf.build = viteConf.build || {};
53
- viteConf.build.commonjsOptions = {
54
- include: [/node_modules/, /@beclab\/olaresid/]
55
- };
56
- }
57
- },
58
-
59
- devServer: {
60
- open: true,
61
- port: 9001
62
- },
63
-
64
- framework: {
65
- config: {
66
- notify: {}
67
- },
68
- plugins: ['Notify']
69
- },
70
-
71
- animations: []
72
- };
73
- });
@@ -1,13 +0,0 @@
1
- <template>
2
- <div id="q-app">
3
- <router-view />
4
- </div>
5
- </template>
6
-
7
- <script lang="ts">
8
- import { defineComponent } from 'vue';
9
-
10
- export default defineComponent({
11
- name: 'App'
12
- });
13
- </script>
@@ -1 +0,0 @@
1
- // app global css
@@ -1,21 +0,0 @@
1
- <template>
2
- <q-layout view="lHh Lpr lFf">
3
- <q-header elevated>
4
- <q-toolbar>
5
- <q-toolbar-title> OlaresID Demo </q-toolbar-title>
6
- </q-toolbar>
7
- </q-header>
8
-
9
- <q-page-container>
10
- <router-view />
11
- </q-page-container>
12
- </q-layout>
13
- </template>
14
-
15
- <script lang="ts">
16
- import { defineComponent } from 'vue';
17
-
18
- export default defineComponent({
19
- name: 'MainLayout'
20
- });
21
- </script>