New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

manifold-dx-redirect-dx

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

manifold-dx-redirect-dx - npm Package Compare versions

Comparing version 0.8.1 to 1.0.0

.run/npm test.run.xml

7

dist/src/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getHistory = exports.factory = exports.RedirectDx = void 0;
var RedirectDx_1 = require("./RedirectDx");
exports.RedirectDx = RedirectDx_1.RedirectDx;
exports.getHistory = RedirectDx_1.getHistory;
exports.factory = RedirectDx_1.factory;
Object.defineProperty(exports, "RedirectDx", { enumerable: true, get: function () { return RedirectDx_1.RedirectDx; } });
Object.defineProperty(exports, "getHistory", { enumerable: true, get: function () { return RedirectDx_1.getHistory; } });
Object.defineProperty(exports, "factory", { enumerable: true, get: function () { return RedirectDx_1.factory; } });
//# sourceMappingURL=index.js.map

@@ -33,3 +33,3 @@ import * as React from 'react';

export declare const RedirectDxView: React.FunctionComponent<RouteRedirectDxViewProps>;
export declare const factory: React.ComponentFactory<Pick<RouteRedirectDxViewProps, "path" | "exact" | "strict" | "to" | "push" | "from" | "initializing" | "historyMax">, React.Component<Pick<RouteRedirectDxViewProps, "path" | "exact" | "strict" | "to" | "push" | "from" | "initializing" | "historyMax">, any, any>>;
export declare const factory: React.CFactory<Pick<RouteRedirectDxViewProps, "push" | "path" | "exact" | "strict" | "to" | "from" | "initializing" | "historyMax">, React.Component<Pick<RouteRedirectDxViewProps, "push" | "path" | "exact" | "strict" | "to" | "from" | "initializing" | "historyMax">, any, any>>;
/**

@@ -36,0 +36,0 @@ * The component the app should subclass to redirect based upon the URL as maintained in manifold-dx's app state.

@@ -6,6 +6,8 @@ "use strict";

({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
}
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);

@@ -32,7 +34,10 @@ function __() { this.constructor = d; }

if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
t[p[i]] = s[p[i]];
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.RedirectDx = exports.factory = exports.RedirectDxView = exports.render = exports.getHistory = void 0;
var React = require("react");

@@ -96,3 +101,3 @@ var react_router_1 = require("react-router");

},
nothing: function () { return (null); }
nothing: function () { return null; }
};

@@ -110,3 +115,3 @@ /**

*/
exports.RedirectDxView = function (props) {
var RedirectDxView = function (props) {
// We'll get warnings if we try to redirect to the same place, so we programmatically prevent that

@@ -119,2 +124,3 @@ var newLocation = props.to !== props.history.location.pathname;

};
exports.RedirectDxView = RedirectDxView;
var WithRouterRedirectDx = react_router_1.withRouter(exports.RedirectDxView);

@@ -167,2 +173,4 @@ exports.factory = React.createFactory(WithRouterRedirectDx);

mappingActions.push(manifold_dx_1.getMappingActionCreator(this.props.redirectDxState, this.props.redirectDxProp)
// @ts-ignore manifold-dx uses ExtractMatching (mapped conditional types) for exhaustive source/target
// type-matching we don't need, by defn `redirectDxProp: Extract<keyof S, string>;` ie, string to string
.createPropertyMappingAction(this, 'to', initFn));

@@ -175,3 +183,3 @@ };

var _a = this.props, children = _a.children, redirectDxState = _a.redirectDxState, redirectDxProp = _a.redirectDxProp, redirectProps = __rest(_a, ["children", "redirectDxState", "redirectDxProp"]);
return __assign({}, redirectProps, { to: this.props.redirectDxProp, initializing: true, historyMax: 10 });
return __assign(__assign({}, redirectProps), { to: this.props.redirectDxProp, initializing: true, historyMax: 10 });
};

@@ -178,0 +186,0 @@ return RedirectDx;

{
"name": "manifold-dx-redirect-dx",
"version": "0.8.1",
"version": "1.0.0",
"description": "",

@@ -100,3 +100,6 @@ "keywords": [

"@types/jsdom": "^12.2.1",
"@types/node": "^10.11.0",
"@types/node": "^16.11.6",
"@types/react": "17.0.34",
"@types/react-router": "5.1.17",
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.5",
"colors": "^1.3.2",

@@ -107,4 +110,3 @@ "commitizen": "^3.0.0",

"cz-conventional-changelog": "^2.1.0",
"enzyme": "^3.8.0",
"enzyme-adapter-react-16": "^1.7.1",
"enzyme": "3.11.0",
"husky": "^1.0.1",

@@ -116,5 +118,8 @@ "jest": "^23.6.0",

"lodash.camelcase": "^4.3.0",
"manifold-dx": "^1.1.28",
"prettier": "^1.14.3",
"prompt": "^1.0.0",
"react-dom": "^16.7.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-router": "5.1.2",
"replace-in-file": "^3.4.2",

@@ -137,16 +142,12 @@ "rimraf": "^2.6.2",

"typedoc": "^0.12.0",
"typescript": "^3.1.6",
"@types/react": "^16.7.20",
"@types/react-router": "^4.4.3",
"manifold-dx": "^0.9.3",
"react": "^16.7.0",
"react-router": "^4.3.1"
"typescript": "^4.3.5"
},
"peerDependencies": {
"@types/react": "^16.7.20",
"@types/react-router": "^4.4.3",
"manifold-dx": "^0.9.3",
"react": "^16.7.0",
"react-router": "^4.3.1"
"typescript": "^3.7.7 - ^4.3.5",
"@types/react-router": "^4.4.3 - 5.1.17",
"manifold-dx": "^0.9.3 - ^1.1",
"react-router": "^4.3.1 - ^5.1.2",
"react": "15.6.0 - 17.0.2",
"@types/react": "^15.6.0 - ^17.0.2"
}
}

@@ -10,3 +10,3 @@ # React Router Integration for manifold-dx: RedirectDx

```typescript jsx
getActionCreator(this.appState).update('redirectTo', 'search').dispatch();
getActionCreator(this.appState).set('redirectTo', 'search').dispatch();
```

@@ -13,0 +13,0 @@ Note that this means that you've defined appState to have a string property called 'redirectTo'

@@ -5,4 +5,4 @@ import { RedirectDx } from '../src'

it('finds RedirectDx', () => {
expect(RedirectDx).toBeTruthy();
});
});
expect(RedirectDx).toBeTruthy()
})
})

@@ -8,3 +8,3 @@ {

"jsx": "react",
"lib": ["es2015", "es2016", "es2017", "dom"],
"lib": ["es6", "dom"],
"strict": true,

@@ -11,0 +11,0 @@ "sourceMap": true,

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