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 4.2.1 to 5.0.0

index.ts

1

browser.js
"use strict";require("core-js/modules/es.function.name"),require("core-js/modules/es.object.define-property"),Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=type;/* eslint-disable no-undefined */function type(a){return null===a?"null":void 0===a?"undefined":a.constructor.name}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbInR5cGUiLCJ2YWx1ZSIsImNvbnN0cnVjdG9yIiwibmFtZSJdLCJtYXBwaW5ncyI6IjZMQUFBLGlDQUNlLFFBQVNBLENBQUFBLElBQVQsQ0FBd0RDLENBQXhELENBQTBFLE9BQ3pFLEtBQVYsR0FBQUEsQ0FEbUYsQ0FFOUUsTUFGOEUsQ0FLbkYsU0FBQUEsQ0FMbUYsQ0FNOUUsV0FOOEUsQ0FTaEZBLENBQUssQ0FBQ0MsV0FBTixDQUFrQkMsSUFDMUIiLCJzb3VyY2VzQ29udGVudCI6WyIvKiBlc2xpbnQtZGlzYWJsZSBuby11bmRlZmluZWQgKi9cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIHR5cGU8QSBleHRlbmRzIHtjb25zdHJ1Y3Rvcjoge25hbWU6IHN0cmluZ319PiAodmFsdWU6IEEpOiBzdHJpbmcge1xuICBpZiAodmFsdWUgPT09IG51bGwpIHtcbiAgICByZXR1cm4gXCJudWxsXCI7XG4gIH1cblxuICBpZiAodmFsdWUgPT09IHVuZGVmaW5lZCkge1xuICAgIHJldHVybiBcInVuZGVmaW5lZFwiO1xuICB9XG5cbiAgcmV0dXJuIHZhbHVlLmNvbnN0cnVjdG9yLm5hbWU7XG59XG4iXX0=
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=type;/* eslint-disable no-undefined */function type(a){return null===a?"null":void 0===a?"undefined":a.constructor.name}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbInR5cGUiLCJ2YWx1ZSIsImNvbnN0cnVjdG9yIiwibmFtZSJdLCJtYXBwaW5ncyI6InlGQUFBLGlDQUNlLFFBQVNBLENBQUFBLElBQVQsQ0FBd0RDLENBQXhELENBQTBFLE9BQ3pFLEtBQVYsR0FBQUEsQ0FEbUYsQ0FFOUUsTUFGOEUsQ0FLbkYsU0FBQUEsQ0FMbUYsQ0FNOUUsV0FOOEUsQ0FTaEZBLENBQUssQ0FBQ0MsV0FBTixDQUFrQkMsSUFDMUIiLCJzb3VyY2VzQ29udGVudCI6WyIvKiBlc2xpbnQtZGlzYWJsZSBuby11bmRlZmluZWQgKi9cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIHR5cGU8QSBleHRlbmRzIHtjb25zdHJ1Y3Rvcjoge25hbWU6IHN0cmluZ319PiAodmFsdWU6IEEpOiBzdHJpbmcge1xuICBpZiAodmFsdWUgPT09IG51bGwpIHtcbiAgICByZXR1cm4gXCJudWxsXCI7XG4gIH1cblxuICBpZiAodmFsdWUgPT09IHVuZGVmaW5lZCkge1xuICAgIHJldHVybiBcInVuZGVmaW5lZFwiO1xuICB9XG5cbiAgcmV0dXJuIHZhbHVlLmNvbnN0cnVjdG9yLm5hbWU7XG59XG4iXX0=

38

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

@@ -23,8 +23,9 @@ "keywords": [

"prepublishOnly": "npm run build",
"test": "NODE_ENV=test tap --100 './test.js'",
"test": "BABEL_ENV=test jest --coverage",
"build": "npm run build:browser && npm run build:main",
"build:main": "babel --env-name main --out-file './main.js' './index.js'",
"build:browser": "babel --env-name browser --out-file './browser.js' './index.js'",
"lint": "eslint './index.js'",
"ci": "npm run test"
"build:main": "babel --env-name main --out-file './main.js' './index.ts'",
"build:browser": "babel --env-name browser --out-file './browser.js' './index.ts'",
"lint": "eslint './index.ts'",
"typecheck": "tsc --noEmit",
"ci": "npm run typecheck && npm run lint && npm run test"
},

@@ -39,8 +40,8 @@ "devDependencies": {

"@babel/register": "7.4.0",
"@types/jest": "24.0.18",
"@types/node": "12.0.2",
"babel-eslint": "10.0.1",
"babel-jest": "23.0.0",
"babel-jest": "24.8.0",
"babel-plugin-annotate-console-log": "1.0.0",
"babel-plugin-istanbul": "5.1.1",
"babel-plugin-module-resolver": "3.2.0",
"babel-plugin-transform-imports": "1.5.1",
"babel-preset-minify": "0.5.0",

@@ -50,16 +51,10 @@ "eslint": "5.16.0",

"eslint-plugin-babel": "5.3.0",
"eslint-plugin-jest": "22.6.4",
"eslint-plugin-promise": "4.1.1",
"jest": "23.0.0",
"nyc": "13.3.0",
"tap": "12.6.1"
"jest": "24.8.0",
"jest-extended": "0.11.2",
"typescript": "3.5.1"
},
"nyc": {
"require": [
"@babel/register"
],
"sourceMap": false,
"instrument": false
},
"files": [
"index.js",
"index.ts",
"main.js",

@@ -72,3 +67,4 @@ "main.js.map",

"module": "module.js",
"browser": "browser.js"
"browser": "browser.js",
"types": "types.d.ts"
}

@@ -7,3 +7,3 @@ # @unction/type

> null | void | {constructor: {name: string}} => string
> (null | void | {constructor: {name: string}}) => string

@@ -10,0 +10,0 @@ Returns the type name of the value provided.

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