@stackbit/utils
Advanced tools
Comparing version 0.4.26 to 0.4.27-staging.1
@@ -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
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances 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
523542
92
9746
8
4
5
+ Addedaxios@^1.7.7
+ Addedeventsource@^2.0.2
+ Added@stackbit/types@2.0.7-staging.1(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedaxios@1.7.7(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedeventsource@2.0.2(transitive)
+ Addedfollow-redirects@1.15.9(transitive)
+ Addedform-data@4.0.1(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedproxy-from-env@1.1.0(transitive)
- Removed@stackbit/types@2.0.6(transitive)