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.1 to 1.12.2

dist/cjs/entries.d.ts

12

CHANGELOG.md

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

## [1.12.2][] - 2020-08-01
### Fixed
- Fixing UMD bundle by using Rollup. Typescript was required in the package and one of the TS functions is required in the bundle.
## [1.12.1][] - 2020-07-31

@@ -303,5 +309,7 @@

[1.12.0]: https://github.com/willmendesneto/perf-marks/tree/v1.12.0
[unreleased]: https://github.com/willmendesneto/perf-marks/compare/v1.12.1...HEAD
[1.12.1]: https://github.com/willmendesneto/perf-marks/tree/v1.12.1
[Unreleased]: https://github.com/willmendesneto/perf-marks/compare/v1.12.1...HEAD
[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

9

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

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

"rollup": "^2.9.1",
"rollup-plugin-node-resolve": "^5.2.0",
"ts-jest": "^26.0.0",

@@ -66,3 +67,3 @@ "ts-node": "^8.10.1",

"build": "npm-run-all --parallel build:es2015 build:cjs build:esm && yarn build:umd",
"build:umd": "rollup dist/esm/index.js --format umd --name PerfMarks -o dist/umd/perf-marks.js && yarn build:umd:min",
"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",

@@ -96,7 +97,7 @@ "build:es2015": "tsc --module es2015 --target es2015 --outDir dist/es2015",

"path": "./dist/umd/perf-marks.js",
"maxSize": "2.6KB"
"maxSize": "3.5KB"
},
{
"path": "./dist/umd/perf-marks.min.js",
"maxSize": "1.07KB"
"maxSize": "1.42KB"
},

@@ -103,0 +104,0 @@ {

@@ -1,46 +0,14 @@

import commonjs from 'rollup-plugin-commonjs';
import resolve from 'rollup-plugin-node-resolve';
// import sourceMaps from 'rollup-plugin-sourcemaps';
// import typescript from 'rollup-plugin-typescript2';
import { browser, module } from './package.json';
// const pkg = require('./package.json');
// const config = (tsconfigOverride = {}) => ({
// input: `src/index.ts`,
// // Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash')
// // external: pkg.dependencies,
// watch: {
// include: 'src/**',
// },
// plugins: [
// // Compile TypeScript files
// typescript({
// useTsconfigDeclarationDir: true,
// tsconfigOverride: { include: ['src'], ...tsconfigOverride },
// }),
// // Allow bundling cjs modules (unlike webpack, rollup doesn't understand cjs)
// commonjs(),
// // Allow node_modules resolution, so you can use 'external' to control
// // which external modules to include in the bundle
// // https://github.com/rollup/rollup-plugin-node-resolve#usage
// resolve(),
// ],
// });
// export default [
// {
// output: [{ file: pkg.browser, name: 'PerfMarks', format: 'umd', sourcemap: true }],
// },
// ];
const config = {
input: 'dist/cjs/index.js',
input: module,
output: {
file: 'dist/umd/perf-marks.js',
file: browser,
format: 'umd',
name: 'PerfMarks',
},
plugins: [commonjs(), resolve()],
plugins: [resolve()],
};
export default config;
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