@dotlottie/dotlottie-js
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -299,2 +299,87 @@ import { strToU8, zip, unzip, strFromU8 } from 'fflate'; | ||
// package.json | ||
var package_default = { | ||
name: "@dotlottie/dotlottie-js", | ||
version: "0.1.2", | ||
type: "module", | ||
description: "This library helps in creating and modifying .lottie files.", | ||
repository: { | ||
type: "git", | ||
url: "git+https://github.com/dotlottie/dotlottie-js.git", | ||
directory: "packages/dotlottie-js" | ||
}, | ||
homepage: "https://github.com/dotlottie/dotlottie-js#readme", | ||
bugs: "https://github.com/dotlottie/dotlottie-js/issues", | ||
author: "dotLottie", | ||
contributors: [ | ||
"Karam Ali <karam@lottiefiles.com>", | ||
"Sam Osborne <sam@lottiefiles.com>", | ||
"Jawish Hameed <jawish@lottiefiles.com>", | ||
"Abdelrahman Ashraf <a.theashraf@gmail.com>" | ||
], | ||
license: "MIT", | ||
engines: { | ||
node: ">=18.0.0" | ||
}, | ||
main: "./dist/index.js", | ||
exports: { | ||
".": "./dist/index.js", | ||
"./node": "./dist/node/index.js" | ||
}, | ||
types: "./dist/index.d.ts", | ||
typesVersions: { | ||
"*": { | ||
node: [ | ||
"./dist/node" | ||
] | ||
} | ||
}, | ||
files: [ | ||
"dist" | ||
], | ||
scripts: { | ||
build: "tsup", | ||
dev: "tsup --watch", | ||
docs: "typedoc src", | ||
lint: "eslint --fix .", | ||
"stats:eslint": "cross-env TIMING=1 eslint .", | ||
"stats:ts": "tsc -p tsconfig.build.json --extendedDiagnostics", | ||
test: "pnpm test:browser && pnpm test:node", | ||
"test:browser": "pnpm test:build:browser && jasmine-browser-runner runSpecs --config=./jasmine/jasmine-browser.json --port=4444", | ||
"test:browser:watch": "nodemon -e ts --watch src/tests --exec 'pnpm test:build && jasmine-browser-runner serve --config=./jasmine/jasmine-browser.json --port=4444'", | ||
"test:build:browser": "tsup --platform='browser' --config ./jasmine/tsup.config.js", | ||
"test:build:node": "tsup --platform='node' --config ./jasmine/tsup.config.js", | ||
"test:build:watch": "pnpm test:build --watch", | ||
"test:node": "pnpm test:build:node && jasmine --config=./jasmine/jasmine.json --reporter=jasmine-console-reporter", | ||
"type-check": "tsc --noEmit" | ||
}, | ||
dependencies: { | ||
"browser-image-hash": "0.0.5", | ||
fflate: "0.7.4", | ||
filenamify: "6.0.0", | ||
sharp: "0.32.0", | ||
"sharp-phash": "2.1.0" | ||
}, | ||
devDependencies: { | ||
"@lottiefiles/lottie-types": "1.0.1", | ||
"@types/jasmine": "4.3.1", | ||
"@types/node": "18.0.6", | ||
"@types/sharp": "0.31.1", | ||
"cross-env": "7.0.3", | ||
esbuild: "0.14.49", | ||
jasmine: "4.5.0", | ||
"jasmine-browser-runner": "1.3.0", | ||
"jasmine-console-reporter": "3.1.0", | ||
"jasmine-core": "4.5.0", | ||
"js-base64": "3.7.5", | ||
nodemon: "2.0.20", | ||
tsup: "6.1.3", | ||
typescript: "4.7.4" | ||
}, | ||
publishConfig: { | ||
access: "public" | ||
}, | ||
packageManager: "pnpm@7.1.6" | ||
}; | ||
// src/common/utils.ts | ||
@@ -351,3 +436,3 @@ var createError = (message) => { | ||
this._description = options?.description ?? ""; | ||
this._generator = options?.generator ?? "dotLottie-js_v2.0"; | ||
this._generator = options?.generator ?? `${package_default.name}@${package_default.version}`; | ||
this._keywords = options?.keywords ?? "dotLottie"; | ||
@@ -354,0 +439,0 @@ this._version = options?.version ?? "1.0"; |
@@ -299,2 +299,87 @@ import { strToU8, zip, unzip, strFromU8 } from 'fflate'; | ||
// package.json | ||
var package_default = { | ||
name: "@dotlottie/dotlottie-js", | ||
version: "0.1.2", | ||
type: "module", | ||
description: "This library helps in creating and modifying .lottie files.", | ||
repository: { | ||
type: "git", | ||
url: "git+https://github.com/dotlottie/dotlottie-js.git", | ||
directory: "packages/dotlottie-js" | ||
}, | ||
homepage: "https://github.com/dotlottie/dotlottie-js#readme", | ||
bugs: "https://github.com/dotlottie/dotlottie-js/issues", | ||
author: "dotLottie", | ||
contributors: [ | ||
"Karam Ali <karam@lottiefiles.com>", | ||
"Sam Osborne <sam@lottiefiles.com>", | ||
"Jawish Hameed <jawish@lottiefiles.com>", | ||
"Abdelrahman Ashraf <a.theashraf@gmail.com>" | ||
], | ||
license: "MIT", | ||
engines: { | ||
node: ">=18.0.0" | ||
}, | ||
main: "./dist/index.js", | ||
exports: { | ||
".": "./dist/index.js", | ||
"./node": "./dist/node/index.js" | ||
}, | ||
types: "./dist/index.d.ts", | ||
typesVersions: { | ||
"*": { | ||
node: [ | ||
"./dist/node" | ||
] | ||
} | ||
}, | ||
files: [ | ||
"dist" | ||
], | ||
scripts: { | ||
build: "tsup", | ||
dev: "tsup --watch", | ||
docs: "typedoc src", | ||
lint: "eslint --fix .", | ||
"stats:eslint": "cross-env TIMING=1 eslint .", | ||
"stats:ts": "tsc -p tsconfig.build.json --extendedDiagnostics", | ||
test: "pnpm test:browser && pnpm test:node", | ||
"test:browser": "pnpm test:build:browser && jasmine-browser-runner runSpecs --config=./jasmine/jasmine-browser.json --port=4444", | ||
"test:browser:watch": "nodemon -e ts --watch src/tests --exec 'pnpm test:build && jasmine-browser-runner serve --config=./jasmine/jasmine-browser.json --port=4444'", | ||
"test:build:browser": "tsup --platform='browser' --config ./jasmine/tsup.config.js", | ||
"test:build:node": "tsup --platform='node' --config ./jasmine/tsup.config.js", | ||
"test:build:watch": "pnpm test:build --watch", | ||
"test:node": "pnpm test:build:node && jasmine --config=./jasmine/jasmine.json --reporter=jasmine-console-reporter", | ||
"type-check": "tsc --noEmit" | ||
}, | ||
dependencies: { | ||
"browser-image-hash": "0.0.5", | ||
fflate: "0.7.4", | ||
filenamify: "6.0.0", | ||
sharp: "0.32.0", | ||
"sharp-phash": "2.1.0" | ||
}, | ||
devDependencies: { | ||
"@lottiefiles/lottie-types": "1.0.1", | ||
"@types/jasmine": "4.3.1", | ||
"@types/node": "18.0.6", | ||
"@types/sharp": "0.31.1", | ||
"cross-env": "7.0.3", | ||
esbuild: "0.14.49", | ||
jasmine: "4.5.0", | ||
"jasmine-browser-runner": "1.3.0", | ||
"jasmine-console-reporter": "3.1.0", | ||
"jasmine-core": "4.5.0", | ||
"js-base64": "3.7.5", | ||
nodemon: "2.0.20", | ||
tsup: "6.1.3", | ||
typescript: "4.7.4" | ||
}, | ||
publishConfig: { | ||
access: "public" | ||
}, | ||
packageManager: "pnpm@7.1.6" | ||
}; | ||
// src/common/utils.ts | ||
@@ -351,3 +436,3 @@ var createError = (message) => { | ||
this._description = options?.description ?? ""; | ||
this._generator = options?.generator ?? "dotLottie-js_v2.0"; | ||
this._generator = options?.generator ?? `${package_default.name}@${package_default.version}`; | ||
this._keywords = options?.keywords ?? "dotLottie"; | ||
@@ -354,0 +439,0 @@ this._version = options?.version ?? "1.0"; |
@@ -11,2 +11,87 @@ import { strToU8, zip, unzip, strFromU8 } from 'fflate'; | ||
// package.json | ||
var package_default = { | ||
name: "@dotlottie/dotlottie-js", | ||
version: "0.1.2", | ||
type: "module", | ||
description: "This library helps in creating and modifying .lottie files.", | ||
repository: { | ||
type: "git", | ||
url: "git+https://github.com/dotlottie/dotlottie-js.git", | ||
directory: "packages/dotlottie-js" | ||
}, | ||
homepage: "https://github.com/dotlottie/dotlottie-js#readme", | ||
bugs: "https://github.com/dotlottie/dotlottie-js/issues", | ||
author: "dotLottie", | ||
contributors: [ | ||
"Karam Ali <karam@lottiefiles.com>", | ||
"Sam Osborne <sam@lottiefiles.com>", | ||
"Jawish Hameed <jawish@lottiefiles.com>", | ||
"Abdelrahman Ashraf <a.theashraf@gmail.com>" | ||
], | ||
license: "MIT", | ||
engines: { | ||
node: ">=18.0.0" | ||
}, | ||
main: "./dist/index.js", | ||
exports: { | ||
".": "./dist/index.js", | ||
"./node": "./dist/node/index.js" | ||
}, | ||
types: "./dist/index.d.ts", | ||
typesVersions: { | ||
"*": { | ||
node: [ | ||
"./dist/node" | ||
] | ||
} | ||
}, | ||
files: [ | ||
"dist" | ||
], | ||
scripts: { | ||
build: "tsup", | ||
dev: "tsup --watch", | ||
docs: "typedoc src", | ||
lint: "eslint --fix .", | ||
"stats:eslint": "cross-env TIMING=1 eslint .", | ||
"stats:ts": "tsc -p tsconfig.build.json --extendedDiagnostics", | ||
test: "pnpm test:browser && pnpm test:node", | ||
"test:browser": "pnpm test:build:browser && jasmine-browser-runner runSpecs --config=./jasmine/jasmine-browser.json --port=4444", | ||
"test:browser:watch": "nodemon -e ts --watch src/tests --exec 'pnpm test:build && jasmine-browser-runner serve --config=./jasmine/jasmine-browser.json --port=4444'", | ||
"test:build:browser": "tsup --platform='browser' --config ./jasmine/tsup.config.js", | ||
"test:build:node": "tsup --platform='node' --config ./jasmine/tsup.config.js", | ||
"test:build:watch": "pnpm test:build --watch", | ||
"test:node": "pnpm test:build:node && jasmine --config=./jasmine/jasmine.json --reporter=jasmine-console-reporter", | ||
"type-check": "tsc --noEmit" | ||
}, | ||
dependencies: { | ||
"browser-image-hash": "0.0.5", | ||
fflate: "0.7.4", | ||
filenamify: "6.0.0", | ||
sharp: "0.32.0", | ||
"sharp-phash": "2.1.0" | ||
}, | ||
devDependencies: { | ||
"@lottiefiles/lottie-types": "1.0.1", | ||
"@types/jasmine": "4.3.1", | ||
"@types/node": "18.0.6", | ||
"@types/sharp": "0.31.1", | ||
"cross-env": "7.0.3", | ||
esbuild: "0.14.49", | ||
jasmine: "4.5.0", | ||
"jasmine-browser-runner": "1.3.0", | ||
"jasmine-console-reporter": "3.1.0", | ||
"jasmine-core": "4.5.0", | ||
"js-base64": "3.7.5", | ||
nodemon: "2.0.20", | ||
tsup: "6.1.3", | ||
typescript: "4.7.4" | ||
}, | ||
publishConfig: { | ||
access: "public" | ||
}, | ||
packageManager: "pnpm@7.1.6" | ||
}; | ||
// src/common/utils.ts | ||
@@ -63,3 +148,3 @@ var createError = (message) => { | ||
this._description = options?.description ?? ""; | ||
this._generator = options?.generator ?? "dotLottie-js_v2.0"; | ||
this._generator = options?.generator ?? `${package_default.name}@${package_default.version}`; | ||
this._keywords = options?.keywords ?? "dotLottie"; | ||
@@ -899,3 +984,7 @@ this._version = options?.version ?? "1.0"; | ||
constructor(options) { | ||
super(options); | ||
const generator = options?.generator ?? `${package_default.name}/node@${package_default.version}`; | ||
super({ | ||
...options, | ||
generator | ||
}); | ||
if (this.enableDuplicateImageOptimization) | ||
@@ -902,0 +991,0 @@ this.addPlugins(new DuplicateImageDetector()); |
{ | ||
"name": "@dotlottie/dotlottie-js", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "This library helps in creating and modifying .lottie files.", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
355436
5378