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

yup

Package Overview
Dependencies
Maintainers
1
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yup - npm Package Compare versions

Comparing version 0.26.2 to 0.26.3

2

CHANGELOG.md

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

## v0.26.3 - Tue, 28 Aug 2018 15:00:04 GMT
## v0.26.0 - Fri, 20 Jul 2018 15:39:03 GMT

@@ -2,0 +4,0 @@

35

package.json
{
"name": "yup",
"version": "0.26.2",
"version": "0.26.3",
"description": "Dead simple Object schema validation",
"main": "lib/index.js",
"runkitExampleFilename": "./runkit-example.js",
"scripts": {

@@ -14,3 +15,3 @@ "test": "npm run lint && npm run test-all -- --runInBand",

"toc": "doctoc README.md --github",
"build": "babel src --out-dir lib && npm run toc",
"build": "babel src --out-dir lib --delete-dir-on-start && npm run toc",
"release": "release"

@@ -46,3 +47,2 @@ },

"testEnvironment": "node",
"testURL": "https://localhost",
"setupTestFrameworkScriptFile": "./test-setup.js",

@@ -58,8 +58,8 @@ "roots": [

"devDependencies": {
"@babel/cli": "7.0.0-rc.1",
"@babel/core": "7.0.0-rc.1",
"@babel/cli": "7.0.0",
"@babel/core": "7.0.0",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^8.2.6",
"babel-eslint": "^9.0.0",
"babel-jest": "^22.4.3",
"babel-preset-jason": "^5.0.0",
"babel-preset-jason": "^6.0.1",
"benchmark": "^2.0.0",

@@ -72,7 +72,7 @@ "chai": "^4.1.2",

"eslint-config-jason": "^4.0.1",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-react": "^7.10.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-react": "^7.11.1",
"husky": "^0.14.3",
"jest": "^22.4.3",
"lint-staged": "^7.2.0",
"lint-staged": "^7.2.2",
"mt-changelog": "^0.6.2",

@@ -82,21 +82,18 @@ "prettier": "^1.13.7",

"release-script": "^1.0.2",
"rollup": "^0.63.3",
"rollup-plugin-babel": "^4.0.0-beta.7",
"rollup-plugin-filesize": "^2.0.0",
"rollup": "^0.65.0",
"rollup-plugin-babel": "^4.0.2",
"rollup-plugin-filesize": "^4.0.1",
"rollup-plugin-node-resolve": "^3.3.0",
"rollup-plugin-size-snapshot": "^0.6.1",
"sinon": "^5.0.7",
"sinon": "^6.1.5",
"sinon-chai": "^3.2.0"
},
"dependencies": {
"@babel/runtime": "7.0.0-rc.1",
"@babel/runtime": "7.0.0",
"fn-name": "~2.0.1",
"lodash": "^4.17.10",
"property-expr": "^1.5.0",
"synchronous-promise": "^1.0.18",
"synchronous-promise": "^2.0.5",
"toposort": "^2.0.2"
},
"resolutions": {
"@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.51"
},
"release-script": {

@@ -103,0 +100,0 @@ "defaultDryRun": "false"

@@ -18,2 +18,3 @@ # Yup

- [Install](#install)

@@ -630,3 +631,3 @@ - [Usage](#usage)

Alternatively you can provide a function the returns a schema
Alternatively you can provide a function that returns a schema
(called with the value of the key and the current schema).

@@ -1040,2 +1041,24 @@

Note that you can chain `shape` method, which acts like object extends, for example:
```javascript
object({
a: string(),
b: number(),
}).shape({
b: string(),
c: number(),
});
```
would be exactly the same as:
```javascript
object({
a: string(),
b: string(),
c: number(),
});
```
#### `object.from(fromKey: string, toKey: string, alias: boolean = false): Schema`

@@ -1042,0 +1065,0 @@

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