Socket
Socket
Sign inDemoInstall

perf-marks

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

perf-marks - npm Package Compare versions

Comparing version 1.12.2 to 1.13.0

dist/es2020/entries.d.ts

12

CHANGELOG.md

@@ -10,2 +10,8 @@ # Change Log

## [1.13.0][] - 2020-08-01
### Updated
- Adding `ES2020` bundle on published content. Now the package supports `CommonJS`, `UMD`, `ESM`, `ES2015` and `ES2020` 📦
## [1.12.2][] - 2020-08-01

@@ -311,5 +317,7 @@

[1.12.1]: https://github.com/willmendesneto/perf-marks/tree/v1.12.1
[unreleased]: https://github.com/willmendesneto/perf-marks/compare/v1.12.2...HEAD
[1.12.2]: https://github.com/willmendesneto/perf-marks/tree/v1.12.2
[Unreleased]: https://github.com/willmendesneto/perf-marks/compare/v1.12.2...HEAD
[1.12.2]: https://github.com/willmendesneto/perf-marks/tree/v1.12.2
[Unreleased]: https://github.com/willmendesneto/perf-marks/compare/v1.13.0...HEAD
[1.13.0]: https://github.com/willmendesneto/perf-marks/tree/v1.13.0

2

dist/cjs/profiler.js

@@ -6,4 +6,2 @@ "use strict";

var marks_1 = require("./marks");
// const isPromise = (obj: any) =>
// !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
/**

@@ -10,0 +8,0 @@ * profiler using User Timing Api method.

import { __awaiter } from "tslib";
import { start, end } from './marks';
// const isPromise = (obj: any) =>
// !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
/**

@@ -6,0 +4,0 @@ * profiler using User Timing Api method.

import { __awaiter, __generator } from "tslib";
import { start, end } from './marks';
// const isPromise = (obj: any) =>
// !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
/**

@@ -6,0 +4,0 @@ * profiler using User Timing Api method.

@@ -238,4 +238,2 @@ (function (global, factory) {

// const isPromise = (obj: any) =>
// !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
/**

@@ -242,0 +240,0 @@ * profiler using User Timing Api method.

{
"name": "perf-marks",
"version": "1.12.2",
"version": "1.13.0",
"author": "Will Mendes <willmendesneto@gmail.com>",

@@ -16,3 +16,4 @@ "description": "The simplest and lightweight solution for User Timing API in Javascript.",

"main": "dist/cjs/index.js",
"es2015": "dist/cjs/index.js",
"es2015": "dist/es2015/index.js",
"es2020": "dist/es2020/index.js",
"cjs": "dist/cjs/index.js",

@@ -66,5 +67,6 @@ "types": "dist/cjs/index.d.ts",

"clean": "rm -rf ./dist ./.jest ./coverage ./lib",
"build": "npm-run-all --parallel build:es2015 build:cjs build:esm && yarn build:umd",
"build": "yarn clean && npm-run-all --parallel build:es2015 build:cjs build:esm build:es2020 && yarn build:umd",
"build:umd": "rollup --config && yarn build:umd:min",
"build:umd:min": "uglifyjs --compress --mangle --comments -o dist/umd/perf-marks.min.js -- dist/umd/perf-marks.js && gzip dist/umd/perf-marks.min.js -c > dist/umd/perf-marks.min.js.gz",
"build:es2020": "tsc --module esnext --target es2020 --outDir dist/es2020",
"build:es2015": "tsc --module es2015 --target es2015 --outDir dist/es2015",

@@ -71,0 +73,0 @@ "build:esm": "tsc --module esnext --target es5 --outDir dist/esm",

@@ -269,4 +269,6 @@ # Perf-marks

If you need optimize your bundle size even more, this package provides different bundles for `CommonJS`, `UMD`, `ESM` and `ES2015`. To make the dev experience smoothiest as possible, you can use `babel-plugin-transform-imports` in your app and configure the bundle that fits the most for your app!
If you need optimize your bundle size even more, this package provides different bundles for `CommonJS`, `UMD`, `ESM`, `ES2015` and `ES2020`. To make the dev experience smoothiest as possible, you can use `babel-plugin-transform-imports` in your app and configure the bundle that fits the most for your app!
> Also, please make sure you configured your module bundler to support these optimized bundles based on your development loop. For Webpack, please check https://webpack.js.org/configuration/resolve/#resolvemainfields for more details or look for the module bundler documentation you're currently using.
```bash

@@ -273,0 +275,0 @@ yarn add -D babel-plugin-transform-imports

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