diff --git a/CHANGELOG.md b/CHANGELOG.md index 4082019..b6a76d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## Base v2.0.0 +- Republished package under @truesparrow + ## Base v1.0.2 - LICENSE changes. diff --git a/LICENSE b/LICENSE index 088ecaa..617d18d 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ The MIT License (MIT) -Copyright © 2022 PLG Works +Copyright © 2022 True Sparrow Systems Pvt. Ltd. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/README.md b/README.md index c7698a9..47c071b 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,11 @@ # Base -![npm version](https://img.shields.io/npm/v/@plgworks/base.svg?style=flat) - +![npm version](https://img.shields.io/npm/v/@truesparrow/base.svg?style=flat) Base provides frequently used functionality like cutome logger, response helper, Custom Promise and Instance composer. -These are used in almost all PLG Works repositories and hence the name `Base`. +These are used in almost all True Sparrow repositories and hence the name `Base`. ## Installation ```shell script -npm install @plgworks/base --save +npm install @truesparrow/base --save ``` ## Logger @@ -17,7 +16,7 @@ visually distinguished easily. In the following snippet, we try to showcase all the logger methods with documentation in comments. ```js -const Base = require('@plgworks/base'); +const Base = require('@truesparrow/base'); const Logger = Base.Logger; // Constructor's first parameter is the module name. This is logged in every line to separate logs from multiple modules. @@ -81,7 +80,7 @@ const paramErrorConfig = require(rootPrefix + '/tests/mocha/lib/formatter/paramE // message and code goes in the error object. const apiErrorConfig = require(rootPrefix + '/tests/mocha/lib/formatter/apiErrorConfig'); -const Base = require('@plgworks/base'); +const Base = require('@truesparrow/base'); const ResponseHelper = Base.responseHelper; // Creating an object of ResponseHelper. Parameter is an object with key moduleName. @@ -155,7 +154,7 @@ r1.toHash(); // Examples given above. QueueManager provides various management options and configurations for a queue of Promises. Following is a brief documentation of the various manager options and example usage. ```js -const Base = require('@plgworks/base'), +const Base = require('@truesparrow/base'), logger = new Base.Logger("my_module_name"); const queueManagerOptions = { diff --git a/VERSION b/VERSION index 6d7de6e..359a5b9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.2 +2.0.0 \ No newline at end of file diff --git a/index.js b/index.js index 9a2f579..75ec2e5 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,5 @@ /** - * Index File for @plgworks/base + * Index File for @truesparrow/base */ const rootPrefix = '.', diff --git a/package.json b/package.json index 1ad9fc6..208b92d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "@plgworks/base", - "version": "1.0.2", + "name": "@truesparrow/base", + "version": "2.0.0", "description": "Base provides advanced Promise Queue Manager and other utilities.", "main": "index.js", "scripts": { @@ -8,17 +8,17 @@ }, "repository": { "type": "git", - "url": "https://github.com/PLG-Works/base.git" + "url": "https://github.com/TrueSparrowSystems/base.git" }, "keywords": [ "Base" ], - "author": "PLG Works", + "author": "True Sparrow", "license": "MIT", "bugs": { - "url": "https://github.com/PLG-Works/base/issues" + "url": "https://github.com/TrueSparrowSystems/base/issues" }, - "homepage": "https://github.com/PLG-Works/base", + "homepage": "https://github.com/TrueSparrowSystems/base", "dependencies": { "shortid": "2.2.16" },