@balena/contrato 0.12.2 → 0.12.3

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 (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -32,7 +32,7 @@ if (osContract.satisfiesChildContract(serviceContract)) {
32
32
  }
33
33
  ```
34
34
 
35
- [![API Documentation](https://github.com/balena-io/contrato/actions/workflows/docs.yml/badge.svg)](https://balena-io.github.io/contrato/modules/contrato.html)
35
+ [![API Documentation](https://github.com/balena-io/contrato/actions/workflows/docs.yml/badge.svg)](https://balena-io.github.io/contrato/index.html)
36
36
 
37
37
  ## About contracts
38
38
 
@@ -235,7 +235,7 @@ For example
235
235
 
236
236
  A single template can be used to generate multiple contracts using the `variants` property on the Contract specification. A good example of this is in the [Alpine OS contract template](https://github.com/balena-io/contracts/blob/master/contracts/sw.os/alpine/contract.json) describes the combination of different architecture builds for a list of versions and can be compiled into a set of contracts. See also the [NodeJS contract](https://github.com/balena-io/contracts/blob/master/contracts/sw.stack/node/contract.json) for a more complex example.
237
237
 
238
- In Contrato, the template can be compiled into concrete contracts using the [Contract.build](https://balena-io.github.io/contrato/classes/contrato.contract.html#build) function.
238
+ In Contrato, the template can be compiled into concrete contracts using the [Contract.build](https://balena-io.github.io/contrato/classes/Contract.html#build) function.
239
239
 
240
240
  ```ts
241
241
  import { Contract } from 'contrato';
@@ -248,7 +248,7 @@ const contracts = Contract.build({ slug: 'mycontract' /* ... */ });
248
248
 
249
249
  A universe is a composite contract that conforms the collection of "things" being operated on. For instance, the set of contracts on [balena-io/contracts](https://github.com/balena-io/contracts) compose the universe of Balena's contracts containing the knowledge about device types, architectures, OS versions and software stacks available to Balena and its products.
250
250
 
251
- Contrato provides the [Universe type](https://balena-io.github.io/contrato/classes/universe.html) for working with a universe of contracts.
251
+ Contrato provides the [Universe type](https://balena-io.github.io/contrato/classes/Universe.html) for working with a universe of contracts.
252
252
 
253
253
  ```ts
254
254
  import { Contract, Universe } from 'contrato';
@@ -319,7 +319,7 @@ Example: generate OS install instructions from a context.
319
319
  {{/compare}}
320
320
  ```
321
321
 
322
- Contracts can be rendered with contrato using the [buildTemplate](https://balena-io.github.io/contrato/modules/contrato.html#buildtemplate) function
322
+ Contracts can be rendered with contrato using the [buildTemplate](https://balena-io.github.io/contrato/functions/buildTemplate.html) function
323
323
 
324
324
  ```ts
325
325
  import { buildTemplate } from 'contrato';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@balena/contrato",
3
- "version": "0.12.2",
3
+ "version": "0.12.3",
4
4
  "description": "The official contract implementation",
5
5
  "homepage": "https://github.com/product-os/contrato",
6
6
  "main": "build/index.js",
@@ -71,6 +71,6 @@
71
71
  "npm": ">=10.0.0"
72
72
  },
73
73
  "versionist": {
74
- "publishedAt": "2025-01-22T22:35:42.242Z"
74
+ "publishedAt": "2025-02-03T17:51:30.130Z"
75
75
  }
76
76
  }