Skip to content

Commit 7cf289f

Browse files
author
陈士贤
committed
feat: switch back to @shined/open-sdk-js with updated NPM token SHINED_NPM_PUBLISH_TOKEN
1 parent a422601 commit 7cf289f

File tree

8 files changed

+28
-28
lines changed

8 files changed

+28
-28
lines changed

.github/workflows/release-please.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ jobs:
5555
if: steps.release.outputs.release_created
5656
run: pnpm publish --access public
5757
env:
58-
NODE_AUTH_TOKEN: ${{ secrets.OPEN_SDK_JS_NPM_PUBLISH_TOKEN }}
58+
NODE_AUTH_TOKEN: ${{ secrets.SHINED_NPM_PUBLISH_TOKEN }}

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5-
## [1.4.0](https://github.com/sheinsight/open-sdk-js/compare/shein-open-sdk-js-v1.3.0...shein-open-sdk-js-v1.4.0) (2025-09-23)
5+
## [1.4.0](https://github.com/sheinsight/open-sdk-js/compare/@shined/open-sdk-js-v1.3.0...@shined/open-sdk-js-v1.4.0) (2025-09-23)
66

77

88
### Features
99

1010
* add release-please configuration for automated NPM publishing ([b556cf6](https://github.com/sheinsight/open-sdk-js/commit/b556cf68082e6362d6148084669be60d29a43c3a))
11-
* change to non-scoped package name shein-open-sdk-js and update all references ([2e40626](https://github.com/sheinsight/open-sdk-js/commit/2e406260b6cb19ff1b60bd16facf24a8ef6e950f))
11+
* change to non-scoped package name @shined/open-sdk-js and update all references ([2e40626](https://github.com/sheinsight/open-sdk-js/commit/2e406260b6cb19ff1b60bd16facf24a8ef6e950f))
1212
* init ([b0dc18d](https://github.com/sheinsight/open-sdk-js/commit/b0dc18d83b21bee7a92eda481ef30e2e15aab9d2))
1313
* update NPM token reference to OPEN_SDK_JS_NPM_PUBLISH_TOKEN ([1d58efe](https://github.com/sheinsight/open-sdk-js/commit/1d58efe9ceeda918ed261747f4da5500f0165bd3))
1414
* update package name to @shined/open-sdk-js to resolve NPM organization issue ([c4f4552](https://github.com/sheinsight/open-sdk-js/commit/c4f45520fa5fc9f75a85ab6da260abd9deb672e5))

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Thank you for your interest in contributing to the Shein Open SDK! We welcome co
1212

1313
```bash
1414
git clone https://github.com/sheinsight/open-sdk-js.git
15-
cd shein-open-sdk-js
15+
cd @shined/open-sdk-js
1616
pnpm install
1717
```
1818

README-zh_CN.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Shein Open SDK
22

3-
[![npm version](https://badge.fury.io/js/shein-open-sdk-js.svg)](https://badge.fury.io/js/shein-open-sdk-js)
3+
[![npm version](https://badge.fury.io/js/@shined/open-sdk-js.svg)](https://badge.fury.io/js/@shined/open-sdk-js)
44
[![CI](https://github.com/sheinsight/open-sdk-js/actions/workflows/ci.yml/badge.svg)](https://github.com/sheinsight/open-sdk-js/actions/workflows/ci.yml)
5-
[![codecov](https://codecov.io/gh/your-username/shein-open-sdk-js/branch/main/graph/badge.svg)](https://codecov.io/gh/your-username/shein-open-sdk-js)
5+
[![codecov](https://codecov.io/gh/your-username/@shined/open-sdk-js/branch/main/graph/badge.svg)](https://codecov.io/gh/your-username/@shined/open-sdk-js)
66
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
77

88
一个全面的 TypeScript SDK,用于 SHEIN 开放 API 集成,提供 HTTP 请求工具、数据解密方法和灵活的配置管理。
@@ -24,27 +24,27 @@
2424
## 安装
2525

2626
```bash
27-
npm install shein-open-sdk-js
27+
npm install @shined/open-sdk-js
2828
```
2929

3030
或使用 yarn:
3131

3232
```bash
33-
yarn add shein-open-sdk-js
33+
yarn add @shined/open-sdk-js
3434
```
3535

3636
或使用 pnpm:
3737

3838
```bash
39-
pnpm add shein-open-sdk-js
39+
pnpm add @shined/open-sdk-js
4040
```
4141

4242
## 快速开始
4343

4444
### 基本用法
4545

4646
```javascript
47-
const { OpenRequest, decryptEventData, decryptResponse, decryptSecretKey, getByToken } = require('shein-open-sdk-js');
47+
const { OpenRequest, decryptEventData, decryptResponse, decryptSecretKey, getByToken } = require('@shined/open-sdk-js');
4848

4949
// 使用配置对象初始化
5050
const openRequest = new OpenRequest({
@@ -81,7 +81,7 @@ console.log(authResult);
8181
### TypeScript 用法
8282

8383
```typescript
84-
import { OpenRequest, OpenRequestConfig, getByToken, decryptEventData, decryptResponse, decryptSecretKey } from 'shein-open-sdk-js';
84+
import { OpenRequest, OpenRequestConfig, getByToken, decryptEventData, decryptResponse, decryptSecretKey } from '@shined/open-sdk-js';
8585

8686
// 配置接口定义
8787
const config: OpenRequestConfig = {
@@ -274,7 +274,7 @@ SDK 包含用于解密来自 API 的各种类型加密数据的方法:
274274
解密加密的事件数据。
275275

276276
```javascript
277-
const { decryptEventData } = require('shein-open-sdk-js');
277+
const { decryptEventData } = require('@shined/open-sdk-js');
278278

279279
const decryptedData = decryptEventData(encryptedEventData, password);
280280
console.log(decryptedData);
@@ -285,7 +285,7 @@ console.log(decryptedData);
285285
解密加密的 API 响应。
286286

287287
```javascript
288-
const { decryptResponse } = require('shein-open-sdk-js');
288+
const { decryptResponse } = require('@shined/open-sdk-js');
289289

290290
const decryptedResponse = decryptResponse(encryptedApiResponse, password);
291291
console.log(decryptedResponse);
@@ -296,7 +296,7 @@ console.log(decryptedResponse);
296296
解密来自令牌交换响应的加密密钥。
297297

298298
```javascript
299-
const { decryptSecretKey } = require('shein-open-sdk-js');
299+
const { decryptSecretKey } = require('@shined/open-sdk-js');
300300

301301
const decryptedKey = decryptSecretKey(encryptedSecretKey, password);
302302
console.log(decryptedKey);
@@ -344,7 +344,7 @@ try {
344344
### 完整的错误处理示例
345345

346346
```javascript
347-
const { OpenRequest, getByToken, decryptEventData, decryptResponse, decryptSecretKey } = require('shein-open-sdk-js');
347+
const { OpenRequest, getByToken, decryptEventData, decryptResponse, decryptSecretKey } = require('@shined/open-sdk-js');
348348

349349
async function example() {
350350
try {

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Shein Open SDK
22

3-
[![npm version](https://badge.fury.io/js/shein-open-sdk-js.svg)](https://badge.fury.io/js/shein-open-sdk-js)
3+
[![npm version](https://badge.fury.io/js/@shined/open-sdk-js.svg)](https://badge.fury.io/js/@shined/open-sdk-js)
44
[![CI](https://github.com/sheinsight/open-sdk-js/actions/workflows/ci.yml/badge.svg)](https://github.com/sheinsight/open-sdk-js/actions/workflows/ci.yml)
55
[![codecov](https://codecov.io/gh/your-username/@shined/open-sdk-js/branch/main/graph/badge.svg)](https://codecov.io/gh/your-username/@shined/open-sdk-js)
66
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
@@ -24,27 +24,27 @@ A comprehensive TypeScript SDK for SHEIN Open API integration, providing HTTP re
2424
## Installation
2525

2626
```bash
27-
npm install shein-open-sdk-js
27+
npm install @shined/open-sdk-js
2828
```
2929

3030
Or using yarn:
3131

3232
```bash
33-
yarn add shein-open-sdk-js
33+
yarn add @shined/open-sdk-js
3434
```
3535

3636
Or using pnpm:
3737

3838
```bash
39-
pnpm add shein-open-sdk-js
39+
pnpm add @shined/open-sdk-js
4040
```
4141

4242
## Quick Start
4343

4444
### Basic Usage
4545

4646
```javascript
47-
const { OpenRequest, decryptEventData, decryptResponse, decryptSecretKey, getByToken } = require('shein-open-sdk-js');
47+
const { OpenRequest, decryptEventData, decryptResponse, decryptSecretKey, getByToken } = require('@shined/open-sdk-js');
4848

4949
// Initialize with configuration object
5050
const openRequest = new OpenRequest({
@@ -81,7 +81,7 @@ console.log(authResult);
8181
### TypeScript Usage
8282

8383
```typescript
84-
import { OpenRequest, OpenRequestConfig, getByToken, decryptEventData, decryptResponse, decryptSecretKey } from 'shein-open-sdk-js';
84+
import { OpenRequest, OpenRequestConfig, getByToken, decryptEventData, decryptResponse, decryptSecretKey } from '@shined/open-sdk-js';
8585

8686
// Configuration interface
8787
const config: OpenRequestConfig = {
@@ -274,7 +274,7 @@ The SDK includes methods for decrypting various types of encrypted data from SHE
274274
Decrypt encrypted event data.
275275

276276
```javascript
277-
const { decryptEventData } = require('shein-open-sdk-js');
277+
const { decryptEventData } = require('@shined/open-sdk-js');
278278

279279
const decryptedData = decryptEventData(encryptedEventData, password);
280280
console.log(decryptedData);
@@ -285,7 +285,7 @@ console.log(decryptedData);
285285
Decrypt encrypted API responses.
286286

287287
```javascript
288-
const { decryptResponse } = require('shein-open-sdk-js');
288+
const { decryptResponse } = require('@shined/open-sdk-js');
289289

290290
const decryptedResponse = decryptResponse(encryptedApiResponse, password);
291291
console.log(decryptedResponse);
@@ -296,7 +296,7 @@ console.log(decryptedResponse);
296296
Decrypt encrypted secret keys from token exchange responses.
297297

298298
```javascript
299-
const { decryptSecretKey } = require('shein-open-sdk-js');
299+
const { decryptSecretKey } = require('@shined/open-sdk-js');
300300

301301
const decryptedKey = decryptSecretKey(encryptedSecretKey, password);
302302
console.log(decryptedKey);
@@ -366,7 +366,7 @@ try {
366366
### Complete Example with Error Handling
367367

368368
```javascript
369-
const { OpenRequest, getByToken, decryptEventData, decryptResponse, decryptSecretKey } = require('shein-open-sdk-js');
369+
const { OpenRequest, getByToken, decryptEventData, decryptResponse, decryptSecretKey } = require('@shined/open-sdk-js');
370370

371371
async function example() {
372372
try {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "shein-open-sdk-js",
2+
"name": "@shined/open-sdk-js",
33
"version": "1.4.0",
44
"description": "A TypeScript SDK for Shein API Tools",
55
"main": "lib/index.js",

release-please-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"packages": {
33
".": {
44
"release-type": "node",
5-
"package-name": "shein-open-sdk-js",
5+
"package-name": "@shined/open-sdk-js",
66
"changelog-sections": [
77
{ "type": "feat", "section": "Features" },
88
{ "type": "fix", "section": "Bug Fixes" },

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ export { default as decryptSecretKey } from './decrypt-secret-key';
77
export { default as getByToken } from './get-by-token';
88

99
// Named exports only to avoid mixing named and default exports
10-
// Users can import as: import { OpenRequest } from 'shein-open-sdk-js'
10+
// Users can import as: import { OpenRequest } from '@shined/open-sdk-js'

0 commit comments

Comments
 (0)