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

@teambit/toolbox.string.capitalize

Package Overview
Dependencies
Maintainers
15
Versions
210
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teambit/toolbox.string.capitalize - npm Package Compare versions

Comparing version 0.0.498 to 0.0.499

3

capitalize.spec.ts
import { capitalize } from './capitalize';
import { expect } from 'chai';
describe('capitalize()', () => {
it('should capitalize a single word', () => {
expect(capitalize('foo')).toEqual('Foo');
expect(capitalize('foo')).to.equal('Foo');
});
});
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.capitalize = capitalize;

@@ -9,4 +12,5 @@ /**

function capitalize(str) {
return str.charAt(0).toUpperCase() + str.slice(1);
return str.charAt(0).toUpperCase() + str.slice(1);
}
//# sourceMappingURL=capitalize.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const capitalize_1 = require("./capitalize");
function _capitalize() {
const data = require("./capitalize");
_capitalize = function () {
return data;
};
return data;
}
function _chai() {
const data = require("chai");
_chai = function () {
return data;
};
return data;
}
describe('capitalize()', () => {
it('should capitalize a single word', () => {
expect((0, capitalize_1.capitalize)('foo')).toEqual('Foo');
});
it('should capitalize a single word', () => {
(0, _chai().expect)((0, _capitalize().capitalize)('foo')).to.equal('Foo');
});
});
//# sourceMappingURL=capitalize.spec.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.capitalize = void 0;
var capitalize_1 = require("./capitalize");
Object.defineProperty(exports, "capitalize", { enumerable: true, get: function () { return capitalize_1.capitalize; } });
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "capitalize", {
enumerable: true,
get: function () {
return _capitalize().capitalize;
}
});
function _capitalize() {
const data = require("./capitalize");
_capitalize = function () {
return data;
};
return data;
}
//# sourceMappingURL=index.js.map
{
"name": "@teambit/toolbox.string.capitalize",
"version": "0.0.498",
"version": "0.0.499",
"homepage": "https://bit.cloud/teambit/toolbox/string/capitalize",

@@ -9,9 +9,10 @@ "main": "dist/index.js",

"name": "string/capitalize",
"version": "0.0.498"
"version": "0.0.499"
},
"dependencies": {},
"devDependencies": {
"@types/chai": "4.2.15",
"chai": "4.3.0",
"@types/mocha": "9.1.0",
"@types/jest": "26.0.20",
"@types/node": "22.10.5"
"@teambit/node.envs.node-babel-mocha": "0.1.4"
},

@@ -18,0 +19,0 @@ "peerDependencies": {},

@@ -8,8 +8,8 @@ declare module '*.png' {

export const ReactComponent: FunctionComponent<SVGProps<SVGSVGElement> & { title?: string }>;
export const ReactComponent: FunctionComponent<
SVGProps<SVGSVGElement> & { title?: string }
>;
const src: string;
export default src;
}
// @TODO Gilad
declare module '*.jpg' {

@@ -31,1 +31,13 @@ const value: any;

}
declare module '*.otf' {
const value: any;
export = value;
}
declare module '*.woff' {
const value: any;
export = value;
}
declare module '*.woff2' {
const value: any;
export = value;
}

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