Socket
Socket
Sign inDemoInstall

@coorpacademy/history

Package Overview
Dependencies
Maintainers
14
Versions
234
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coorpacademy/history - npm Package Compare versions

Comparing version 6.1.1 to 6.1.2-alpha-b593a267f.119

1

es/history.js
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
// eslint-disable-next-line node/no-deprecated-api
import { parse } from 'url';

@@ -4,0 +5,0 @@ import { createBrowserHistory as _createBrowserHistory, createMemoryHistory as _createMemoryHistory, createHashHistory as _createHashHistory } from 'history';

9

es/test/history.js
import test from 'ava';
import { useBasename } from '../history';
const historyFactory = () => {
return {};
};
[[{

@@ -11,6 +16,2 @@ basename: '/foo'

test(`should add createHref with ${JSON.stringify(options)} and return '${expect}'`, t => {
const historyFactory = () => {
return {};
};
const history = useBasename(historyFactory)(options);

@@ -17,0 +18,0 @@ t.truthy(history.createHref);

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

const historyFactory = () => {
return {};
};
[[{

@@ -18,6 +22,2 @@ basename: '/foo'

(0, _ava.default)(`should add createHref with ${JSON.stringify(options)} and return '${expect}'`, t => {
const historyFactory = () => {
return {};
};
const history = (0, _history.useBasename)(historyFactory)(options);

@@ -24,0 +24,0 @@ t.truthy(history.createHref);

{
"name": "@coorpacademy/history",
"version": "6.1.1",
"version": "6.1.2-alpha-b593a267f.119+b593a267f",
"description": "",

@@ -14,4 +14,4 @@ "main": "lib/history.js",

"ava": "ava",
"test:only": "nyc npm run ava",
"test": "npm run lint && npm run test:only",
"test:unit": "nyc npm run ava",
"test": "npm run lint && npm run test:unit",
"lint": "eslint . --ext .js,.json --cache --cache-location \"node_modules/.cache/.eslintcache\"",

@@ -44,3 +44,3 @@ "build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib -s --ignore test --copy-files",

"@babel/register": "^7.9.0",
"@coorpacademy/eslint-plugin-coorpacademy": "^9.0.1",
"@coorpacademy/eslint-plugin-coorpacademy": "^10.0.0",
"ava": "^3.8.2",

@@ -50,7 +50,7 @@ "babel-plugin-istanbul": "^6.0.0",

"cross-env": "^7.0.2",
"eslint": "^6.6.0",
"eslint": "^7.3.1",
"nyc": "^15.0.1"
},
"author": "CoorpAcademy",
"gitHead": "1a73990bc5b8b8ba4f4f14d4348613b1fe0d7822"
"gitHead": "b593a267fbb2a6605faaea576f6507616bb2b210"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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