Skip to content

Commit

Permalink
Merge pull request #3 from Adscore/fix/readme-and-package-size
Browse files Browse the repository at this point in the history
Fix readme and package size
  • Loading branch information
mLicznerskiIterative authored Jun 20, 2024
2 parents f70f46f + 00e90be commit 979e079
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@adscore/nodejs-common",
"version": "1.0.0",
"version": "1.0.1",
"description": "NodeJS client library for Adscore",
"scripts": {
"pack": "npm run generate-barrels && tsup && npm run copy-files && cd ./dist && npm pack",
"pack": "rm -r ./dist && npm run generate-barrels && tsup && npm run copy-files && cd ./dist && npm pack",
"publish": "cd ./dist && npm publish --access public",
"copy-files": "cp package.json ./dist/ && cp readme.md ./dist/",
"generate-barrels": "barrelsby --delete --directory ./src --location all",
Expand Down
5 changes: 3 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ integration with the service.

## Install

Nodejs version >= 14.18.0 is required

Via NPM

```bash
Expand Down Expand Up @@ -120,8 +122,7 @@ address nor User Agent string, so it is immune for environment changes usually p
Judge result is also included in the payload, but client doing the integration can make its own decision basing on
the metadata accompanying.

Zone has to be set explicitly to V5 signature, if you don't see the option, please contact support as we are rolling
this mode on customer's demand. The format supports a wide variety of encryption and serialization methods, some
The format supports a wide variety of encryption and serialization methods, some
of them are included in this repository, but it can be extended to fulfill specific needs.

It can be integrated in V4-compatible mode, not making use of any V5 features (see V4 verification):
Expand Down
3 changes: 0 additions & 3 deletions src/utils/php/ip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,3 @@ export function long2ip(longValue: number): string {
})
.join(".");
}

exports.ip2long = ip2long;
exports.long2ip = long2ip;
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"forceConsistentCasingInFileNames": true,
"strict": true,
"strictNullChecks": true,
"skipLibCheck": true
"skipLibCheck": true,
"sourceMap": false
}
}
2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ export default defineConfig({
format: ["cjs", "esm"], // Build for commonJS and ESmodules
dts: true, // Generate declaration file (.d.ts)
splitting: false,
sourcemap: true,
sourcemap: false,
clean: true,
});

0 comments on commit 979e079

Please sign in to comment.