You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

typescript-string-operations

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript-string-operations - npm Package Compare versions

Comparing version

to
1.3.3

.circleci/config-compiled.yml

14

dist/index.js
"use strict";
var __spreadArrays = (this && this.__spreadArrays) || function () {
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
for (var r = Array(s), k = 0, i = 0; i < il; i++)
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
r[k] = a[j];
return r;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.StringBuilder = exports.String = void 0;
var String = (function () {

@@ -48,3 +56,3 @@ function String() {

var stringArray = args;
return String.join.apply(String, [delimiter].concat(stringArray));
return String.join.apply(String, __spreadArrays([delimiter], stringArray));
}

@@ -135,3 +143,3 @@ catch (e) {

if (numberparts.length > 1) {
parts = [String.join.apply(String, [''].concat((numberparts.splice(0, numberparts.length - 1)))), numberparts[numberparts.length - 1]];
parts = [String.join.apply(String, __spreadArrays([''], (numberparts.splice(0, numberparts.length - 1)))), numberparts[numberparts.length - 1]];
}

@@ -248,3 +256,3 @@ var integer = parts[0];

}
this.Values.push(String.Format.apply(String, [format].concat(args)));
this.Values.push(String.Format.apply(String, __spreadArrays([format], args)));
};

@@ -251,0 +259,0 @@ StringBuilder.prototype.Clear = function () {

"use strict";
var __spreadArrays = (this && this.__spreadArrays) || function () {
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
for (var r = Array(s), k = 0, i = 0; i < il; i++)
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
r[k] = a[j];
return r;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.StringBuilder = exports.String = void 0;
var String = (function () {

@@ -48,3 +56,3 @@ function String() {

var stringArray = args;
return String.join.apply(String, [delimiter].concat(stringArray));
return String.join.apply(String, __spreadArrays([delimiter], stringArray));
}

@@ -135,3 +143,3 @@ catch (e) {

if (numberparts.length > 1) {
parts = [String.join.apply(String, [''].concat((numberparts.splice(0, numberparts.length - 1)))), numberparts[numberparts.length - 1]];
parts = [String.join.apply(String, __spreadArrays([''], (numberparts.splice(0, numberparts.length - 1)))), numberparts[numberparts.length - 1]];
}

@@ -248,3 +256,3 @@ var integer = parts[0];

}
this.Values.push(String.Format.apply(String, [format].concat(args)));
this.Values.push(String.Format.apply(String, __spreadArrays([format], args)));
};

@@ -251,0 +259,0 @@ StringBuilder.prototype.Clear = function () {

@@ -7,3 +7,3 @@ export class String {

public static IsNullOrWhiteSpace(value: string): boolean {
public static IsNullOrWhiteSpace(value: string | undefined): boolean {
try {

@@ -10,0 +10,0 @@ if (value == null || value == 'undefined') {

export declare class String {
static Empty: string;
static IsNullOrWhiteSpace(value: string): boolean;
static IsNullOrWhiteSpace(value: string | undefined): boolean;
static Join(delimiter: string, ...args: (string | object | Array<any>)[]): string;
static Format(format: string, ...args: any[]): string;
}
{
"name": "typescript-string-operations",
"version": "1.3.2",
"version": "1.3.3",
"description": "Simple lightweight string operation library for Typescript, works with Angular",

@@ -8,3 +8,4 @@ "main": "dist/index.min.js",

"test": "mocha -r ts-node/register tests/**/tests.ts",
"build": "gulp default && gulp compress"
"build": "gulp default && gulp compress",
"tsc": "tsc"
},

@@ -29,15 +30,17 @@ "repository": {

"homepage": "https://github.com/sevensc/typescript-string-operations#readme",
"dependencies": {},
"dependencies": {
"@types/node": "^14.0.13"
},
"devDependencies": {
"@types/chai": "^4.2.7",
"@types/mocha": "^2.2.48",
"@types/chai": "^4.2.11",
"@types/mocha": "^7.0.2",
"chai": "^4.2.0",
"gulp": "^4.0.2",
"gulp-rename": "^1.4.0",
"gulp-typescript": "^3.2.4",
"gulp-rename": "^2.0.0",
"gulp-typescript": "^5.0.1",
"gulp-uglify": "^3.0.2",
"mocha": "^5.2.0",
"pump": "^2.0.1",
"ts-node": "^3.2.0",
"typescript": "^2.9.2"
"mocha": "^8.0.1",
"pump": "^3.0.0",
"ts-node": "^8.10.2",
"typescript": "^3.9.5"
},

@@ -44,0 +47,0 @@ "directories": {

@@ -1,2 +0,5 @@

[![NPM](https://nodei.co/npm/typescript-string-operations.png?mini=true)](https://www.npmjs.com/package/typescript-string-operations)
![CircleCI](https://img.shields.io/circleci/build/github/sevensc/typescript-string-operations?logo=circleci&token=e3f75ec3d21d6da12384faf594c9d05fe9f65747)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=sevensc_typescript-string-operations&metric=alert_status)](https://sonarcloud.io/dashboard?id=sevensc_typescript-string-operations)![npm](https://img.shields.io/npm/v/typescript-string-operations)![npm](https://img.shields.io/npm/dw/typescript-string-operations)
# Simple lightweight string operation library for Typescript.

@@ -3,0 +6,0 @@ ## No jQuery required! Unit tested, works with Angular.