New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@balena/contrato

Package Overview
Dependencies
Maintainers
3
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@balena/contrato - npm Package Compare versions

Comparing version 0.9.3 to 0.9.4-build-update-dependencies-and-node-20-b4b5369fc0d8346fedfa7ddf7ff5307d5c00121d-1

2

build/blueprint.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc