You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP

@yext/answers-headless

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yext/answers-headless - npm Package Compare versions

Comparing version

to
1.1.1-alpha.0-95

{
"name": "@yext/answers-headless",
"version": "1.1.0",
"version": "1.1.1-alpha.0-95",
"description": "",

@@ -25,7 +25,6 @@ "author": "slapshot@yext.com",

"dependencies": {
"@reduxjs/toolkit": "^1.7.0",
"@yext/answers-core": "^1.6.0",
"@reduxjs/toolkit": "^1.8.1",
"@yext/answers-core": "^1.6.0-beta.7",
"js-levenshtein": "^1.1.6",
"lodash": "^4.17.21",
"redux-thunk": "^2.4.1"
"lodash": "^4.17.21"
},

@@ -32,0 +31,0 @@ "devDependencies": {

@@ -1,7 +0,7 @@

import { EnhancedStore, Unsubscribe } from '@reduxjs/toolkit';
import { Unsubscribe } from '@reduxjs/toolkit';
import StateListener from './models/state-listener';
import StateManager from './models/state-manager';
import { ParentState, State } from './models/state';
import { State } from './models/state';
import HeadlessReducerManager from './headless-reducer-manager';
import { ActionWithHeadlessId } from './store';
import { HeadlessEnhancedStore } from './store';
/**

@@ -14,3 +14,3 @@ * A Redux-backed implementation of the {@link StateManager} interface. Redux is used to

private headlessId;
constructor(store: EnhancedStore<ParentState, ActionWithHeadlessId>, headlessId: string, headlessReducerManager: HeadlessReducerManager);
constructor(store: HeadlessEnhancedStore, headlessId: string, headlessReducerManager: HeadlessReducerManager);
getState(): State;

@@ -17,0 +17,0 @@ dispatchEvent(type: string, payload?: unknown): void;

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

import { EnhancedStore, PayloadAction } from '@reduxjs/toolkit';
import { EnhancedStore, PayloadAction, AnyAction } from '@reduxjs/toolkit';
import { ThunkMiddleware } from 'redux-thunk';
import { ParentState } from './models/state';

@@ -6,3 +7,4 @@ export interface ActionWithHeadlessId extends PayloadAction<unknown> {

}
export declare function createBaseStore(): EnhancedStore<ParentState, ActionWithHeadlessId>;
export declare type HeadlessEnhancedStore = EnhancedStore<ParentState, ActionWithHeadlessId, ThunkMiddleware<ParentState, AnyAction>[]>;
export declare function createBaseStore(): HeadlessEnhancedStore;
//# sourceMappingURL=store.d.ts.map
{
"name": "@yext/answers-headless",
"version": "1.1.0",
"version": "1.1.1-alpha.0-95",
"description": "",

@@ -25,7 +25,6 @@ "author": "slapshot@yext.com",

"dependencies": {
"@reduxjs/toolkit": "^1.7.0",
"@yext/answers-core": "^1.6.0",
"@reduxjs/toolkit": "^1.8.1",
"@yext/answers-core": "^1.6.0-beta.7",
"js-levenshtein": "^1.1.6",
"lodash": "^4.17.21",
"redux-thunk": "^2.4.1"
"lodash": "^4.17.21"
},

@@ -32,0 +31,0 @@ "devDependencies": {

@@ -1,7 +0,7 @@

import { EnhancedStore, Unsubscribe } from '@reduxjs/toolkit';
import { Unsubscribe } from '@reduxjs/toolkit';
import StateListener from './models/state-listener';
import StateManager from './models/state-manager';
import { ParentState, State } from './models/state';
import { State } from './models/state';
import HeadlessReducerManager from './headless-reducer-manager';
import { ActionWithHeadlessId } from './store';
import { HeadlessEnhancedStore } from './store';
/**

@@ -14,3 +14,3 @@ * A Redux-backed implementation of the {@link StateManager} interface. Redux is used to

private headlessId;
constructor(store: EnhancedStore<ParentState, ActionWithHeadlessId>, headlessId: string, headlessReducerManager: HeadlessReducerManager);
constructor(store: HeadlessEnhancedStore, headlessId: string, headlessReducerManager: HeadlessReducerManager);
getState(): State;

@@ -17,0 +17,0 @@ dispatchEvent(type: string, payload?: unknown): void;

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

import { EnhancedStore, PayloadAction } from '@reduxjs/toolkit';
import { EnhancedStore, PayloadAction, AnyAction } from '@reduxjs/toolkit';
import { ThunkMiddleware } from 'redux-thunk';
import { ParentState } from './models/state';

@@ -6,3 +7,4 @@ export interface ActionWithHeadlessId extends PayloadAction<unknown> {

}
export declare function createBaseStore(): EnhancedStore<ParentState, ActionWithHeadlessId>;
export declare type HeadlessEnhancedStore = EnhancedStore<ParentState, ActionWithHeadlessId, ThunkMiddleware<ParentState, AnyAction>[]>;
export declare function createBaseStore(): HeadlessEnhancedStore;
//# sourceMappingURL=store.d.ts.map
{
"name": "@yext/answers-headless",
"version": "1.1.0",
"version": "1.1.1-alpha.0-95",
"description": "",

@@ -25,7 +25,6 @@ "author": "slapshot@yext.com",

"dependencies": {
"@reduxjs/toolkit": "^1.7.0",
"@yext/answers-core": "^1.6.0",
"@reduxjs/toolkit": "^1.8.1",
"@yext/answers-core": "^1.6.0-beta.7",
"js-levenshtein": "^1.1.6",
"lodash": "^4.17.21",
"redux-thunk": "^2.4.1"
"lodash": "^4.17.21"
},

@@ -32,0 +31,0 @@ "devDependencies": {

@@ -1,7 +0,7 @@

import { EnhancedStore, Unsubscribe } from '@reduxjs/toolkit';
import { Unsubscribe } from '@reduxjs/toolkit';
import StateListener from './models/state-listener';
import StateManager from './models/state-manager';
import { ParentState, State } from './models/state';
import { State } from './models/state';
import HeadlessReducerManager from './headless-reducer-manager';
import { ActionWithHeadlessId } from './store';
import { HeadlessEnhancedStore } from './store';

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

constructor(
private store: EnhancedStore<ParentState, ActionWithHeadlessId>,
private store: HeadlessEnhancedStore,
private headlessId: string,

@@ -17,0 +17,0 @@ headlessReducerManager: HeadlessReducerManager

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

import { configureStore, EnhancedStore, Reducer, Middleware, PayloadAction } from '@reduxjs/toolkit';
import { configureStore, EnhancedStore, Reducer, PayloadAction, AnyAction } from '@reduxjs/toolkit';
import { ThunkMiddleware } from 'redux-thunk';
import { ParentState } from './models/state';

@@ -8,2 +9,5 @@

export type HeadlessEnhancedStore =
EnhancedStore<ParentState, ActionWithHeadlessId, ThunkMiddleware<ParentState, AnyAction>[]>;
/**

@@ -14,8 +18,8 @@ * This reducer will be replaced by initializations of {@link ReduxStateManager}.

*/
const initialReducer: Reducer<ParentState> = (state: ParentState | undefined) => {
const initialReducer: Reducer<ParentState, ActionWithHeadlessId> = (state: ParentState | undefined) => {
return state || {};
};
export function createBaseStore(): EnhancedStore<ParentState, ActionWithHeadlessId> {
const store = configureStore<ParentState, ActionWithHeadlessId, Middleware<unknown, ParentState>[]>({
export function createBaseStore(): HeadlessEnhancedStore {
const store = configureStore({
middleware:

@@ -22,0 +26,0 @@ (getDefaultMiddleware) => getDefaultMiddleware({ serializableCheck: false }),

Sorry, the diff of this file is too big to display

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

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

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