Comparing version 0.0.7 to 0.0.8
@@ -1,1 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["restful-resource"]={})}(this,(function(e){"use strict";function t(e){return e.replace(/\W+/g," ").split(/ |\B(?=[A-Z])/).map((e=>e.toLowerCase())).join("_")}function n(e,n){function r(e,t,n){return null==e?n:t()}return{nullOr:function(e,t){return r(e,t,null)},withDefault:r,fromSnakeCaseKeys:function(r){const o={};if(r)r.forEach((e=>{o[e]=n[t(e)]}));else{Object.getOwnPropertyNames(e).forEach((e=>{o[e]=n[t(e)]}))}return o}}}function r(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function o(e){return Object.keys(e).forEach((t=>{if(r(e[t]))return o(e[t])})),Object.freeze(e)}function c(e){let t={};for(const n in e)e.hasOwnProperty(n)&&(t[n]=r(e[n])?c(e[n]):e[n]);return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),t}function f(e,t){const n=Object.isFrozen(e)?c(e):e,r=Object.create(Object.getPrototypeOf(n),Object.getOwnPropertyDescriptors(n)),f=Object.assign(Object.assign({},r),t);return Object.keys(f).forEach((e=>{Object.defineProperty(r,e,{value:f[e]})})),o(r)}const u=new Map;e.copyWith=f,e.createTransformAPI=n,e.defineTransform=function(e,t){u.set(e,t)},e.fromJson=function(e,t){const r=new e,c=Object.getOwnPropertyNames(r),f=(i=e,u.get(i));var i;const s=f?f(t,n(r,t)):{};return c.forEach((e=>{let n;n=e in s?s[e]:null==t?null:t[e],Object.defineProperty(r,e,{value:n})})),o(r)},e.make=function(e,t){return f(new e,t)},e.nullable=function(e,t){const n=new e;return Object.getOwnPropertyNames(n).forEach((e=>{Object.defineProperty(n,e,{value:t&&e in t?t[e]:null})})),n},e.unfreeze=c,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
function e(e){return e.replace(/\W+/g," ").split(/ |\B(?=[A-Z])/).map(e=>e.toLowerCase()).join("_")}function t(t,n){function r(e,t,n){return null==e?n:t()}return{nullOr:function(e,t){return r(e,t,null)},withDefault:r,fromSnakeCaseKeys:function(r){const o={};return r?r.forEach(t=>{o[t]=n[e(t)]}):Object.getOwnPropertyNames(t).forEach(t=>{o[t]=n[e(t)]}),o}}}function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}function r(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function o(e){return Object.keys(e).forEach(t=>{if(r(e[t]))return o(e[t])}),Object.freeze(e)}function c(e){let t={};for(const n in e)e.hasOwnProperty(n)&&(t[n]=r(e[n])?c(e[n]):e[n]);return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),t}function u(e,t){const r=Object.isFrozen(e)?c(e):e,u=Object.create(Object.getPrototypeOf(r),Object.getOwnPropertyDescriptors(r)),f=n({},u,t);return Object.keys(f).forEach(e=>{Object.defineProperty(u,e,{value:f[e]})}),o(u)}const f=new Map;function i(e,t){f.set(e,t)}function a(e,n){const r=new e,c=Object.getOwnPropertyNames(r),u=f.get(e),i=u?u(n,t(r,n)):{};return c.forEach(e=>{let t;t=e in i?i[e]:null==n?null:n[e],Object.defineProperty(r,e,{value:t})}),o(r)}function s(e,t){const n=new e;return Object.getOwnPropertyNames(n).forEach(e=>{Object.defineProperty(n,e,{value:t&&e in t?t[e]:null})}),n}function O(e,t){return u(new e,t)}export{u as copyWith,t as createTransformAPI,i as defineTransform,a as fromJson,O as make,s as nullable,c as unfreeze}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "dtto", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "", | ||
"main": "dist/index.js", | ||
"repository": "git+https://github.com/drewjbartlett/dtto.git", | ||
"bugs": "https://github.com/drewjbartlett/dtto/issues", | ||
"homepage": "https://github.com/drewjbartlett/dtto#readme", | ||
"source": "src/index.ts", | ||
"main": "./dist/index.cjs", | ||
"exports": { | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.js" | ||
}, | ||
"module": "./dist/index.module.js", | ||
"unpkg": "./dist/index.umd.js", | ||
"types": "dist/index.d.ts", | ||
@@ -11,2 +21,3 @@ "scripts": { | ||
"release": "rm -rf dist/ && tsc -d && rollup -c", | ||
"build": "rm -rf dist/ && tsc -d && microbundle", | ||
"lint": "eslint --ext .ts --ignore-path .eslintignore .", | ||
@@ -28,2 +39,3 @@ "lint:fix": "npm run lint -- --fix" | ||
"jest": "^29.1.2", | ||
"microbundle": "^0.15.1", | ||
"prettier": "^2.8.4", | ||
@@ -35,7 +47,4 @@ "rollup-plugin-alias": "^2.2.0", | ||
"ts-jest": "^29.0.3", | ||
"typescript": "^4.9.5", | ||
"repository": "git+https://github.com/drewjbartlett/dtto.git", | ||
"bugs": "https://github.com/drewjbartlett/dtto/issues", | ||
"homepage": "https://github.com/drewjbartlett/dtto#readme" | ||
"typescript": "^4.9.5" | ||
} | ||
} |
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
85138
17
66
907
1