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

@travetto/cache

Package Overview
Dependencies
Maintainers
0
Versions
324
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/cache - npm Package Compare versions

Comparing version 5.0.0-rc.1 to 5.0.0-rc.2

10

package.json
{
"name": "@travetto/cache",
"version": "5.0.0-rc.1",
"version": "5.0.0-rc.2",
"description": "Caching functionality with decorators for declarative use.",

@@ -28,8 +28,8 @@ "keywords": [

"dependencies": {
"@travetto/di": "^5.0.0-rc.1",
"@travetto/model": "^5.0.0-rc.1"
"@travetto/di": "^5.0.0-rc.2",
"@travetto/model": "^5.0.0-rc.2"
},
"peerDependencies": {
"@travetto/test": "^5.0.0-rc.1",
"@travetto/transformer": "^5.0.0-rc.1"
"@travetto/test": "^5.0.0-rc.2",
"@travetto/transformer": "^5.0.0-rc.2"
},

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

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

import { TimeSpan, TimeUtil } from '@travetto/base';
import { TimeSpan, TimeUtil } from '@travetto/runtime';

@@ -3,0 +3,0 @@ import { CacheService } from './service';

@@ -1,4 +0,4 @@

import { AppError } from '@travetto/base';
import { AppError } from '@travetto/runtime';
/** Cache Error Class */
export class CacheError extends AppError { }
import { ExpiresAt, Index, Model, ModelExpirySupport, NotFoundError } from '@travetto/model';
import { Text } from '@travetto/schema';
import { Inject, Injectable } from '@travetto/di';
import { AppError, Env, TimeUtil } from '@travetto/base';
import { AppError, Runtime, TimeUtil } from '@travetto/runtime';
import { isIndexedSupported, isStorageSupported } from '@travetto/model/src/internal/service/common';

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

async postConstruct(): Promise<void> {
if (isStorageSupported(this.#modelService) && (Env.dynamic || this.#modelService.config?.autoCreate)) {
if (isStorageSupported(this.#modelService) && (Runtime.dynamic || this.#modelService.config?.autoCreate)) {
await this.#modelService.createModel?.(CacheRecord);

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

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

import { Util } from '@travetto/base';
import { Util } from '@travetto/runtime';

@@ -3,0 +3,0 @@ import { CoreCacheConfig } from './types';

@@ -10,3 +10,3 @@ import assert from 'node:assert';

import { isIndexedSupported } from '@travetto/model/src/internal/service/common';
import { Class } from '@travetto/base';
import { Class } from '@travetto/runtime';
import { Schema } from '@travetto/schema';

@@ -13,0 +13,0 @@

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