Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@travetto/model

Package Overview
Dependencies
Maintainers
1
Versions
371
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/model - npm Package Compare versions

Comparing version 3.4.0-rc.8 to 3.4.0

14

package.json
{
"name": "@travetto/model",
"version": "3.4.0-rc.8",
"version": "3.4.0",
"description": "Datastore abstraction for core operations.",

@@ -29,10 +29,10 @@ "keywords": [

"dependencies": {
"@travetto/config": "^3.4.0-rc.7",
"@travetto/di": "^3.4.0-rc.7",
"@travetto/registry": "^3.4.0-rc.8",
"@travetto/schema": "^3.4.0-rc.7"
"@travetto/config": "^3.4.0",
"@travetto/di": "^3.4.0",
"@travetto/registry": "^3.4.0",
"@travetto/schema": "^3.4.0"
},
"peerDependencies": {
"@travetto/cli": "^3.4.0-rc.9",
"@travetto/test": "^3.4.0-rc.7"
"@travetto/cli": "^3.4.0",
"@travetto/test": "^3.4.0"
},

@@ -39,0 +39,0 @@ "peerDependenciesMeta": {

@@ -1,2 +0,2 @@

import { ConsoleManager, GlobalEnvConfig } from '@travetto/base';
import { ConsoleManager, EnvInit } from '@travetto/base';
import { CliValidationError, CliCommandShape, cliTpl } from '@travetto/cli';

@@ -19,3 +19,3 @@ import { RootRegistry } from '@travetto/registry';

envInit(): GlobalEnvConfig {
envInit(): EnvInit {
return { debug: false };

@@ -44,3 +44,3 @@ }

const candidates = await ModelCandidateUtil.export(this.getOp());
if (!candidates.providers.includes(provider)) {
if (provider && !candidates.providers.includes(provider)) {
return { message: `provider: ${provider} is not a valid provider`, source: 'arg' };

@@ -47,0 +47,0 @@ }

@@ -45,3 +45,3 @@ import { Class } from '@travetto/base';

const types = DependencyRegistry.getCandidateTypes<ModelStorageSupport>(ModelStorageSupportTarget as unknown as Class<ModelStorageSupport>);
return types.filter(x => !op || x.class.prototype[op]);
return types.filter(x => !op || x.class.prototype?.[op]);
}

@@ -48,0 +48,0 @@

@@ -15,3 +15,3 @@ import fs from 'fs/promises';

fixture = new TestFixtures(['@travetto/model#support/fixtures']);
fixture = new TestFixtures(['@travetto/model']);

@@ -18,0 +18,0 @@ async getHash(stream: Readable): Promise<string> {

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