@x-oasis/hide-property 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 ADDED
@@ -0,0 +1,19 @@
1
+ # @x-oasis/hide-property
2
+
3
+ ## Installation
4
+
5
+ ```bash
6
+ $ npm i @x-oasis/hide-property
7
+ ```
8
+
9
+ ## How to use
10
+
11
+ ```typescript
12
+ import hideProperty from '@x-oasis/hide-property'
13
+ ```
14
+
15
+ ## How to run test
16
+
17
+ ```bash
18
+ $ pnpm test
19
+ ```
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var index = (function (target, prop, value) {
6
+ Object.defineProperty(target, prop, {
7
+ value: value,
8
+ enumerable: false,
9
+ writable: true
10
+ });
11
+ });
12
+
13
+ exports.default = index;
14
+ //# sourceMappingURL=hide-property.cjs.development.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hide-property.cjs.development.js","sources":["../src/index.ts"],"sourcesContent":["export default (target: object, prop: PropertyKey, value: any) => {\n Object.defineProperty(target, prop, {\n value,\n enumerable: false,\n writable: true,\n });\n};\n"],"names":["target","prop","value","Object","defineProperty","enumerable","writable"],"mappings":";;;;AAAA,aAAe,UAACA,MAAc,EAAEC,IAAiB,EAAEC,KAAU;EAC3DC,MAAM,CAACC,cAAc,CAACJ,MAAM,EAAEC,IAAI,EAAE;IAClCC,KAAK,EAALA,KAAK;IACLG,UAAU,EAAE,KAAK;IACjBC,QAAQ,EAAE;GACX,CAAC;AACJ,CAAC;;;;"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t,r){Object.defineProperty(e,t,{value:r,enumerable:!1,writable:!0})};
2
+ //# sourceMappingURL=hide-property.cjs.production.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hide-property.cjs.production.min.js","sources":["../src/index.ts"],"sourcesContent":["export default (target: object, prop: PropertyKey, value: any) => {\n Object.defineProperty(target, prop, {\n value,\n enumerable: false,\n writable: true,\n });\n};\n"],"names":["target","prop","value","Object","defineProperty","enumerable","writable"],"mappings":"6FAAgBA,EAAgBC,EAAmBC,GACjDC,OAAOC,eAAeJ,EAAQC,EAAM,CAClCC,MAAAA,EACAG,YAAY,EACZC,UAAU"}
@@ -0,0 +1,10 @@
1
+ var index = (function (target, prop, value) {
2
+ Object.defineProperty(target, prop, {
3
+ value: value,
4
+ enumerable: false,
5
+ writable: true
6
+ });
7
+ });
8
+
9
+ export default index;
10
+ //# sourceMappingURL=hide-property.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hide-property.esm.js","sources":["../src/index.ts"],"sourcesContent":["export default (target: object, prop: PropertyKey, value: any) => {\n Object.defineProperty(target, prop, {\n value,\n enumerable: false,\n writable: true,\n });\n};\n"],"names":["target","prop","value","Object","defineProperty","enumerable","writable"],"mappings":"AAAA,aAAe,UAACA,MAAc,EAAEC,IAAiB,EAAEC,KAAU;EAC3DC,MAAM,CAACC,cAAc,CAACJ,MAAM,EAAEC,IAAI,EAAE;IAClCC,KAAK,EAALA,KAAK;IACLG,UAAU,EAAE,KAAK;IACjBC,QAAQ,EAAE;GACX,CAAC;AACJ,CAAC;;;;"}
@@ -0,0 +1,2 @@
1
+ declare const _default: (target: object, prop: PropertyKey, value: any) => void;
2
+ export default _default;
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+
2
+ 'use strict'
3
+
4
+ if (process.env.NODE_ENV === 'production') {
5
+ module.exports = require('./hide-property.cjs.production.min.js')
6
+ } else {
7
+ module.exports = require('./hide-property.cjs.development.js')
8
+ }
package/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "@x-oasis/hide-property",
3
+ "version": "0.1.11",
4
+ "description": "hide-property function",
5
+ "main": "dist/index.js",
6
+ "typings": "dist/index.d.ts",
7
+ "module": "dist/hide-property.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
+ }
package/src/index.ts ADDED
@@ -0,0 +1,7 @@
1
+ export default (target: object, prop: PropertyKey, value: any) => {
2
+ Object.defineProperty(target, prop, {
3
+ value,
4
+ enumerable: false,
5
+ writable: true,
6
+ });
7
+ };