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

@shopify/app-bridge-host

Package Overview
Dependencies
Maintainers
13
Versions
383
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/app-bridge-host - npm Package Compare versions

Comparing version 1.6.7 to 1.6.8-alpha.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [1.6.8-alpha.0](https://github.com/Shopify/app-bridge/compare/v1.6.7...v1.6.8-alpha.0) (2019-08-28)
### Features
* **pos:** add pos device data to app-bridge-host ([9e6236e](https://github.com/Shopify/app-bridge/commit/9e6236e))
## [1.6.7](https://github.com/Shopify/app-bridge/compare/v1.6.7-alpha.1...v1.6.7) (2019-07-19)

@@ -8,0 +19,0 @@

6

package.json
{
"name": "@shopify/app-bridge-host",
"version": "1.6.7",
"version": "1.6.8-alpha.0",
"types": "index.d.ts",

@@ -57,3 +57,3 @@ "main": "index.js",

"dependencies": {
"@shopify/app-bridge": "^1.6.7",
"@shopify/app-bridge": "^1.6.8-alpha.0",
"@shopify/javascript-utilities": "^2.3.0",

@@ -67,3 +67,3 @@ "hoist-non-react-statics": "^3.1.0",

},
"gitHead": "b9e990bf780da83fe366d126790294ea720707f6"
"gitHead": "14c0bf897fafd1ae69da5ffd9097fd9bdca07556"
}
/// <reference types="jest" />
export declare function mockStore(): {
dispatch: jest.Mock<{}>;
getState: jest.Mock<{}>;
replaceReducer: jest.Mock<{}>;
subscribe: jest.Mock<{}>;
dispatch: jest.Mock<any, any>;
getState: jest.Mock<any, any>;
replaceReducer: jest.Mock<any, any>;
subscribe: jest.Mock<any, any>;
};

@@ -1,3 +0,4 @@

import { User, Location, UserAction, LocationAction } from './types';
import { User, Location, UserAction, LocationAction, DeviceAction, Device } from './types';
export declare function setUser(user: User): UserAction;
export declare function setLocation(location: Location): LocationAction;
export declare function setDevice(device: Device): DeviceAction;

@@ -12,1 +12,5 @@ "use strict";

exports.setLocation = setLocation;
function setDevice(device) {
return { group: types_1.POS_GROUP, type: types_1.DEVICE_UPDATE_TYPE, payload: device };
}
exports.setDevice = setDevice;
import { AnyAction } from 'redux';
import { LocationAction, POSStore, UserAction } from './types';
import { LocationAction, POSStore, UserAction, DeviceAction } from './types';
export declare const defaultPOSStore: {};
export default function posReducer(state: POSStore | undefined, action: LocationAction | UserAction | AnyAction): POSStore;
export default function posReducer(state: POSStore | undefined, action: LocationAction | UserAction | DeviceAction | AnyAction): POSStore;

@@ -23,2 +23,4 @@ "use strict";

return __assign({}, state, { user: action.payload });
case types_1.DEVICE_UPDATE_TYPE:
return __assign({}, state, { device: action.payload });
}

@@ -25,0 +27,0 @@ return state;

@@ -5,2 +5,3 @@ import { AnyAction } from 'redux';

user?: User;
device?: Device;
}

@@ -16,5 +17,8 @@ export interface POSAction<P> extends AnyAction {

}
export interface DeviceAction extends POSAction<Device> {
}
export declare const POS_GROUP = "POS";
export declare const LOCATION_UPDATE_TYPE = "PRIVATE_APP::POS::LOCATION::UPDATE";
export declare const USER_UPDATE_TYPE = "PRIVATE_APP::POS::USER::UPDATE";
export declare const DEVICE_UPDATE_TYPE = "PRIVATE_APP::POS::DEVICE::UPDATE";
export interface Location {

@@ -42,1 +46,5 @@ id: number;

}
export interface Device {
name: string;
serialNumber: string;
}

@@ -6,1 +6,2 @@ "use strict";

exports.USER_UPDATE_TYPE = 'PRIVATE_APP::POS::USER::UPDATE';
exports.DEVICE_UPDATE_TYPE = 'PRIVATE_APP::POS::DEVICE::UPDATE';
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