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.499 to 0.0.500

8

dist/capitalize.js
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "__esModule", { value: true });
exports.capitalize = capitalize;

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

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";
function _capitalize() {
const data = require("./capitalize");
_capitalize = function () {
return data;
};
return data;
}
function _chai() {
const data = require("chai");
_chai = function () {
return data;
};
return data;
}
Object.defineProperty(exports, "__esModule", { value: true });
const capitalize_1 = require("./capitalize");
const chai_1 = require("chai");
describe('capitalize()', () => {
it('should capitalize a single word', () => {
(0, _chai().expect)((0, _capitalize().capitalize)('foo')).to.equal('Foo');
});
it('should capitalize a single word', () => {
(0, chai_1.expect)((0, capitalize_1.capitalize)('foo')).to.equal('Foo');
});
});
//# sourceMappingURL=capitalize.spec.js.map
"use strict";
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;
}
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; } });
//# sourceMappingURL=index.js.map
{
"name": "@teambit/toolbox.string.capitalize",
"version": "0.0.499",
"version": "0.0.500",
"homepage": "https://bit.cloud/teambit/toolbox/string/capitalize",

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

"name": "string/capitalize",
"version": "0.0.499"
"version": "0.0.500"
},

@@ -17,3 +17,3 @@ "dependencies": {},

"@types/mocha": "9.1.0",
"@teambit/node.envs.node-babel-mocha": "0.1.4"
"@teambit/node.envs.node-typescript-mocha": "0.0.1"
},

@@ -20,0 +20,0 @@ "peerDependencies": {},

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