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

@wixc3/app-core

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wixc3/app-core - npm Package Compare versions

Comparing version 4.1.0 to 4.2.0

15

dist/define-app-types.d.ts

@@ -114,2 +114,12 @@ import type React from 'react';

};
/**
* can be called on the server or in a web worker
* allows the app to call server methods
*/
callServerMethod?: (options: ICallServerMethodOptions, filePath: string, methodName: string, args: unknown[]) => Promise<unknown>;
/**
* can be called on the server or in a web worker
* allows codux to get the static routes for a given file path ( needed to allow navigation to a dynamic page )
*/
getStaticRoutes?: (options: ICallServerMethodOptions, forRouteAtFilePath: string) => Promise<unknown>;
App: React.ComponentType<IReactAppProps<T>>;

@@ -173,2 +183,3 @@ /**

onCaughtError: ErrorReporter;
callServerMethod: (filePath: string, methodName: string, args: unknown[]) => Promise<unknown>;
}

@@ -187,2 +198,6 @@ export type ErrorReporter = (errorBoundry: {

}
export interface ICallServerMethodOptions {
fsApi: FSApi;
importModule: DynamicImport;
}
export interface IGetNewPageInfoOptions<T> {

@@ -189,0 +204,0 @@ fsApi: FSApi;

2

package.json
{
"name": "@wixc3/app-core",
"description": "Common types and helpers for building applications",
"version": "4.1.0",
"version": "4.2.0",
"main": "dist/index.js",

@@ -6,0 +6,0 @@ "exports": {

@@ -132,2 +132,19 @@ import type React from 'react';

};
/**
* can be called on the server or in a web worker
* allows the app to call server methods
*/
callServerMethod?: (
options: ICallServerMethodOptions,
filePath: string,
methodName: string,
args: unknown[],
) => Promise<unknown>;
/**
* can be called on the server or in a web worker
* allows codux to get the static routes for a given file path ( needed to allow navigation to a dynamic page )
*/
getStaticRoutes?: (options: ICallServerMethodOptions, forRouteAtFilePath: string) => Promise<unknown>;
App: React.ComponentType<IReactAppProps<T>>;

@@ -196,2 +213,3 @@ /**

onCaughtError: ErrorReporter;
callServerMethod: (filePath: string, methodName: string, args: unknown[]) => Promise<unknown>;
}

@@ -214,2 +232,6 @@

}
export interface ICallServerMethodOptions {
fsApi: FSApi;
importModule: DynamicImport;
}
export interface IGetNewPageInfoOptions<T> {

@@ -216,0 +238,0 @@ fsApi: FSApi;

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