@travetto/model
Advanced tools
Comparing version 3.4.0-rc.8 to 3.4.0
{ | ||
"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> { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
160790
Updated@travetto/config@^3.4.0
Updated@travetto/di@^3.4.0
Updated@travetto/registry@^3.4.0
Updated@travetto/schema@^3.4.0