Socket
Socket
Sign inDemoInstall

@center-inc/react

Package Overview
Dependencies
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@center-inc/react - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

14

dist/index.d.ts

@@ -7,4 +7,16 @@ export { CenterProvider } from './src/components/CenterProvider';

export { useCollectionSearch } from './src/hooks/useCollectionSearch';
export * from './src/components/Asset';
export type { ProgressRendererProps } from './src/components/Asset/Asset';
export type { Network, ApiMode, MediaPreset } from './src/types';
/**
* TODO(enes): check this error
* Needed to update export modules from Asset component like named export instead of default export.
* The applications using this package throws this error:
*
* SyntaxError: Named export 'A' not found. The requested module './index-b8e44e8e.js' is a CommonJS module, which may not support all module.exports as named exports.
* CommonJS modules can always be imported via the default export, for example using:
* import pkg from './index-b8e44e8e.js';
* const {A: Asset,S: AssetLoadingStatus,f: Assets,C: CenterProvider,E: ErrorPlaceholder,L: LoadingPlaceholder,u: useAsset,b: useAssets,c: useCenterContext,d: useCollection,e: useCollectionSearch} = pkg;
*
*/
export { Asset, AssetLoadingStatus, Assets, ErrorPlaceholder, LoadingPlaceholder } from './src/components/Asset';
export type { AssetProps } from './src/components/Asset';

14

package.json

@@ -5,3 +5,3 @@ {

"author": "Center Pixel, Inc <opensource@center.app>",
"version": "1.1.1",
"version": "1.1.2",
"publishConfig": {

@@ -27,12 +27,10 @@ "access": "public"

"@babel/core": ">=7.11.0 <8.0.0",
"@center-inc/api-client": "1.1.1",
"@center-inc/api-client": "1.1.2",
"eslint": "^7.5.0 || ^8.0.0",
"form-data": "^4.0.0",
"headers-polyfill": "^3.0.10",
"react": "17.0.2",
"react-dom": ">=17.0.2 <18.0.0"
"headers-polyfill": "^3.0.10"
},
"peerDependencies": {
"react": ">=17.0.0",
"react-dom": ">=17.0.0"
"react": "*",
"react-dom": "*"
},

@@ -64,2 +62,4 @@ "devDependencies": {

"prop-types": "^15.5.9",
"react": "17.0.2",
"react-dom": ">=17.0.0 <18.0.0",
"rollup": ">=2.0.0 <3.0.0",

@@ -66,0 +66,0 @@ "ts-jest": "~27.1.1",

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