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

@balena/sbvr-types

Package Overview
Dependencies
Maintainers
1
Versions
222
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@balena/sbvr-types - npm Package Compare versions

Comparing version 3.4.9-web-resource-2-0e2ba170aeaab684f6c37f00ebf9c49606abea6e-1 to 3.4.9-web-resource-2-739f7993c0d98a6e38563e8113ea5ecf75fe2233-1

1

out/storage-adapters/DiskStorageAdapter.d.ts
/// <reference types="node" />
import { StorageAdapter, FileRef } from './StorageAdapter';
export declare const DISK_STORAGE_ADAPTER_NAME = "DISK";
export declare class DiskStorageAdapter implements StorageAdapter {

@@ -4,0 +5,0 @@ name: string;

8

out/storage-adapters/DiskStorageAdapter.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DiskStorageAdapter = void 0;
exports.DiskStorageAdapter = exports.DISK_STORAGE_ADAPTER_NAME = void 0;
const fs = require("node:fs/promises");
const os = require("node:os");
const path = require("node:path");
const ENGINE_NAME = 'DISK';
exports.DISK_STORAGE_ADAPTER_NAME = 'DISK';
const BASE_DIR = os.tmpdir();
class DiskStorageAdapter {
constructor() {
this.name = ENGINE_NAME;
this.name = exports.DISK_STORAGE_ADAPTER_NAME;
}

@@ -17,3 +17,3 @@ async saveFile(filename, data) {

const webresource = {
engine: ENGINE_NAME,
storage: exports.DISK_STORAGE_ADAPTER_NAME,
filename,

@@ -20,0 +20,0 @@ href: filePath,

import { StorageRegistry } from './StorageAdapter';
export { StorageRegistry, StorageAdapter, FileRef } from './StorageAdapter';
export { DiskStorageAdapter, DISK_STORAGE_ADAPTER_NAME, } from './DiskStorageAdapter';
export declare const DEFAULT_STORAGE_ADAPTER_NAME = "DEFAULT";
export declare const storageRegistry: StorageRegistry;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.storageRegistry = exports.DEFAULT_STORAGE_ADAPTER_NAME = void 0;
exports.storageRegistry = exports.DEFAULT_STORAGE_ADAPTER_NAME = exports.DISK_STORAGE_ADAPTER_NAME = exports.DiskStorageAdapter = void 0;
const DiskStorageAdapter_1 = require("./DiskStorageAdapter");
var DiskStorageAdapter_2 = require("./DiskStorageAdapter");
Object.defineProperty(exports, "DiskStorageAdapter", { enumerable: true, get: function () { return DiskStorageAdapter_2.DiskStorageAdapter; } });
Object.defineProperty(exports, "DISK_STORAGE_ADAPTER_NAME", { enumerable: true, get: function () { return DiskStorageAdapter_2.DISK_STORAGE_ADAPTER_NAME; } });
const diskEngine = new DiskStorageAdapter_1.DiskStorageAdapter();

@@ -6,0 +9,0 @@ exports.DEFAULT_STORAGE_ADAPTER_NAME = 'DEFAULT';

@@ -5,3 +5,3 @@ /// <reference types="node" />

href: string;
engine: string;
storage: string;
}

@@ -8,0 +8,0 @@ export interface StorageAdapter {

{
"name": "@balena/sbvr-types",
"version": "3.4.9-web-resource-2-0e2ba170aeaab684f6c37f00ebf9c49606abea6e-1",
"version": "3.4.9-web-resource-2-739f7993c0d98a6e38563e8113ea5ecf75fe2233-1",
"description": "SBVR type definitions.",

@@ -72,4 +72,4 @@ "main": "out",

"versionist": {
"publishedAt": "2022-11-15T16:18:18.744Z"
"publishedAt": "2022-11-15T19:20:19.527Z"
}
}

@@ -7,3 +7,3 @@ import * as fs from 'node:fs/promises';

const ENGINE_NAME = 'DISK';
export const DISK_STORAGE_ADAPTER_NAME = 'DISK';

@@ -16,3 +16,3 @@ const BASE_DIR = os.tmpdir();

constructor() {
this.name = ENGINE_NAME;
this.name = DISK_STORAGE_ADAPTER_NAME;
}

@@ -25,3 +25,3 @@

const webresource: FileRef = {
engine: ENGINE_NAME,
storage: DISK_STORAGE_ADAPTER_NAME,
filename,

@@ -28,0 +28,0 @@ href: filePath,

import { DiskStorageAdapter } from './DiskStorageAdapter';
import { StorageRegistry } from './StorageAdapter';
export { StorageRegistry, StorageAdapter, FileRef } from './StorageAdapter';
export {
DiskStorageAdapter,
DISK_STORAGE_ADAPTER_NAME,
} from './DiskStorageAdapter';
const diskEngine = new DiskStorageAdapter();

@@ -5,0 +11,0 @@

export interface FileRef {
filename: string;
href: string;
engine: string;
storage: string;
}

@@ -6,0 +6,0 @@

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