Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

maishu-chitu

Package Overview
Dependencies
Maintainers
1
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

maishu-chitu - npm Package Compare versions

Comparing version 2.17.0 to 2.18.0

10

dist/index.es5.js
/*!
*
* maishu-chitu v2.17.0
* maishu-chitu v2.18.0
* https://github.com/ansiboy/chitu

@@ -189,6 +189,6 @@ *

function _createUrl(pageName, params) {
function createPageUrl(pageName, params) {
var path_parts = pageName.split('.');
var path = path_parts.join('/');
if (!params) return "#".concat(path);
if (!params) return "".concat(path);
var paramsText = '';

@@ -208,3 +208,3 @@

return "#".concat(path).concat(paramsText);
return "".concat(path).concat(paramsText);
}

@@ -241,3 +241,3 @@

value: function createUrl(pageName, values) {
return _createUrl(pageName, values);
return createPageUrl(pageName, values);
}

@@ -244,0 +244,0 @@ }, {

/*!
*
* maishu-chitu v2.17.0
* maishu-chitu v2.18.0
* https://github.com/ansiboy/chitu

@@ -150,7 +150,7 @@ *

}
function createUrl(pageName, params) {
function createPageUrl(pageName, params) {
let path_parts = pageName.split('.');
let path = path_parts.join('/');
if (!params)
return `#${path}`;
return `${path}`;
let paramsText = '';

@@ -165,3 +165,3 @@ for (let key in params) {

}
return `#${path}${paramsText}`;
return `${path}${paramsText}`;
}

@@ -182,3 +182,3 @@ class Application extends PageMaster_1.PageMaster {

createUrl(pageName, values) {
return createUrl(pageName, values);
return createPageUrl(pageName, values);
}

@@ -185,0 +185,0 @@ run() {

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

function _createUrl(pageName, params) {
function createPageUrl(pageName, params) {
var path_parts = pageName.split('.');
var path = path_parts.join('/');
if (!params) return "#".concat(path);
if (!params) return "".concat(path);
var paramsText = '';

@@ -103,3 +103,3 @@

return "#".concat(path).concat(paramsText);
return "".concat(path).concat(paramsText);
}

@@ -136,3 +136,3 @@

value: function createUrl(pageName, values) {
return _createUrl(pageName, values);
return createPageUrl(pageName, values);
}

@@ -139,0 +139,0 @@ }, {

@@ -46,7 +46,7 @@ define(["require", "exports", "maishu-chitu-service", "./PageMaster", "./Errors"], function (require, exports, maishu_chitu_service_1, PageMaster_1, Errors_1) {

}
function createUrl(pageName, params) {
function createPageUrl(pageName, params) {
let path_parts = pageName.split('.');
let path = path_parts.join('/');
if (!params)
return `#${path}`;
return `${path}`;
let paramsText = '';

@@ -61,3 +61,3 @@ for (let key in params) {

}
return `#${path}${paramsText}`;
return `${path}${paramsText}`;
}

@@ -78,3 +78,3 @@ class Application extends PageMaster_1.PageMaster {

createUrl(pageName, values) {
return createUrl(pageName, values);
return createPageUrl(pageName, values);
}

@@ -81,0 +81,0 @@ run() {

@@ -36,3 +36,3 @@ {

},
"version": "2.17.0"
"version": "2.18.0"
}

@@ -78,7 +78,7 @@ import { IService, ServiceConstructor, Service } from "maishu-chitu-service";

function createUrl<T>(pageName: string, params?: T) {
function createPageUrl<T>(pageName: string, params?: T) {
let path_parts = pageName.split('.');
let path = path_parts.join('/');
if (!params)
return `#${path}`;
return `${path}`;

@@ -97,3 +97,3 @@ //==============================================

//==============================================
return `#${path}${paramsText}`;
return `${path}${paramsText}`;
}

@@ -137,3 +137,3 @@

createUrl<T>(pageName: string, values?: T) {
return createUrl(pageName, values);
return createPageUrl(pageName, values);
}

@@ -140,0 +140,0 @@

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