Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": true,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}
73 changes: 73 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: CI

on:
push:
branches-ignore:
- master

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
ci:
name: CI
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: git checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: setup node
uses: actions/setup-node@v3
with:
node-version: 16

- name: Install pnpm
uses: pnpm/[email protected]
id: pnpm-install
with:
version: 8.6.1
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Create .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: create and publish snapshot
run: |
pnpm changeset version --snapshot
pnpm changeset publish --tag canary
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Post published version to GitHub checks
run: |
name=$(jq -r .name package.json)
version=$(jq -r .version package.json)
npx action-status --context=$name --state=success --description=$version --url="https://unpkg.com/$name@$version/"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 changes: 0 additions & 15 deletions .github/workflows/pr.yml

This file was deleted.

55 changes: 55 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Release

on:
push:
branches:
- master

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
publish:
name: Release
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: git checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: setup node
uses: actions/setup-node@v3
with:
node-version: 16

- name: Install pnpm
uses: pnpm/[email protected]
id: pnpm-install
with:
version: 8.6.1
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm install

- name: create and publish versions
uses: changesets/[email protected]
with:
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# @axah/soap

## 1.1.1

### Patch Changes

- 19b99a0: fix: change Content-Transfer-Encoding for attachements to base64

In JavaScript, using toString() on a Buffer object converts the buffer to a string using a specified encoding. If no encoding is specified, it defaults to 'utf8'.

This is potentially dangerous when dealing with binary data, because binary data doesn't necessarily represent valid UTF-8 encoded data. If you try to convert binary data to a UTF-8 string using toString(), you could end up with a string that contains invalid UTF-8 sequences. This can lead to data corruption because certain bytes may not be able to be accurately represented in a UTF-8 string.

Furthermore, when dealing with large files or data streams, converting the entire buffer to a string could cause your application to run out of memory. This is because JavaScript strings take up more memory than Buffer objects of the same size.

That's why, when working with binary data, it's usually safer to work with Buffer objects directly, or to use an encoding like 'base64' that can accurately represent any binary data in a string format. This prevents data corruption and helps ensure your application runs efficiently.

If you know for sure that your Buffer contains text data encoded with a specific encoding (like 'utf8', 'ascii', etc.), then you can use toString() with that encoding to get the string. If you don't know the encoding or if the Buffer contains non-text data, then using toString() could be problematic.

## 1.1.0

### Minor Changes

- f779575: feat: allow to setup timeout
21 changes: 10 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
{
"name": "soap",
"version": "1.0.0",
"name": "@axah/soap",
"version": "1.1.1",
"description": "A minimal node SOAP client",
"engines": {
"node": ">=14.0.0"
},
"author": "Vinay Pulim <[email protected]>",
"dependencies": {
"axios-ntlm": "^1.2.0",
"axios": "^1.3.5",
"axios-ntlm": "^1.4.1",
"debug": "^4.3.2",
"formidable": "^3.2.4",
"get-stream": "^6.0.1",
"lodash": "^4.17.21",
"sax": ">=0.6",
"strip-bom": "^3.0.0",
"uuid": "^8.3.2",
"uuid": "^9.0.0",
"whatwg-mimetype": "3.0.0",
"xml-crypto": "^3.0.0"
},
"peerDependencies": {
"axios": "^0.27.2"
"xml-crypto": "^3.0.1"
},
"repository": {
"type": "git",
Expand All @@ -41,22 +39,23 @@
"cover": "nyc --extension=.ts --reporter=lcov --reporter=html --reporter=text mocha --timeout 15000 --exit test/*-test.js test/security/*.js",
"coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js -v",
"docs": "typedoc --out docs",
"test": "mocha --timeout 15000 --bail --exit test/*-test.js test/security/*.js"
"test": "mocha --timeout 15000 --bail --exit test/*-test.js test/security/*.js",
"release": "pnpm build && pnpm changeset publish"
},
"keywords": [
"soap"
],
"license": "MIT",
"devDependencies": {
"@types/axios": "^0.14.0",
"@changesets/cli": "^2.26.1",
"@types/debug": "^4.1.7",
"@types/express": "^4.17.13",
"@types/formidable": "^2.0.4",
"@types/lodash": "^4.14.172",
"@types/node": "^11.15.54",
"@types/request": "^2.48.7",
"@types/sax": "^1.2.3",
"@types/uuid": "^8.3.1",
"@types/uuid": "^9.0.1",
"@types/whatwg-mimetype": "^2.1.1",
"body-parser": "^1.15.2",
"colors": "^1.3.3",
Expand Down
Loading