Skip to content

Commit d4b66b8

Browse files
Rename Node.js
1 parent a2528f3 commit d4b66b8

File tree

18 files changed

+64
-63
lines changed

18 files changed

+64
-63
lines changed

.github/workflows/sonar-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
fetch-depth: 0
2121

22-
- name: Set up nodejs
22+
- name: Set up Node.js
2323
uses: actions/setup-node@v3
2424
with:
2525
node-version: 'lts/*'

CHANGES.txt

Lines changed: 38 additions & 37 deletions
Large diffs are not rendered by default.

CONTRIBUTORS-GUIDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Split SDK is an open source project and we welcome feedback and contribution. Th
77
### Development process
88

99
1. Fork the repository and create a topic branch from `development` branch. Please use a descriptive name for your branch.
10-
2. Run `nvm use` to ensure that you are using the right npm and node version, and `npm install` to have the dependencies up to date.
10+
2. Run `nvm use` to ensure that you are using the right npm and Node.js version, and `npm install` to have the dependencies up to date.
1111
3. While developing, use descriptive messages in your commits. Avoid short or meaningless sentences like: "fix bug".
1212
4. Make sure to add tests for both positive and negative cases.
1313
5. If your changes have any impact on the public API, make sure you update the TypeScript declarations as well as it's related test file.
@@ -46,7 +46,7 @@ Consider running the linter script (`npm run check:lint`) and fixing any issues
4646

4747
If you want to debug your changes consuming it from a test application, you could:
4848
- For browsers, import the **UMD** bundle from an HTML document. To debug you can use the browser dev tools.
49-
- For Node, you could use symlinks via [npm link command](https://docs.npmjs.com/cli/link.html) and then import the package as usual. To debug you could use the [Node inspector](https://nodejs.org/en/docs/guides/debugging-getting-started/).
49+
- For Node.js, you could use symlinks via [npm link command](https://docs.npmjs.com/cli/link.html) and then import the package as usual. To debug you could use the [Node.js inspector](https://nodejs.org/en/docs/guides/debugging-getting-started/).
5050

5151
# Contact
5252

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Split has built and maintains SDKs for:
7171
* Java [Github](https://github.com/splitio/java-client) [Docs](https://help.split.io/hc/en-us/articles/360020405151-Java-SDK)
7272
* JavaScript [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020448791-JavaScript-SDK)
7373
* JavaScript for Browser [Github](https://github.com/splitio/javascript-browser-client) [Docs](https://help.split.io/hc/en-us/articles/360058730852-Browser-SDK)
74-
* Node [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020564931-Node-js-SDK)
74+
* Node.js [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020564931-Node-js-SDK)
7575
* PHP [Github](https://github.com/splitio/php-client) [Docs](https://help.split.io/hc/en-us/articles/360020350372-PHP-SDK)
7676
* PHP thin-client [Github](https://github.com/splitio/php-thin-client) [Docs](https://help.split.io/hc/en-us/articles/18305128673933-PHP-Thin-Client-SDK)
7777
* Python [Github](https://github.com/splitio/python-client) [Docs](https://help.split.io/hc/en-us/articles/360020359652-Python-SDK)

src/__tests__/consumer/node_redis.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const initializeRedisServer = (mock = '') => {
8383
exec(`cat ./src/__tests__/mocks/${mockFileName}.txt | redis-cli -p ${redisPort}`, err => {
8484
if (err) {
8585
reject(server);
86-
// node couldn't execute the command
86+
// Node.js couldn't execute the command
8787
return;
8888
}
8989

@@ -95,7 +95,7 @@ const initializeRedisServer = (mock = '') => {
9595
return promise;
9696
};
9797

98-
tape('NodeJS Redis', function (t) {
98+
tape('Node.js Redis', function (t) {
9999

100100
t.test('Regular usage - DEBUG strategy', assert => {
101101
initializeRedisServer()

src/__tests__/destroy/node.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fetchMock.get(url(settings, '/splitChanges?s=1.1&since=-1'), { status: 200, body
2121
fetchMock.get(url(settings, '/splitChanges?s=1.1&since=1500492097547'), { status: 200, body: splitChangesMock2 });
2222
fetchMock.postOnce(url(settings, '/v1/metrics/config'), 200);
2323

24-
tape('SDK destroy for NodeJS', async function (assert) {
24+
tape('SDK destroy for Node.js', async function (assert) {
2525
const config = {
2626
core: {
2727
authorizationKey: 'fake-key',

src/__tests__/offline/node.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const settingsGenerator = mockFileName => {
5555
};
5656

5757

58-
tape('NodeJS Offline Mode', function (t) {
58+
tape('Node.js Offline Mode', function (t) {
5959

6060
t.test('Old format evaluations - .split', DotSplitTests);
6161
t.test('New format evaluations - .yaml extension', DotYAMLTests.bind(null, 'split', 'yaml'));

src/__tests__/online/node.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ fetchMock.post(url(settings, '/testImpressions/count'), 200);
5555
fetchMock.post(url(settings, '/v1/metrics/config'), 200);
5656
fetchMock.post(url(settings, '/v1/metrics/usage'), 200);
5757

58-
tape('## Node JS - E2E CI Tests ##', async function (assert) {
58+
tape('## Node.js - E2E CI Tests ##', async function (assert) {
5959
/* Check client evaluations. */
6060
assert.test('E2E / In Memory', evaluationsSuite.bind(null, config, key));
6161
assert.test('E2E / In Memory - Semver', evaluationsSemverSuite.bind(null, fetchMock));

src/__tests__/push/node.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ fetchMock.config.overwriteRoutes = false;
1313
fetchMock.post('https://telemetry.split.io/api/v1/metrics/config', 200);
1414
fetchMock.post('https://telemetry.split.io/api/v1/metrics/usage', 200);
1515

16-
tape('## Node JS - E2E CI Tests for PUSH ##', async function (assert) {
16+
tape('## Node.js - E2E CI Tests for PUSH ##', async function (assert) {
1717

1818
// Non-recoverable issues on inizialization
1919
assert.test('E2E / PUSH initialization: auth with push disabled', testAuthWithPushDisabled.bind(null, fetchMock));

src/platform/EventEmitter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ EventEmitter.prototype.emit = function emit(type) {
133133
er = args[0];
134134
if (er instanceof Error) {
135135
// Note: The comments on the `throw` lines are intentional, they show
136-
// up in Node's output if this results in an unhandled exception.
136+
// up in Node.js output if this results in an unhandled exception.
137137
throw er; // Unhandled 'error' event
138138
}
139139
// At least give some kind of context to the user

0 commit comments

Comments
 (0)