@smithy/is-array-buffer 3.0.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -18,11 +18,11 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
20
  // src/index.ts
21
- var src_exports = {};
22
- __export(src_exports, {
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
23
  isArrayBuffer: () => isArrayBuffer
24
24
  });
25
- module.exports = __toCommonJS(src_exports);
25
+ module.exports = __toCommonJS(index_exports);
26
26
  var isArrayBuffer = /* @__PURE__ */ __name((arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]", "isArrayBuffer");
27
27
  // Annotate the CommonJS export names for ESM import in node:
28
28
 
package/package.json CHANGED
@@ -1,24 +1,26 @@
1
1
  {
2
2
  "name": "@smithy/is-array-buffer",
3
- "version": "3.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "Provides a function for detecting if an argument is an ArrayBuffer",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
7
7
  "build:cjs": "node ../../scripts/inline is-array-buffer",
8
8
  "build:es": "yarn g:tsc -p tsconfig.es.json",
9
9
  "build:types": "yarn g:tsc -p tsconfig.types.json",
10
- "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
10
+ "build:types:downlevel": "rimraf dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
11
11
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
12
12
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
13
13
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
14
- "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
15
- "test": "yarn g:jest"
14
+ "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
15
+ "test": "yarn g:vitest run",
16
+ "test:watch": "yarn g:vitest watch"
16
17
  },
17
18
  "author": {
18
19
  "name": "AWS SDK for JavaScript Team",
19
20
  "url": "https://aws.amazon.com/javascript/"
20
21
  },
21
22
  "license": "Apache-2.0",
23
+ "sideEffects": false,
22
24
  "main": "./dist-cjs/index.js",
23
25
  "module": "./dist-es/index.js",
24
26
  "types": "./dist-types/index.d.ts",
@@ -26,7 +28,7 @@
26
28
  "tslib": "^2.6.2"
27
29
  },
28
30
  "engines": {
29
- "node": ">=16.0.0"
31
+ "node": ">=18.0.0"
30
32
  },
31
33
  "typesVersions": {
32
34
  "<4.0": {
@@ -38,10 +40,10 @@
38
40
  "files": [
39
41
  "dist-*/**"
40
42
  ],
41
- "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/is-array-buffer",
43
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/is-array-buffer",
42
44
  "repository": {
43
45
  "type": "git",
44
- "url": "https://github.com/awslabs/smithy-typescript.git",
46
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
45
47
  "directory": "packages/is-array-buffer"
46
48
  },
47
49
  "devDependencies": {