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

@stackbit/utils

Package Overview
Dependencies
Maintainers
0
Versions
313
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stackbit/utils - npm Package Compare versions

Comparing version 0.4.26 to 0.4.27-staging.1

dist/ai-actions.d.ts

8

__tests__/content-source-with-drafts.ts

@@ -180,3 +180,3 @@ import { describe, expect, test } from '@jest/globals';

const pageModel = schema.models.find((model) => model.name === 'pageModel')! as StackbitTypes.PageModel;
const saveDraftAction = pageModel.actions!.find((action) => action.name === 'save_draft')!;
const saveDraftAction = pageModel.actions!.find((action) => action.name === 'save_draft')! as StackbitTypes.CustomActionDocument;

@@ -321,3 +321,3 @@ // The "save" action state should be disabled because there are no cached changes.

const pageModel = schema.models.find((model) => model.name === 'pageModel')! as StackbitTypes.PageModel;
const cancelDraftAction = pageModel.actions!.find((action) => action.name === 'cancel_draft')!;
const cancelDraftAction = pageModel.actions!.find((action) => action.name === 'cancel_draft')! as StackbitTypes.CustomActionDocument;

@@ -496,3 +496,3 @@ // The "cancel" action state should be disabled because there are no cached changes.

const pageModel = schema.models.find((model) => model.name === 'pageModel')! as StackbitTypes.PageModel;
const saveDraftAction = pageModel.actions!.find((action) => action.name === 'save_draft')!;
const saveDraftAction = pageModel.actions!.find((action) => action.name === 'save_draft')! as StackbitTypes.CustomActionDocument;

@@ -629,3 +629,3 @@ // Call updateDocument on the content source with drafts passing an

const pageModel = schema.models.find((model) => model.name === 'pageModel')! as StackbitTypes.PageModel;
const saveDraftAction = pageModel.actions!.find((action) => action.name === 'save_draft')!;
const saveDraftAction = pageModel.actions!.find((action) => action.name === 'save_draft')! as StackbitTypes.CustomActionDocument;

@@ -632,0 +632,0 @@ // Call updateDocument on the content source with drafts passing an

@@ -14,3 +14,4 @@ export * from './utils';

export * from './field-path-utils';
export * from './ai-actions';
export { default as TaskQueue } from './task-queue';
//# sourceMappingURL=index.d.ts.map

@@ -34,4 +34,5 @@ "use strict";

__exportStar(require("./field-path-utils"), exports);
__exportStar(require("./ai-actions"), exports);
var task_queue_1 = require("./task-queue");
Object.defineProperty(exports, "TaskQueue", { enumerable: true, get: function () { return __importDefault(task_queue_1).default; } });
//# sourceMappingURL=index.js.map
module.exports = {
testPathIgnorePatterns: ['__tests__/test-utils'],
preset: 'ts-jest',
testEnvironment: 'node'
testEnvironment: 'node',
moduleNameMapper: {
'^axios$': 'axios/dist/node/axios.cjs'
}
};
{
"name": "@stackbit/utils",
"version": "0.4.26",
"version": "0.4.27-staging.1",
"description": "Stackbit utilities",

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

"@iarna/toml": "^2.2.5",
"@stackbit/types": "2.0.6",
"@stackbit/types": "2.0.7-staging.1",
"axios": "^1.7.7",
"eventsource": "^2.0.2",
"fs-extra": "^9.1.0",

@@ -37,2 +39,3 @@ "js-yaml": "^4.0.0",

"devDependencies": {
"@types/eventsource": "^1.1.15",
"@types/fs-extra": "^9.0.8",

@@ -42,3 +45,3 @@ "@types/js-yaml": "^4.0.0",

},
"gitHead": "d4fde9d7e7fe29007bf584b3ca847f9542ccc0cd"
"gitHead": "10334871060041f74fa8e4563c3e87b27c7d02df"
}

@@ -14,2 +14,3 @@ export * from './utils';

export * from './field-path-utils';
export * from './ai-actions';
export { default as TaskQueue } from './task-queue';

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