@toa.io/pointer 0.20.0-dev.2 → 0.20.0-dev.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toa.io/pointer",
3
- "version": "0.20.0-dev.2",
3
+ "version": "0.20.0-dev.21",
4
4
  "description": "Toa Pointer",
5
5
  "homepage": "https://toa.io",
6
6
  "author": {
@@ -22,11 +22,12 @@
22
22
  "access": "public"
23
23
  },
24
24
  "main": "source/index.js",
25
+ "types": "types/index.d.ts",
25
26
  "dependencies": {
26
- "@toa.io/console": "0.20.0-dev.2",
27
- "@toa.io/generic": "0.20.0-dev.2",
28
- "@toa.io/schemas": "0.20.0-dev.2",
29
- "@toa.io/yaml": "0.20.0-dev.2"
27
+ "@toa.io/console": "0.20.0-dev.21",
28
+ "@toa.io/generic": "0.20.0-dev.21",
29
+ "@toa.io/schemas": "0.20.0-dev.21",
30
+ "@toa.io/yaml": "0.20.0-dev.21"
30
31
  },
31
- "gitHead": "3e767a32bf4705bacee7b2e8312ed0b0805a5260"
32
+ "gitHead": "7dbe313e05e714e35401adb5f0507e140f3f1215"
32
33
  }
package/readme.md CHANGED
@@ -103,10 +103,8 @@ amqp:
103
103
  ```
104
104
 
105
105
  ```shell
106
- $ toa conceal bindings-amqp-default username admin
107
- $ toa conceal bindings-amqp-default password ibreakthings
108
- $ toa conceal bindings-amqp-dummies-dummy username developer
109
- $ toa conceal bindings-amqp-dummies-dummy password iluvtests
106
+ $ toa conceal bindings-amqp-default username=admin password=ibreakthings
107
+ $ toa conceal bindings-amqp-dummies-dummy username=developer password=iluvtests
110
108
  ```
111
109
 
112
110
  See [`toa conceal`](../../runtime/cli/readme.md#conceal).
@@ -0,0 +1,27 @@
1
+ import { Locator } from '@toa.io/core/types'
2
+
3
+ declare namespace toa.pointer {
4
+
5
+ namespace uris {
6
+
7
+ type Node = string | {
8
+ [key: string]: Node
9
+ }
10
+
11
+ type Resolution = {
12
+ url: URL
13
+ entry: string
14
+ }
15
+
16
+ type Resolver = (locator: Locator, uris: URIs) => Resolution
17
+
18
+ }
19
+
20
+ type URIs = string | {
21
+ default?: string
22
+ [key: string]: uris.Node
23
+ }
24
+
25
+ }
26
+
27
+ export type URIs = toa.pointer.URIs
@@ -0,0 +1 @@
1
+ export * as uris from './uris'
package/types/uris.d.ts CHANGED
@@ -1,27 +1,19 @@
1
- import { Locator } from '@toa.io/core/types'
1
+ import type { Locator } from '@toa.io/core'
2
2
 
3
- declare namespace toa.pointer {
3
+ export function construct (declaration: URIs | string): URIs
4
4
 
5
- namespace uris {
5
+ export function resolve (locator: Locator, uris: URIs): Resolution
6
6
 
7
- type Node = string | {
8
- [key: string]: Node
9
- }
10
-
11
- type Resolution = {
12
- url: URL
13
- entry: string
14
- }
15
-
16
- type Resolver = (locator: Locator, uris: URIs) => Resolution
17
-
18
- }
19
-
20
- type URIs = string | {
21
- default?: string
22
- [key: string]: uris.Node
23
- }
7
+ type Node = string | {
8
+ [key: string]: Node
9
+ }
24
10
 
11
+ type URIs = string | {
12
+ default?: string
13
+ [key: string]: Node
25
14
  }
26
15
 
27
- export type URIs = toa.pointer.URIs
16
+ type Resolution = {
17
+ url: URL
18
+ entry: string
19
+ }