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

piral-feeds

Package Overview
Dependencies
Maintainers
1
Versions
932
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

piral-feeds - npm Package Compare versions

Comparing version 0.9.3 to 0.10.0-pre.823

8

lib/actions.js

@@ -6,3 +6,3 @@ "use strict";

function createFeed(ctx, id) {
react_atom_1.swap(ctx, state => (Object.assign({}, state, { feeds: piral_core_1.withKey(state.feeds, id, {
react_atom_1.swap(ctx, state => (Object.assign(Object.assign({}, state), { feeds: piral_core_1.withKey(state.feeds, id, {
data: undefined,

@@ -16,3 +16,3 @@ error: undefined,

function destroyFeed(ctx, id) {
react_atom_1.swap(ctx, state => (Object.assign({}, state, { feeds: piral_core_1.withoutKey(state.feeds, id) })));
react_atom_1.swap(ctx, state => (Object.assign(Object.assign({}, state), { feeds: piral_core_1.withoutKey(state.feeds, id) })));
}

@@ -22,3 +22,3 @@ exports.destroyFeed = destroyFeed;

const { id } = options;
react_atom_1.swap(ctx, state => (Object.assign({}, state, { feeds: piral_core_1.withKey(state.feeds, id, {
react_atom_1.swap(ctx, state => (Object.assign(Object.assign({}, state), { feeds: piral_core_1.withKey(state.feeds, id, {
data: undefined,

@@ -38,3 +38,3 @@ error: undefined,

function loadedFeed(ctx, id, data, error) {
react_atom_1.swap(ctx, state => (Object.assign({}, state, { feeds: piral_core_1.withKey(state.feeds, id, {
react_atom_1.swap(ctx, state => (Object.assign(Object.assign({}, state), { feeds: piral_core_1.withKey(state.feeds, id, {
loading: false,

@@ -41,0 +41,0 @@ loaded: true,

@@ -14,3 +14,3 @@ "use strict";

context.defineActions(actions);
react_atom_1.swap(context.state, state => (Object.assign({}, state, { feeds: {} })));
react_atom_1.swap(context.state, state => (Object.assign(Object.assign({}, state), { feeds: {} })));
return (_, target) => {

@@ -17,0 +17,0 @@ let feeds = 0;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const react_arbiter_1 = require("react-arbiter");
const piral_base_1 = require("piral-base");
function createFeedOptions(id, resolver) {
if (react_arbiter_1.isfunc(resolver)) {
if (piral_base_1.isfunc(resolver)) {
return {

@@ -7,0 +7,0 @@ id,

import * as React from 'react';
import { ConnectorDetails, FeedConnectorProps } from './types';
export declare function withFeed<TData, TItem, TProps>(Component: React.ComponentType<TProps & FeedConnectorProps<TData>>, options: ConnectorDetails<TData, TItem>): React.FunctionComponent<TProps>;
export declare function withFeed<TData, TItem, TProps>(Component: React.ComponentType<TProps & FeedConnectorProps<TData>>, options: ConnectorDetails<TData, TItem>): React.FC<TProps>;
{
"name": "piral-feeds",
"version": "0.9.3",
"version": "0.10.0-pre.823",
"description": "Plugin for connecting data feeds in Piral.",

@@ -39,8 +39,8 @@ "keywords": [

"devDependencies": {
"piral-core": "^0.9.3"
"piral-core": "^0.10.0-pre.823"
},
"peerDependencies": {
"piral-core": "^0.9.0"
"piral-core": "^0.9.0 || ^0.10.0"
},
"gitHead": "a079ff637821eeacd28f1209593b778e370d0366"
"gitHead": "6ffae5945e28b7d86c7701e25aa3b2698e32a985"
}

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

import { isfunc } from 'react-arbiter';
import { isfunc } from 'piral-base';
import { FeedResolver, FeedConnectorOptions, ConnectorDetails } from './types';

@@ -3,0 +3,0 @@

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

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