@toa.io/pointer 0.9.0-canary.2 → 0.20.0-alpha.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/package.json +14 -7
- package/readme.md +113 -78
- package/schemas/urimap.cos.yaml +2 -0
- package/source/Deployment.ts +90 -0
- package/source/annotation.test.ts +66 -0
- package/source/annotation.ts +46 -0
- package/source/createVariables.test.ts +186 -0
- package/source/createVariables.ts +12 -0
- package/source/index.ts +7 -0
- package/source/naming.ts +11 -0
- package/source/resolve.ts +63 -0
- package/transpiled/Deployment.d.ts +21 -0
- package/transpiled/Deployment.js +63 -0
- package/transpiled/Deployment.js.map +1 -0
- package/transpiled/annotation.d.ts +3 -0
- package/transpiled/annotation.js +62 -0
- package/transpiled/annotation.js.map +1 -0
- package/transpiled/createVariables.d.ts +4 -0
- package/transpiled/createVariables.js +12 -0
- package/transpiled/createVariables.js.map +1 -0
- package/transpiled/index.d.ts +6 -0
- package/transpiled/index.js +35 -0
- package/transpiled/index.js.map +1 -0
- package/transpiled/naming.d.ts +2 -0
- package/transpiled/naming.js +16 -0
- package/transpiled/naming.js.map +1 -0
- package/transpiled/resolve.d.ts +3 -0
- package/transpiled/resolve.js +54 -0
- package/transpiled/resolve.js.map +1 -0
- package/transpiled/tsconfig.tsbuildinfo +1 -0
- package/tsconfig.json +12 -0
- package/source/.deployment/.variables/credentials.js +0 -35
- package/source/.deployment/.variables/index.js +0 -7
- package/source/.deployment/.variables/pointer.js +0 -18
- package/source/.deployment/index.js +0 -8
- package/source/.deployment/validate.js +0 -19
- package/source/.deployment/variables.js +0 -22
- package/source/.pointer/env.js +0 -44
- package/source/.pointer/index.js +0 -9
- package/source/.pointer/label.js +0 -15
- package/source/.pointer/local.js +0 -17
- package/source/deployment.js +0 -17
- package/source/index.js +0 -11
- package/source/pointer.js +0 -34
- package/source/uris/construct.js +0 -18
- package/source/uris/index.js +0 -9
- package/source/uris/normalize.js +0 -12
- package/source/uris/resolve.js +0 -18
- package/source/uris/schema.yaml +0 -18
- package/source/uris/validate.js +0 -17
- package/source/variable.js +0 -12
- package/test/deployment.test.js +0 -92
- package/test/pointer.test.js +0 -213
- package/test/uris.fixtures.js +0 -10
- package/test/uris.test.js +0 -144
- package/test/variable.test.js +0 -37
- package/types/deployment.d.ts +0 -21
- package/types/pointer.d.ts +0 -19
- package/types/uris.d.ts +0 -27
- package/types/variable.d.ts +0 -8
package/types/uris.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
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
|
package/types/variable.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Locator } from '@toa.io/core/types'
|
|
2
|
-
import { dependency } from '@toa.io/operations/types/deployment'
|
|
3
|
-
|
|
4
|
-
declare namespace toa.pointer {
|
|
5
|
-
type Variable = (scope: string, locator: Locator, label: string, value: string | number) => dependency.Variable
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export const variable: toa.pointer.Variable
|