New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

option-t

Package Overview
Dependencies
Maintainers
1
Versions
333
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

option-t - npm Package Compare versions

Comparing version 0.11.0 to 0.12.0

12

CHANGELOG.md

@@ -5,3 +5,15 @@ # Changelog

### New Feature
* Support `typings` field in package.json for TypeScript.
* See more details: https://github.com/Microsoft/TypeScript/pull/4352
### Breaking Change
* TypeScript's type definition only support ES6 target officially.
* You may continue to use this package without make your code to ES6 target.
See more details: [#72](https://github.com/saneyuki/option-t.js/pull/72)
## 0.11.0

@@ -8,0 +20,0 @@

12

option-t.d.ts

@@ -27,14 +27,2 @@ /*

// for test
interface Promise<T> {
then<U>(
onFulfill: (value: T) => U | Promise<U>,
onReject?: (error: any) => U | Promise<U>
): Promise<U>;
catch<U>(
onRejected: (error: any) => U | Promise<U>
): Promise<U>;
}
interface Option<T> {

@@ -41,0 +29,0 @@ isSome: boolean;

24

package.json
{
"name": "option-t",
"version": "0.11.0",
"version": "0.12.0",
"description": "Option type implementation whose APIs are inspired by Rust's `Option<T>`.",

@@ -32,8 +32,3 @@ "main": "src/index.js",

],
"licenses": [
{
"type": "MIT License",
"url": "http://opensource.org/licenses/MIT"
}
],
"license": "MIT",
"repository": {

@@ -49,11 +44,12 @@ "type": "git",

"devDependencies": {
"es6-promise": "^2.0.1",
"eslint": "^0.22.1",
"espower-loader": "^0.11.0",
"intelli-espower-loader": "^0.7.0",
"mocha": "^2.2.1",
"power-assert": "^0.11.0",
"es6-promise": "^3.0.2",
"eslint": "^1.3.1",
"espower-loader": "^1.0.0",
"intelli-espower-loader": "^1.0.0",
"mocha": "^2.3.0",
"power-assert": "^1.0.0",
"promise-test-helper": "^0.2.1",
"typescript": "^1.5.0-beta"
"typescript": "^1.5.3"
},
"typings": "option-t.d.ts",
"typescript": {

@@ -60,0 +56,0 @@ "definition": "option-t.d.ts"

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