@x-oasis/can-i-use-proxy 0.1.11
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/README.md +19 -0
- package/dist/can-i-use-proxy.cjs.development.js +15 -0
- package/dist/can-i-use-proxy.cjs.development.js.map +1 -0
- package/dist/can-i-use-proxy.cjs.production.min.js +2 -0
- package/dist/can-i-use-proxy.cjs.production.min.js.map +1 -0
- package/dist/can-i-use-proxy.esm.js +11 -0
- package/dist/can-i-use-proxy.esm.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +8 -0
- package/package.json +24 -0
- package/src/index.ts +9 -0
package/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# @x-oasis/can-i-use-proxy
|
|
2
|
+
|
|
3
|
+
## Installation
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
$ npm i @x-oasis/can-i-use-proxy
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## How to use
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
import canIUseProxy from '@x-oasis/can-i-use-proxy'
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## How to run test
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
$ pnpm test
|
|
19
|
+
```
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var index = (function () {
|
|
6
|
+
try {
|
|
7
|
+
new Proxy({}, {});
|
|
8
|
+
} catch (err) {
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
11
|
+
return true;
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
exports.default = index;
|
|
15
|
+
//# sourceMappingURL=can-i-use-proxy.cjs.development.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"can-i-use-proxy.cjs.development.js","sources":["../src/index.ts"],"sourcesContent":["export default () => {\n try {\n new Proxy({}, {}); // eslint-disable-line\n } catch (err) {\n return false;\n }\n\n return true;\n};\n"],"names":["Proxy","err"],"mappings":";;;;AAAA,aAAe;EACb,IAAI;IACF,IAAIA,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC;GAClB,CAAC,OAAOC,GAAG,EAAE;IACZ,OAAO,KAAK;;EAGd,OAAO,IAAI;AACb,CAAC;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"can-i-use-proxy.cjs.production.min.js","sources":["../src/index.ts"],"sourcesContent":["export default () => {\n try {\n new Proxy({}, {}); // eslint-disable-line\n } catch (err) {\n return false;\n }\n\n return true;\n};\n"],"names":["Proxy","err"],"mappings":"+FACE,IACE,IAAIA,MAAM,GAAI,IACd,MAAOC,GACP,OAAO,EAGT,OAAO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"can-i-use-proxy.esm.js","sources":["../src/index.ts"],"sourcesContent":["export default () => {\n try {\n new Proxy({}, {}); // eslint-disable-line\n } catch (err) {\n return false;\n }\n\n return true;\n};\n"],"names":["Proxy","err"],"mappings":"AAAA,aAAe;EACb,IAAI;IACF,IAAIA,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC;GAClB,CAAC,OAAOC,GAAG,EAAE;IACZ,OAAO,KAAK;;EAGd,OAAO,IAAI;AACb,CAAC;;;;"}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@x-oasis/can-i-use-proxy",
|
|
3
|
+
"version": "0.1.11",
|
|
4
|
+
"description": "can-i-use-proxy function",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"typings": "dist/index.d.ts",
|
|
7
|
+
"module": "dist/can-i-use-proxy.esm.js",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"index.ts",
|
|
11
|
+
"src"
|
|
12
|
+
],
|
|
13
|
+
"author": "",
|
|
14
|
+
"license": "ISC",
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"tsdx": "^0.14.1"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "tsdx build --tsconfig tsconfig.build.json",
|
|
20
|
+
"clean": "rimraf ./dist",
|
|
21
|
+
"test": "vitest",
|
|
22
|
+
"compile": "tsc -p tsconfig.build.json"
|
|
23
|
+
}
|
|
24
|
+
}
|