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

@dhis2/prop-types

Package Overview
Dependencies
Maintainers
14
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dhis2/prop-types - npm Package Compare versions

Comparing version 1.0.4 to 1.1.0

27

build/cjs/index.js

@@ -24,7 +24,28 @@ "use strict";

});
exports.default = void 0;
var _arrayWithLength = require("./arrayWithLength");
var _propTypes = _interopRequireDefault(require("prop-types"));
var _instanceOfComponent = require("./instanceOfComponent");
var _arrayWithLength = require("./arrayWithLength.js");
var _mutuallyExclusive = require("./mutuallyExclusive");
var _instanceOfComponent = require("./instanceOfComponent.js");
var _mutuallyExclusive = require("./mutuallyExclusive.js");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var customPropTypes = {
arrayWithLength: _arrayWithLength.arrayWithLength,
instanceOfComponent: _instanceOfComponent.instanceOfComponent,
mutuallyExclusive: _mutuallyExclusive.mutuallyExclusive
};
var _default = _objectSpread({}, _propTypes.default, {}, customPropTypes);
exports.default = _default;

@@ -1,3 +0,13 @@

export { arrayWithLength } from './arrayWithLength';
export { instanceOfComponent } from './instanceOfComponent';
export { mutuallyExclusive } from './mutuallyExclusive';
import propTypes from 'prop-types';
import { arrayWithLength } from './arrayWithLength.js';
import { instanceOfComponent } from './instanceOfComponent.js';
import { mutuallyExclusive } from './mutuallyExclusive.js';
const customPropTypes = {
arrayWithLength,
instanceOfComponent,
mutuallyExclusive
};
export { arrayWithLength, instanceOfComponent, mutuallyExclusive };
export default { ...propTypes,
...customPropTypes
};

@@ -0,1 +1,8 @@

# [1.1.0](https://github.com/dhis2/prop-types/compare/v1.0.4...v1.1.0) (2019-09-11)
### Features
* add custom prop types to propTypes object ([#39](https://github.com/dhis2/prop-types/issues/39)) ([e23ffb7](https://github.com/dhis2/prop-types/commit/e23ffb7))
## [1.0.4](https://github.com/dhis2/prop-types/compare/v1.0.3...v1.0.4) (2019-08-25)

@@ -2,0 +9,0 @@

10

package.json
{
"name": "@dhis2/prop-types",
"version": "1.0.4",
"version": "1.1.0",
"main": "./build/cjs/index.js",

@@ -23,7 +23,7 @@ "module": "./build/es/index.js",

"devDependencies": {
"@babel/cli": "^7.5.5",
"@babel/core": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@babel/cli": "^7.6.0",
"@babel/core": "^7.6.0",
"@babel/preset-env": "^7.6.0",
"@dhis2/cli-style": "4.1.1",
"jsdoc-to-markdown": "^5.0.0"
"jsdoc-to-markdown": "^5.0.1"
},

@@ -30,0 +30,0 @@ "peerDependencies": {

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