Comparing version 1.0.51 to 1.0.52
@@ -522,4 +522,5 @@ 'use strict'; | ||
// const pathToSelect = ['+$', '-$[*].age', '-$[*].twoLevels.a', '-$[*].posts[:-1]'] //, '-$[*].age']; | ||
// project(pathToSelect, users) | ||
// project(['+$[*].posts[0,2]', '-$[*].posts[1]'], users) | ||
// project(pathToSelect, users) //? | ||
// project(['+$[*].posts[0,2]', '-$[*].posts[1]'], users) //? | ||
// project(['+$.a.b','-$.a.b.d'], {a:{b:{c:3,d:5,e:9}}}) //? | ||
// project(['+$'], 2) //? | ||
@@ -526,0 +527,0 @@ // } |
@@ -494,4 +494,5 @@ 'use strict'; | ||
// const pathToSelect = ['+$', '-$[*].age', '-$[*].twoLevels.a', '-$[*].posts[:-1]'] //, '-$[*].age']; | ||
// project(pathToSelect, users) | ||
// project(['+$[*].posts[0,2]', '-$[*].posts[1]'], users) | ||
// project(pathToSelect, users) //? | ||
// project(['+$[*].posts[0,2]', '-$[*].posts[1]'], users) //? | ||
// project(['+$.a.b','-$.a.b.d'], {a:{b:{c:3,d:5,e:9}}}) //? | ||
// project(['+$'], 2) //? | ||
@@ -498,0 +499,0 @@ // } |
{ | ||
"name": "js-awe", | ||
"version": "1.0.51", | ||
"version": "1.0.52", | ||
"homepage": "https://github.com/josuamanuel/js-awe", | ||
@@ -38,3 +38,3 @@ "author": "josuamanuel@hotmail.com", | ||
"genAndCopyTypes": "npm run buildTypes && npm run copyMapsAndTypes", | ||
"buildWeb": "rollup -c && ./awkChangenNodePerf.sh && rollup -c rollup.config.min.js", | ||
"buildWeb": "rollup -c && ./awkChangenNodePerf.sh && rollup -c rollup.config.min.js && rollup -c rollup.config.dts.js", | ||
"build": "npm test && npm run genAndCopyTypes && npm run buildLib && npm run buildWeb" | ||
@@ -51,2 +51,3 @@ }, | ||
"rollup": "^3.28.1", | ||
"rollup-plugin-dts": "^6.0.1", | ||
"rollup-plugin-node-polyfills": "^0.2.1" | ||
@@ -53,0 +54,0 @@ }, |
@@ -35,3 +35,3 @@ # js-awe | ||
Grab the minified version at: | ||
**Option 1:** Grab the minified version at: | ||
@@ -57,4 +57,8 @@ <https://raw.githubusercontent.com/josuamanuel/js-awe/main/dist/browser/js-awe.min.js> | ||
or use CDN | ||
If you want to have types and IntelliSense support in your javascript files, grab file js-awe.min.dts and copy to the same folder as you copied js-awe-min.js: | ||
<https://raw.githubusercontent.com/josuamanuel/js-awe/main/dist/browser/js-awe.min.d.ts> | ||
**Option 2:** CDN | ||
```html | ||
@@ -61,0 +65,0 @@ ... |
@@ -620,8 +620,8 @@ 'use strict' | ||
// project(pathToSelect, users) | ||
// project(['+$[*].posts[0,2]', '-$[*].posts[1]'], users) | ||
// project(pathToSelect, users) //? | ||
// project(['+$[*].posts[0,2]', '-$[*].posts[1]'], users) //? | ||
// project(['+$.a.b','-$.a.b.d'], {a:{b:{c:3,d:5,e:9}}}) //? | ||
// project(['+$'], 2) //? | ||
// } | ||
function copyPropsWithValueUsingRules(objDest, copyRules, shouldUpdateOnlyEmptyFields = false) { | ||
@@ -628,0 +628,0 @@ |
@@ -207,2 +207,5 @@ export default jsUtils; | ||
* @param json Subject object to project. | ||
* @example | ||
* // returns {a:{b:{c:3,e:9}}} | ||
* project(['+$.a.b','-$.a.b.d'], {a:{b:{c:3,d:5,e:9}}}); | ||
* @returns any | ||
@@ -209,0 +212,0 @@ */ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1339352
159
35210
386
9