@balena/contrato
Advanced tools
Comparing version 0.9.3 to 0.9.4-build-update-dependencies-and-node-20-b4b5369fc0d8346fedfa7ddf7ff5307d5c00121d-1
import Contract from './contract'; | ||
import { BlueprintLayout } from './types/types'; | ||
import type { BlueprintLayout } from './types/types'; | ||
export default class Blueprint extends Contract { | ||
@@ -4,0 +4,0 @@ constructor(layout: BlueprintLayout, skeleton?: any); |
@@ -1,4 +0,4 @@ | ||
import { ContractObject } from '.'; | ||
import Contract from './contract'; | ||
import type { ContractObject } from '.'; | ||
import type Contract from './contract'; | ||
export declare const build: (contract: Contract) => object; | ||
export declare const getAll: (tree: any) => ContractObject[]; |
@@ -40,3 +40,3 @@ "use strict"; | ||
exports.build = build; | ||
const getAll = (tree) => (0, reduce_1.default)(tree, (accumulator, value, _) => { | ||
const getAll = (tree) => (0, reduce_1.default)(tree, (accumulator, value) => { | ||
if (!value.slug) { | ||
@@ -43,0 +43,0 @@ const out = accumulator.concat((0, exports.getAll)(value)); |
@@ -1,2 +0,2 @@ | ||
import { ContractObject } from './types/types'; | ||
import type { ContractObject } from './types/types'; | ||
export default class Contract { | ||
@@ -25,3 +25,3 @@ metadata: any; | ||
findChildrenWithCapabilities(matcher: Contract): Contract[]; | ||
findChildren(matcher: Contract | {}): Contract[]; | ||
findChildren(matcher: Contract | object): Contract[]; | ||
getChildrenCombinations(options: { | ||
@@ -28,0 +28,0 @@ type: string; |
@@ -1,2 +0,2 @@ | ||
import Contract from './contract'; | ||
import type Contract from './contract'; | ||
export default class MatcherCache { | ||
@@ -3,0 +3,0 @@ data: any; |
import Contract from './contract'; | ||
import { ContractObject } from './types/types'; | ||
import type { ContractObject } from './types/types'; | ||
export declare const findPartial: (name: string, context: Contract, options: { | ||
@@ -4,0 +4,0 @@ baseDirectory: string; |
@@ -1,2 +0,2 @@ | ||
import { ContractObject } from './types/types'; | ||
import type { ContractObject } from './types/types'; | ||
export declare const compileContract: (contract: ContractObject, options?: { | ||
@@ -3,0 +3,0 @@ blacklist?: Set<string>; |
@@ -1,2 +0,2 @@ | ||
import { components } from './cuetypes'; | ||
import type { components } from './cuetypes'; | ||
export type ContractObject = components['schemas']['Contract']; | ||
@@ -3,0 +3,0 @@ export type BlueprintObject = components['schemas']['Blueprint']; |
@@ -1,2 +0,2 @@ | ||
import { ContractObject } from './types/types'; | ||
import type { ContractObject } from './types/types'; | ||
export declare const build: (contract: ContractObject) => ContractObject[]; |
{ | ||
"name": "@balena/contrato", | ||
"version": "0.9.3", | ||
"version": "0.9.4-build-update-dependencies-and-node-20-b4b5369fc0d8346fedfa7ddf7ff5307d5c00121d-1", | ||
"description": "The official contract implementation", | ||
@@ -29,4 +29,4 @@ "homepage": "https://github.com/product-os/contrato", | ||
"doc": "typedoc --options ./typedoc.json", | ||
"lint": "balena-lint --typescript lib tests scripts", | ||
"lint-fix": "balena-lint --typescript --fix lib tests scripts", | ||
"lint": "balena-lint -t tsconfig.dev.json --typescript lib tests scripts", | ||
"lint-fix": "balena-lint -t tsconfig.dev.json --typescript --fix lib tests scripts", | ||
"test:node": "mocha -r ts-node/register/transpile-only --reporter spec tests/**/*.spec.ts", | ||
@@ -38,9 +38,3 @@ "test": "npm run build && npm run lint && npm run test:node", | ||
"dependencies": { | ||
"@types/debug": "^4.1.5", | ||
"@types/js-combinatorics": "^0.5.32", | ||
"@types/lodash": "^4.14.168", | ||
"@types/node": "^15.0.1", | ||
"@types/object-hash": "^2.1.0", | ||
"@types/semver": "^7.3.5", | ||
"debug": "^3.2.6", | ||
"debug": "^4.3.4", | ||
"handlebars": "^4.7.6", | ||
@@ -51,10 +45,16 @@ "handlebars-async-helpers": "^1.0.5", | ||
"object-hash": "^1.3.1", | ||
"semver": "^5.7.1", | ||
"semver": "^7.6.0", | ||
"skhema": "^5.3.2" | ||
}, | ||
"devDependencies": { | ||
"@balena/lint": "^5.0.4", | ||
"@balena/lint": "^8.0.2", | ||
"@types/chai": "^4.2.11", | ||
"@types/chai-as-promised": "^7.1.2", | ||
"@types/mocha": "^7.0.2", | ||
"@types/debug": "^4.1.5", | ||
"@types/js-combinatorics": "^0.5.32", | ||
"@types/lodash": "^4.14.168", | ||
"@types/mocha": "^10.0.6", | ||
"@types/node": "^15.0.1", | ||
"@types/object-hash": "^2.1.0", | ||
"@types/semver": "^7.3.5", | ||
"chai": "^4.2.0", | ||
@@ -65,3 +65,3 @@ "chai-as-promised": "^7.1.1", | ||
"lint-staged": "^10.1.7", | ||
"mocha": "^7.2.0", | ||
"mocha": "^10.4.0", | ||
"openapi-typescript": "^3.2.4", | ||
@@ -75,7 +75,7 @@ "rimraf": "^3.0.2", | ||
"node": "^20.0.0", | ||
"npm": "^9.4.1" | ||
"npm": "^10.0.0" | ||
}, | ||
"versionist": { | ||
"publishedAt": "2024-04-08T17:46:30.343Z" | ||
"publishedAt": "2024-04-30T21:34:54.521Z" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
125467
8
21
+ Addeddebug@4.4.0(transitive)
+ Addedsemver@7.6.3(transitive)
- Removed@types/debug@^4.1.5
- Removed@types/js-combinatorics@^0.5.32
- Removed@types/lodash@^4.14.168
- Removed@types/node@^15.0.1
- Removed@types/object-hash@^2.1.0
- Removed@types/semver@^7.3.5
- Removed@types/debug@4.1.12(transitive)
- Removed@types/js-combinatorics@0.5.32(transitive)
- Removed@types/lodash@4.17.14(transitive)
- Removed@types/ms@2.1.0(transitive)
- Removed@types/node@15.14.9(transitive)
- Removed@types/object-hash@2.2.1(transitive)
- Removed@types/semver@7.5.8(transitive)
- Removeddebug@3.2.7(transitive)
- Removedsemver@5.7.2(transitive)
Updateddebug@^4.3.4
Updatedsemver@^7.6.0