Socket
Socket
Sign inDemoInstall

@rockset/core

Package Overview
Dependencies
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rockset/core - npm Package Compare versions

Comparing version 0.8.28 to 0.8.30

4

dist/main.d.ts

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

import { DeployHooks, CollectionEntity, DownloadHooks, LambdaDownloadOptions, LambdaDeployOptions, LambdaQualifiedName, ExecuteHooks, QueryParameterArray, LambdaDeleteOptions } from './types';
import { DeployHooks, CollectionEntity, DownloadHooks, LambdaDeployOptions, LambdaQualifiedName, ExecuteHooks, QueryParameterArray, LambdaDeleteOptions } from './types';
import { FetchAPI, Collection } from '@rockset/client/dist/codegen/api';

@@ -14,3 +14,3 @@ /**

export declare function downloadCollections(hooks?: DownloadHooks): Promise<void>;
export declare function downloadQueryLambdas(hooks: DownloadHooks | undefined, options: LambdaDownloadOptions): Promise<void>;
export declare function downloadQueryLambdas(hooks?: DownloadHooks): Promise<void>;
export declare function deleteQueryLambdas(options: LambdaDeleteOptions): Promise<void | [void | null, void | null] | null>;

@@ -17,0 +17,0 @@ /**

@@ -110,4 +110,4 @@ "use strict";

exports.downloadCollections = downloadCollections;
function downloadQueryLambdas(hooks = {}, options) {
var _a, _b, _c;
function downloadQueryLambdas(hooks = {}) {
var _a, _b;
return __awaiter(this, void 0, void 0, function* () {

@@ -117,14 +117,7 @@ const client = yield createClient();

// Grab entities from apiserver
if (options.useLambdaTag) {
// Use tags — QLs without this tag will not be pulled
const lambdaResponse = yield client.queryLambdas.listQueryLambdaTagVersions(options.useLambdaTag);
lambdas = (_a = lambdaResponse === null || lambdaResponse === void 0 ? void 0 : lambdaResponse.data) !== null && _a !== void 0 ? _a : [];
}
else {
// Use latest versions - all QLs will be pulled
const lambdaResponse = yield client.queryLambdas.listAllQueryLambdas();
lambdas = ((_b = lambdaResponse.data) !== null && _b !== void 0 ? _b : []).map((l) => l.latest_version);
}
// Use latest versions - all QLs will be pulled
const lambdaResponse = yield client.queryLambdas.listAllQueryLambdas();
lambdas = ((_a = lambdaResponse.data) !== null && _a !== void 0 ? _a : []).map((l) => l.latest_version);
if (lambdas.length === 0) {
(_c = hooks.onNoOp) === null || _c === void 0 ? void 0 : _c.call(hooks);
(_b = hooks.onNoOp) === null || _b === void 0 ? void 0 : _b.call(hooks);
}

@@ -135,6 +128,6 @@ const entities = findNonDuplicateEntities(lambdas, hooks);

.forEach((qlEntity) => __awaiter(this, void 0, void 0, function* () {
var _d;
var _c;
if (qlEntity) {
yield fileutil_1.writeLambda(qlEntity);
(_d = hooks.onWriteLambda) === null || _d === void 0 ? void 0 : _d.call(hooks, qlEntity);
(_c = hooks.onWriteLambda) === null || _c === void 0 ? void 0 : _c.call(hooks, qlEntity);
}

@@ -141,0 +134,0 @@ }));

@@ -122,5 +122,2 @@ import { ErrorModel, Collection, QueryLambdaVersionResponse, QueryResponse } from '@rockset/client/dist/codegen/api';

}
export interface LambdaDownloadOptions {
useLambdaTag?: string;
}
export interface LambdaDeleteOptions {

@@ -127,0 +124,0 @@ workspace?: string;

{
"dependencies": {
"@rockset/client": "0.8.28",
"@rockset/eslint-config": "0.8.28",
"@rockset/client": "0.8.30",
"@rockset/eslint-config": "0.8.30",
"@types/fs-extra": "^9.0.1",

@@ -17,3 +17,3 @@ "fp-ts": "^2.6.1",

"name": "@rockset/core",
"version": "0.8.28",
"version": "0.8.30",
"description": "JS Rock Cli for Lambdas",

@@ -50,3 +50,3 @@ "main": "./dist/index.js",

"license": "Apache-2.0",
"gitHead": "a6fe097463534f1d1ea6b5552f41af855341a964"
"gitHead": "a0ce421f6e7a406ace94422615036c8657c35a22"
}
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