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

@unction/type

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unction/type - npm Package Compare versions

Comparing version 1.0.3 to 2.0.0

.babelrc

63

package.json
{
"name": "@unction/type",
"version": "1.0.3",
"version": "2.0.0",
"description": "Returns the type name of the value provided.",

@@ -9,24 +9,51 @@ "keywords": [

],
"author": "Kurtis Rainbolt-Greene (@krainboltgreene) <kurtis@rainbolt-greene.online>",
"contributors": [
{
"name": "Kurtis Rainbolt-Greene",
"email": "kurtis@rainbolt-greene.online",
"url": "https://kurtis.rainbolt-greene.online"
}
],
"license": "ISC",
"homepage": "https://github.com/krainboltgreene/unction.js#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/krainboltgreene/unction.js.git"
},
"bugs": {
"url": "https://github.com/krainboltgreene/unction/issues"
},
"main": "transpiled/index.js",
"homepage": "https://github.com/unctionjs/tempLate#readme",
"repository": "github:unctionjs/tempLate",
"bugs": "https://github.com/unctionjs/tempLate/issues",
"main": "transpiled/source.js",
"scripts": {
"prepare": "npm run build",
"pretest": "npm run build",
"test": "tap --reporter min './transpiled/test.js'",
"build": "babel './index.js' './test.js' -d './transpiled/'",
"lint": "eslint './index.js'"
"prepublishOnly": "npm run build",
"prepare": "flow-typed install",
"test": "NODE_ENV=test tap --100 './test.js'",
"build": "babel './source.js' -d './transpiled/'",
"lint": "eslint './source.js'",
"check": "flow check",
"ci": "npm run build && npm run lint && npm run check && npm run test"
},
"devDependencies": {
"tap": "10.3.3"
"babel-cli": "6.24.1",
"babel-core": "6.25.0",
"babel-eslint": "7.2.3",
"babel-plugin-istanbul": "4.1.4",
"babel-plugin-pipe-operator-curry": "1.0.2",
"babel-plugin-transform-object-rest-spread": "6.23.0",
"babel-preset-env": "1.6.0",
"babel-preset-flow": "6.23.0",
"eslint": "3.19.0",
"eslint-plugin-babel": "4.1.2",
"eslint-plugin-flowtype": "2.35.0",
"eslint-plugin-immutable": "1.0.0",
"eslint-plugin-import": "2.7.0",
"eslint-plugin-promise": "3.5.0",
"flow": "0.2.3",
"flow-bin": "0.51.1",
"flow-typed": "2.1.5",
"nyc": "11.1.0",
"tap": "10.3.4"
},
"false": {}
"nyc": {
"require": [
"babel-register"
],
"sourceMap": false,
"instrument": false
}
}
# @unction/type
![Tests][BADGE_TRAVIS]

@@ -8,3 +7,3 @@ ![Stability][BADGE_STABILITY]

> any -> string
> null | void | {constructor: {name: string}} -> string

@@ -23,5 +22,4 @@ Returns the type name of the value provided.

[BADGE_TRAVIS]: https://img.shields.io/travis/krainboltgreene/unction.js.svg?maxAge=2592000&style=flat-square
[BADGE_TRAVIS]: https://img.shields.io/travis/unctionjs/type.svg?maxAge=2592000&style=flat-square
[BADGE_STABILITY]: https://img.shields.io/badge/stability-strong-green.svg?maxAge=2592000&style=flat-square
[BADGE_DEPENDENCY]: https://img.shields.io/david/krainboltgreene/unction.js.svg?maxAge=2592000&style=flat-square
[BADGE_DEPENDENCY]: https://img.shields.io/david/unctionjs/type.svg?maxAge=2592000&style=flat-square
/* eslint-disable flowtype/require-parameter-type, flowtype/require-return-type, no-undefined, no-magic-numbers */
import {test} from "tap"
import type from "./"
import type from "./source"

@@ -6,0 +6,0 @@ test(({same, end}) => {

@@ -5,5 +5,5 @@ "use strict";

var _ = require("./");
var _source = require("./source");
var _2 = _interopRequireDefault(_);
var _source2 = _interopRequireDefault(_source);

@@ -17,3 +17,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

same((0, _2.default)("a"), "String");
same((0, _source2.default)("a"), "String");

@@ -27,3 +27,3 @@ end();

same((0, _2.default)(1), "Number");
same((0, _source2.default)(1), "Number");

@@ -37,3 +37,3 @@ end();

same((0, _2.default)({}), "Object");
same((0, _source2.default)({}), "Object");

@@ -47,3 +47,3 @@ end();

same((0, _2.default)([]), "Array");
same((0, _source2.default)([]), "Array");

@@ -57,3 +57,3 @@ end();

same((0, _2.default)(true), "Boolean");
same((0, _source2.default)(true), "Boolean");

@@ -67,3 +67,3 @@ end();

same((0, _2.default)(false), "Boolean");
same((0, _source2.default)(false), "Boolean");

@@ -77,3 +77,3 @@ end();

same((0, _2.default)(null), "null");
same((0, _source2.default)(null), "null");

@@ -87,5 +87,5 @@ end();

same((0, _2.default)(undefined), "undefined");
same((0, _source2.default)(undefined), "undefined");
end();
});
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