Socket
Socket
Sign inDemoInstall

json-react-layouts-data-loader

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-react-layouts-data-loader - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

1

dist/cjs/data-loading.test.js

@@ -98,2 +98,3 @@ "use strict";

componentRenderPath: '[0-test-composition]/main[0]',
paramsCacheKey: 'dba86410',
resourceType: 'component-data-loader',

@@ -100,0 +101,0 @@ });

@@ -5,2 +5,3 @@ import { LayoutApi } from 'json-react-layouts';

resourceType: string;
paramsCacheKey: string;
}) => Promise<TData>;

@@ -7,0 +8,0 @@ export interface DataDefinition<DataLoadArguments extends object, TData, Services extends object> {

3

dist/cjs/index.js

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

var ComponentDataLoader = resources.registerResource('component-data-loader', function (_a) {
var dataDefinitionArgs = _a.dataDefinitionArgs, componentRenderPath = _a.componentRenderPath, dataDefinition = _a.dataDefinition, layout = _a.layout, resourceType = _a.resourceType, services = tslib_1.__rest(_a, ["dataDefinitionArgs", "componentRenderPath", "dataDefinition", "layout", "resourceType"]);
var dataDefinitionArgs = _a.dataDefinitionArgs, componentRenderPath = _a.componentRenderPath, dataDefinition = _a.dataDefinition, layout = _a.layout, resourceType = _a.resourceType, paramsCacheKey = _a.paramsCacheKey, services = tslib_1.__rest(_a, ["dataDefinitionArgs", "componentRenderPath", "dataDefinition", "layout", "resourceType", "paramsCacheKey"]);
var loadFn = wrapLoad ? wrapLoad(dataDefinition.loadData) : dataDefinition.loadData;

@@ -15,2 +15,3 @@ return loadFn(dataDefinitionArgs, services, {

resourceType: resourceType,
paramsCacheKey: paramsCacheKey,
});

@@ -17,0 +18,0 @@ }, ['componentRenderPath', 'dataDefinitionArgs']);

@@ -96,2 +96,3 @@ var _this = this;

componentRenderPath: '[0-test-composition]/main[0]',
paramsCacheKey: 'dba86410',
resourceType: 'component-data-loader',

@@ -98,0 +99,0 @@ });

@@ -5,2 +5,3 @@ import { LayoutApi } from 'json-react-layouts';

resourceType: string;
paramsCacheKey: string;
}) => Promise<TData>;

@@ -7,0 +8,0 @@ export interface DataDefinition<DataLoadArguments extends object, TData, Services extends object> {

@@ -6,3 +6,3 @@ import * as tslib_1 from "tslib";

var ComponentDataLoader = resources.registerResource('component-data-loader', function (_a) {
var dataDefinitionArgs = _a.dataDefinitionArgs, componentRenderPath = _a.componentRenderPath, dataDefinition = _a.dataDefinition, layout = _a.layout, resourceType = _a.resourceType, services = tslib_1.__rest(_a, ["dataDefinitionArgs", "componentRenderPath", "dataDefinition", "layout", "resourceType"]);
var dataDefinitionArgs = _a.dataDefinitionArgs, componentRenderPath = _a.componentRenderPath, dataDefinition = _a.dataDefinition, layout = _a.layout, resourceType = _a.resourceType, paramsCacheKey = _a.paramsCacheKey, services = tslib_1.__rest(_a, ["dataDefinitionArgs", "componentRenderPath", "dataDefinition", "layout", "resourceType", "paramsCacheKey"]);
var loadFn = wrapLoad ? wrapLoad(dataDefinition.loadData) : dataDefinition.loadData;

@@ -12,2 +12,3 @@ return loadFn(dataDefinitionArgs, services, {

resourceType: resourceType,
paramsCacheKey: paramsCacheKey,
});

@@ -14,0 +15,0 @@ }, ['componentRenderPath', 'dataDefinitionArgs']);

{
"name": "json-react-layouts-data-loader",
"version": "2.1.0",
"version": "2.2.0",
"main": "dist/cjs/index.js",

@@ -43,3 +43,3 @@ "module": "dist/esm/index.js",

"react-dom": "^16.9.0",
"react-ssr-data-loader": "^1.1.1",
"react-ssr-data-loader": "^1.2.0",
"ts-jest": "^24.0.2",

@@ -55,4 +55,4 @@ "tslib": "^1.10.0",

"json-react-layouts": "^2.0.1",
"react-ssr-data-loader": "^1.1.1"
"react-ssr-data-loader": "^1.2.0"
}
}

@@ -6,3 +6,3 @@ import { LayoutApi } from 'json-react-layouts'

services: Services,
context: { componentRenderPath: string; resourceType: string },
context: { componentRenderPath: string; resourceType: string; paramsCacheKey: string },
) => Promise<TData>

@@ -9,0 +9,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

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