Skip to content

Commit 2e40626

Browse files
author
陈士贤
committed
feat: change to non-scoped package name shein-open-sdk-js and update all references
1 parent 2958dec commit 2e40626

File tree

6 files changed

+26
-26
lines changed

6 files changed

+26
-26
lines changed

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 @sheinsight/open-sdk-js
15+
cd shein-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/@sheinsight/open-sdk-js.svg)](https://badge.fury.io/js/@sheinsight/open-sdk-js)
3+
[![npm version](https://badge.fury.io/js/shein-open-sdk-js.svg)](https://badge.fury.io/js/shein-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/@sheinsight/open-sdk-js/branch/main/graph/badge.svg)](https://codecov.io/gh/your-username/@sheinsight/open-sdk-js)
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)
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 @sheinsight/open-sdk-js
27+
npm install shein-open-sdk-js
2828
```
2929

3030
或使用 yarn:
3131

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

3636
或使用 pnpm:
3737

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

4242
## 快速开始
4343

4444
### 基本用法
4545

4646
```javascript
47-
const { OpenRequest, decryptEventData, decryptResponse, decryptSecretKey, getByToken } = require('@sheinsight/open-sdk-js');
47+
const { OpenRequest, decryptEventData, decryptResponse, decryptSecretKey, getByToken } = require('shein-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 '@sheinsight/open-sdk-js';
84+
import { OpenRequest, OpenRequestConfig, getByToken, decryptEventData, decryptResponse, decryptSecretKey } from 'shein-open-sdk-js';
8585

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

276276
```javascript
277-
const { decryptEventData } = require('@sheinsight/open-sdk-js');
277+
const { decryptEventData } = require('shein-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('@sheinsight/open-sdk-js');
288+
const { decryptResponse } = require('shein-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('@sheinsight/open-sdk-js');
299+
const { decryptSecretKey } = require('shein-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('@sheinsight/open-sdk-js');
347+
const { OpenRequest, getByToken, decryptEventData, decryptResponse, decryptSecretKey } = require('shein-open-sdk-js');
348348

349349
async function example() {
350350
try {

README.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/@sheinsight/open-sdk-js.svg)](https://badge.fury.io/js/@sheinsight/open-sdk-js)
3+
[![npm version](https://badge.fury.io/js/shein-open-sdk-js.svg)](https://badge.fury.io/js/shein-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/@sheinsight/open-sdk-js/branch/main/graph/badge.svg)](https://codecov.io/gh/your-username/@sheinsight/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
A comprehensive TypeScript SDK for SHEIN Open API integration, providing HTTP request utilities, data decryption methods, and flexible configuration management.
@@ -24,27 +24,27 @@ A comprehensive TypeScript SDK for SHEIN Open API integration, providing HTTP re
2424
## Installation
2525

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

3030
Or using yarn:
3131

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

3636
Or using pnpm:
3737

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

4242
## Quick Start
4343

4444
### Basic Usage
4545

4646
```javascript
47-
const { OpenRequest, decryptEventData, decryptResponse, decryptSecretKey, getByToken } = require('@sheinsight/open-sdk-js');
47+
const { OpenRequest, decryptEventData, decryptResponse, decryptSecretKey, getByToken } = require('shein-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 '@sheinsight/open-sdk-js';
84+
import { OpenRequest, OpenRequestConfig, getByToken, decryptEventData, decryptResponse, decryptSecretKey } from 'shein-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('@sheinsight/open-sdk-js');
277+
const { decryptEventData } = require('shein-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('@sheinsight/open-sdk-js');
288+
const { decryptResponse } = require('shein-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('@sheinsight/open-sdk-js');
299+
const { decryptSecretKey } = require('shein-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('@sheinsight/open-sdk-js');
369+
const { OpenRequest, getByToken, decryptEventData, decryptResponse, decryptSecretKey } = require('shein-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": "@shined/open-sdk-js",
2+
"name": "shein-open-sdk-js",
33
"version": "1.3.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": "@shined/open-sdk-js",
5+
"package-name": "shein-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 '@sheinsight/open-sdk-js'
10+
// Users can import as: import { OpenRequest } from 'shein-open-sdk-js'

0 commit comments

Comments
 (0)